Documentation
¶
Index ¶
- Variables
- type Bind
- type ContainerCommit
- type ContainerDelete
- type ContainerExecute
- type ContainerGpuPatch
- type ContainerRun
- type ContainerStop
- type ContainerVolumePatch
- type EtcdContainerInfo
- type EtcdVolumeInfo
- type GpuInfo
- type Memory
- type ProcessInfo
- type VolumeCreate
- type VolumeDelete
- type VolumeSize
Constants ¶
This section is empty.
Variables ¶
View Source
var VolumeSizeMap = map[string]struct{}{
"KB": {},
"MB": {},
"GB": {},
"TB": {},
}
Functions ¶
This section is empty.
Types ¶
type ContainerCommit ¶
type ContainerCommit struct {
NewImageName string `json:"newImageName"`
}
type ContainerDelete ¶
type ContainerExecute ¶
type ContainerGpuPatch ¶
type ContainerGpuPatch struct {
GpuCount int `json:"gpuCount"`
}
type ContainerRun ¶
type ContainerRun struct {
ImageName string `json:"imageName"`
ContainerName string `json:"containerName"`
GpuCount int `json:"gpuCount,omitempty"`
Binds []Bind `json:"binds,omitempty"`
Env []string `json:"env,omitempty"`
Cmd []string `json:"cmd,omitempty"`
ContainerPorts []string `json:"containerPorts,omitempty"`
}
type ContainerStop ¶
type ContainerVolumePatch ¶
type EtcdContainerInfo ¶
type EtcdContainerInfo struct {
Config *container.Config `json:"Config"`
HostConfig *container.HostConfig `json:"HostConfig"`
NetworkingConfig *network.NetworkingConfig `json:"NetworkingConfig"`
Platform *ocispec.Platform `json:"Platform"`
ContainerName string `json:"ContainerName"`
Version int64 `json:"Version"`
}
func (*EtcdContainerInfo) Serialize ¶
func (i *EtcdContainerInfo) Serialize() *string
type EtcdVolumeInfo ¶
type EtcdVolumeInfo struct {
Opt *volume.CreateOptions
Version int64 `json:"Version"`
}
func (*EtcdVolumeInfo) Serialize ¶
func (i *EtcdVolumeInfo) Serialize() *string
type GpuInfo ¶
type GpuInfo struct {
Index int `json:"index"`
UUID string `json:"uuid"`
Name string `json:"name"`
MemoryInfo Memory `json:"memoryInfo"`
PowerUsage uint32 `json:"powerUsage"`
PowerState int32 `json:"powerState"`
PowerManagementDefaultLimit uint32 `json:"powerManagementDefaultLimit"`
InformImageVersion string `json:"informImageVersion"`
DriverVersion string `json:"systemGetDriverVersion"`
CUDADriverVersion int `json:"systemGetCudaDriverVersion"`
GraphicsRunningProcesses []ProcessInfo `json:"tGraphicsRunningProcesses"`
}
type ProcessInfo ¶
type VolumeCreate ¶
type VolumeDelete ¶
type VolumeSize ¶
type VolumeSize struct {
Size string `json:"size"` // KB, MB, GB, TB
}
Click to show internal directories.
Click to hide internal directories.