Documentation ¶
Index ¶
- type ContainerCommitInput
- type ContainerCreateInput
- type ContainerDesc
- type ContainerDevice
- type ContainerDiskDevice
- type ContainerHostDevice
- type ContainerIsolatedDevice
- type ContainerPullImageInput
- type ContainerPushImageInput
- type ContainerSaveVolumeMountToImageInput
- type ContainerSpec
- type ContainerStopInput
- type ContainerVolumeMount
- type ContainerVolumeMountCephFS
- type ContainerVolumeMountDisk
- type GuestCloseForwardRequest
- type GuestCloseForwardResponse
- type GuestListForwardRequest
- type GuestListForwardResponse
- type GuestMemorySnapshotDeleteRequest
- type GuestMemorySnapshotRequest
- type GuestMemorySnapshotResetRequest
- type GuestMemorySnapshotResponse
- type GuestOpenForwardRequest
- type GuestOpenForwardResponse
- type GuestSetPasswordRequest
- type HostCPUInfo
- type HostNodeHugepageNr
- type HostTopology
- type ServerCloneDiskFromStorageResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ContainerCommitInput ¶
type ContainerCommitInput struct { Repository string `json:"repository"` Auth *apis.ContainerPullImageAuthConfig `json:"auth"` }
type ContainerCreateInput ¶
type ContainerCreateInput struct { Name string `json:"name"` GuestId string `json:"guest_id"` Spec *ContainerSpec `json:"spec"` RestartCount int `json:"restart_count"` }
type ContainerDesc ¶
type ContainerDevice ¶
type ContainerDevice struct { Type apis.ContainerDeviceType `json:"type"` ContainerPath string `json:"container_path"` Permissions string `json:"permissions"` IsolatedDevice *ContainerIsolatedDevice `json:"isolated_device"` Host *ContainerHostDevice `json:"host"` Disk *ContainerDiskDevice `json:"disk"` }
type ContainerDiskDevice ¶
type ContainerDiskDevice struct {
Id string `json:"id"`
}
type ContainerHostDevice ¶
type ContainerHostDevice struct { // Path of the device on the host. HostPath string `json:"host_path"` }
type ContainerIsolatedDevice ¶
type ContainerPullImageInput ¶
type ContainerPullImageInput struct { Image string `json:"image"` PullPolicy apis.ImagePullPolicy `json:"pull_policy"` Auth *apis.ContainerPullImageAuthConfig `json:"auth"` }
type ContainerPushImageInput ¶
type ContainerPushImageInput struct { Image string `json:"image"` Auth *apis.ContainerPullImageAuthConfig `json:"auth"` }
type ContainerSaveVolumeMountToImageInput ¶
type ContainerSaveVolumeMountToImageInput struct { ImageId string `json:"image_id"` VolumeMountIndex int `json:"volume_mount_index"` VolumeMount *ContainerVolumeMount `json:"volume_mount"` }
type ContainerSpec ¶
type ContainerSpec struct { apis.ContainerSpec ImageCredentialToken string `json:"image_credential_token"` VolumeMounts []*ContainerVolumeMount `json:"volume_mounts"` Devices []*ContainerDevice `json:"devices"` }
type ContainerStopInput ¶
type ContainerVolumeMount ¶
type ContainerVolumeMount struct { // 用于标识当前 pod volume mount 的唯一性 UniqueName string `json:"unique_name"` Type apis.ContainerVolumeMountType `json:"type"` Disk *ContainerVolumeMountDisk `json:"disk"` HostPath *apis.ContainerVolumeMountHostPath `json:"host_path"` Text *apis.ContainerVolumeMountText `json:"text"` CephFS *ContainerVolumeMountCephFS `json:"ceph_fs"` // Mounted read-only if true, read-write otherwise (false or unspecified). ReadOnly bool `json:"read_only"` // Path within the container at which the volume should be mounted. Must // not contain ':'. MountPath string `json:"mount_path"` // If set, the mount needs SELinux relabeling. SelinuxRelabel bool `json:"selinux_relabel,omitempty"` // Requested propagation mode. Propagation apis.ContainerMountPropagation `json:"propagation,omitempty"` FsUser *int64 `json:"fs_user,omitempty"` FsGroup *int64 `json:"fs_group,omitempty"` }
type ContainerVolumeMountDisk ¶
type ContainerVolumeMountDisk struct { Index *int `json:"index,omitempty"` Id string `json:"id"` TemplateId string `json:"template_id"` SubDirectory string `json:"sub_directory"` StorageSizeFile string `json:"storage_size_file"` Overlay *apis.ContainerVolumeMountDiskOverlay `json:"overlay"` CaseInsensitivePaths []string `json:"case_insensitive_paths"` PostOverlay []*apis.ContainerVolumeMountDiskPostOverlay `json:"post_overlay"` }
type GuestListForwardRequest ¶
type GuestListForwardResponse ¶
type GuestListForwardResponse struct {
Forwards []GuestOpenForwardResponse `json:"forwards"`
}
type GuestMemorySnapshotRequest ¶
type GuestMemorySnapshotRequest struct {
InstanceSnapshotId string `json:"instance_snapshot_id"`
}
type GuestOpenForwardRequest ¶
type GuestSetPasswordRequest ¶
type HostCPUInfo ¶
type HostNodeHugepageNr ¶
type HostTopology ¶
Click to show internal directories.
Click to hide internal directories.