host

package
v0.0.0-...-21b9e53 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 1, 2025 License: Apache-2.0 Imports: 4 Imported by: 22

Documentation

Index

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 ContainerDesc struct {
	Id             string         `json:"id"`
	Name           string         `json:"name"`
	Spec           *ContainerSpec `json:"spec"`
	StartedAt      time.Time      `json:"started_at"`
	LastFinishedAt time.Time      `json:"last_finished_at"`
	RestartCount   int            `json:"restart_count"`
}

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 ContainerIsolatedDevice struct {
	Id         string `json:"id"`
	Addr       string `json:"addr"`
	Path       string `json:"path"`
	DeviceType string `json:"device_type"`
}

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 ContainerStopInput struct {
	Timeout       int64  `json:"timeout"`
	ShmSizeMB     int    `json:"shm_size_mb"`
	ContainerName string `json:"container_name"`
	Force         bool   `json:"force"`
}

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 ContainerVolumeMountCephFS

type ContainerVolumeMountCephFS struct {
	Id      string `json:"id"`
	MonHost string `json:"mon_host"`
	Path    string `json:"path"`
	Secret  string `json:"secret"`
	Name    string `json:"name"`
}

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 GuestCloseForwardRequest

type GuestCloseForwardRequest struct {
	NetworkId string `json:"network_id"`
	Proto     string `json:"proto"`
	ProxyAddr string `json:"proxy_addr"`
	ProxyPort int    `json:"port"`
}

type GuestCloseForwardResponse

type GuestCloseForwardResponse struct {
	Proto     string `json:"proto"`
	ProxyAddr string `json:"proxy_addr"`
	ProxyPort int    `json:"port"`
}

type GuestListForwardRequest

type GuestListForwardRequest struct {
	NetworkId string `json:"network_id"`
	Proto     string `json:"proto"`
	Addr      string `json:"addr"`
	Port      int    `json:"port"`
}

type GuestListForwardResponse

type GuestListForwardResponse struct {
	Forwards []GuestOpenForwardResponse `json:"forwards"`
}

type GuestMemorySnapshotDeleteRequest

type GuestMemorySnapshotDeleteRequest struct {
	InstanceSnapshotId string `json:"instance_snapshot_id"`
	Path               string `json:"path"`
}

type GuestMemorySnapshotRequest

type GuestMemorySnapshotRequest struct {
	InstanceSnapshotId string `json:"instance_snapshot_id"`
}

type GuestMemorySnapshotResetRequest

type GuestMemorySnapshotResetRequest struct {
	InstanceSnapshotId string `json:"instance_snapshot_id"`
	Path               string `json:"path"`
	Checksum           string `json:"checksum"`
}

type GuestMemorySnapshotResponse

type GuestMemorySnapshotResponse struct {
	MemorySnapshotPath string `json:"memory_snapshot_path"`
	SizeMB             int64  `json:"size_mb"`
	Checksum           string `json:"checksum"`
}

type GuestOpenForwardRequest

type GuestOpenForwardRequest struct {
	NetworkId string `json:"network_id"`
	Proto     string `json:"proto"`
	Addr      string `json:"addr"`
	Port      int    `json:"port"`
}

type GuestOpenForwardResponse

type GuestOpenForwardResponse struct {
	Proto string `json:"proto"`
	Addr  string `json:"addr"`
	Port  int    `json:"port"`

	ProxyAddr string `json:"proxy_addr"`
	ProxyPort int    `json:"proxy_port"`
}

type GuestSetPasswordRequest

type GuestSetPasswordRequest struct {
	Username string `json:"username"`
	Password string `json:"password"`
	Crypted  bool   `json:"crypted"`
}

type HostCPUInfo

type HostCPUInfo struct {
	*cpu.Info
}

type HostNodeHugepageNr

type HostNodeHugepageNr struct {
	NodeId     int `json:"node_id"`
	HugepageNr int `json:"hugepage_nr"`
}

type HostTopology

type HostTopology struct {
	*topology.Info
}

type ServerCloneDiskFromStorageResponse

type ServerCloneDiskFromStorageResponse struct {
	TargetAccessPath string `json:"target_access_path"`
	TargetFormat     string `json:"target_format"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL