34 lines
913 B
Go
34 lines
913 B
Go
package model
|
|
|
|
type CreateContainerParam struct {
|
|
ContainerGroupName string `json:"containerGroupName"`
|
|
Container Container `json:"Container"`
|
|
MountPath string `json:"mountPath,omitempty"`
|
|
}
|
|
type Container struct {
|
|
Name string `json:"name"`
|
|
Image string `json:"image"`
|
|
Args []string `json:"args,omitempty"`
|
|
Limits struct {
|
|
Cpu string `json:"cpu,omitempty"`
|
|
Memory string `json:"memory,omitempty"`
|
|
} `json:"limits,omitempty"`
|
|
ContainerPort struct {
|
|
Port int32 `json:"port,omitempty"`
|
|
NodePort int32 `json:"nodePort,omitempty"`
|
|
} `json:"containerPorts,omitempty"`
|
|
Envs []struct {
|
|
Name string `json:"name,omitempty"`
|
|
Value string `json:"value,omitempty"`
|
|
} `json:"envs,omitempty"`
|
|
Command []string
|
|
}
|
|
|
|
type DeleteContainerParam struct {
|
|
ContainerName string `json:"containerGroupName"`
|
|
}
|
|
|
|
type GetContainerParam struct {
|
|
Name string `json:"name"`
|
|
}
|