Documentation ¶
Index ¶
- type ContainerExecCreateResponse
- type FipAllocateRequest
- type FipCli
- func (f *FipCli) AllocateFip(count int) (int, []FipResponse, error)
- func (f *FipCli) GetFip(ip string) (int, *FipResponse, error)
- func (f *FipCli) ListFips() (int, []FipResponse, error)
- func (f *FipCli) NameFip(ip, name string) (int, string, error)
- func (f *FipCli) ReleaseAllFips()
- func (f *FipCli) ReleaseFip(ip string) (int, string)
- type FipRenameRequest
- type FipResponse
- type GCPDiskInfo
- type HyperConn
- type InfoCli
- type PodCli
- func (p *PodCli) CreatePod(podFile string, podName string)
- func (p *PodCli) DeleteAllPods(filter string, gracePeriodSeconds int)
- func (p *PodCli) DeletePod(podName string, gracePeriodSeconds int)
- func (p *PodCli) ExecPod(podName, containerName string, command []string)
- func (p *PodCli) GetPod(podName string) (*v1.Pod, error)
- func (p *PodCli) HyperExecPod(podName, containerName string, command []string)
- func (p *PodCli) ListPods() (*v1.PodList, error)
- type PodExecResponse
- type UserCli
- type Volume
- type VolumeCli
- func (v *VolumeCli) CreateVolume(volName, zone, size string) (int, *VolumeResponse, error)
- func (v *VolumeCli) DeleteAllVolumes(zone string)
- func (v *VolumeCli) DeleteVolume(volName, zone string) (int, string)
- func (v *VolumeCli) GetVolume(volName, zone string) (int, *VolumeResponse, error)
- func (v *VolumeCli) ListVolumes(zone string) (int, []VolumeResponse, error)
- type VolumeCreateRequest
- type VolumeData
- type VolumeResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ContainerExecCreateResponse ¶
type ContainerExecCreateResponse struct {
ID string
}
type FipAllocateRequest ¶
type FipAllocateRequest struct {
Count int `json:"count"`
}
fip
func (*FipAllocateRequest) DeepCopyObject ¶
func (fa *FipAllocateRequest) DeepCopyObject() runtime.Object
func (*FipAllocateRequest) GetObjectKind ¶
func (fa *FipAllocateRequest) GetObjectKind() schema.ObjectKind
type FipCli ¶
type FipCli struct {
// contains filtered or unexported fields
}
func (*FipCli) AllocateFip ¶
func (f *FipCli) AllocateFip(count int) (int, []FipResponse, error)
func (*FipCli) ReleaseAllFips ¶
func (f *FipCli) ReleaseAllFips()
type FipRenameRequest ¶
type FipRenameRequest struct {
Name string `json:"name"`
}
func (*FipRenameRequest) DeepCopyObject ¶
func (fn *FipRenameRequest) DeepCopyObject() runtime.Object
func (*FipRenameRequest) GetObjectKind ¶
func (fn *FipRenameRequest) GetObjectKind() schema.ObjectKind
type FipResponse ¶
type GCPDiskInfo ¶
type HyperConn ¶
func NewHyperConn ¶
func NewHyperConn(config *restclient.Config) *HyperConn
func (*HyperConn) SockRequest ¶
type PodCli ¶
type PodCli struct {
// contains filtered or unexported fields
}
func (*PodCli) DeleteAllPods ¶
func (*PodCli) HyperExecPod ¶
use hyper exec: support hijack connection
type PodExecResponse ¶
type PodExecResponse struct {
Result string
}
type Volume ¶
type Volume struct { Name string // Name is the Name of the volume Driver string // Driver is the Driver Name used to create the volume Mountpoint string // Mountpoint is the location on disk of the volume Status map[string]interface{} `json:",omitempty"` // Status provides low-level status information about the volume Labels map[string]string // Labels is metadata specific to the volume Scope string // Scope describes the level at which the volume exists (e.g. `global` for cluster-wide or `local` for machine level) CreatedAt time.Time }
type VolumeCli ¶
type VolumeCli struct {
// contains filtered or unexported fields
}
func NewVolumeCli ¶
func (*VolumeCli) CreateVolume ¶
func (v *VolumeCli) CreateVolume(volName, zone, size string) (int, *VolumeResponse, error)
func (*VolumeCli) DeleteAllVolumes ¶
func (*VolumeCli) DeleteVolume ¶
func (*VolumeCli) GetVolume ¶
func (v *VolumeCli) GetVolume(volName, zone string) (int, *VolumeResponse, error)
func (*VolumeCli) ListVolumes ¶
func (v *VolumeCli) ListVolumes(zone string) (int, []VolumeResponse, error)
type VolumeCreateRequest ¶
type VolumeCreateRequest struct { Name string `json:"name"` Zone string `json:"zone"` Size int `json:"size"` }
volume
func (*VolumeCreateRequest) DeepCopyObject ¶
func (v *VolumeCreateRequest) DeepCopyObject() runtime.Object
func (*VolumeCreateRequest) GetObjectKind ¶
func (v *VolumeCreateRequest) GetObjectKind() schema.ObjectKind
type VolumeData ¶
type VolumeData struct { ID string Tenant string GCP GCPDiskInfo Disk VolumeResponse }
Click to show internal directories.
Click to hide internal directories.