light modification
This commit is contained in:
15
models/common/enum/infrastructure.go
Normal file
15
models/common/enum/infrastructure.go
Normal file
@@ -0,0 +1,15 @@
|
||||
package enum
|
||||
|
||||
type InfrastructureType int
|
||||
|
||||
const (
|
||||
DOCKER InfrastructureType = iota
|
||||
KUBERNETES
|
||||
SLURM
|
||||
HW
|
||||
CONDOR
|
||||
)
|
||||
|
||||
func (t InfrastructureType) String() string {
|
||||
return [...]string{"DOCKER", "KUBERNETES", "SLURM", "HW", "CONDOR"}[t]
|
||||
}
|
||||
Reference in New Issue
Block a user