You can not select more than 25 topics
Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- package option
-
- import "time"
-
- type VmOption struct {
- AdapterId string
- ClusterIds []string
- TaskName string
- ResourceType string // cpu/gpu/compute card
- TaskType string // pytorch/tensorflow/mindspore
- Strategy string
- ClusterToStaticWeight map[string]int32
- CommitTime time.Time
- NsID string
- Replicas int64
- MatchLabels map[string]string
- StaticWeightMap map[string]int32
- CreateMulServer []CreateMulDomainServer
- Id int64
- ParticipantId int64
- TaskId int64
- Name string
- ClusterId int64
- FlavorRef string
- ImageRef string
- Status string
- Platform string
- Description string
- AvailabilityZone string
- MinCount int64
- Uuid string
- StartTime string
- RunningTime string
- Result string
- DeletedAt string
- }
-
- type CreateMulDomainServer struct {
- Platform string
- Name string
- Min_count int64
- ImageRef string
- FlavorRef string
- Uuid string
- }
-
- func (a VmOption) GetOptionType() string {
- return VM
- }
|