Documentation ¶
Index ¶
- type HyperClient
- func (c *HyperClient) CreatePod(spec *types.UserPod) (string, error)
- func (c *HyperClient) CreateVM(cpu, memory int32) (string, error)
- func (c *HyperClient) GetContainerInfo(container string) (*types.ContainerInfo, error)
- func (c *HyperClient) GetContainerList(auxiliary bool) ([]*types.ContainerListResult, error)
- func (c *HyperClient) GetContainerLogs(container string) ([]byte, error)
- func (c *HyperClient) GetImageList() ([]*types.ImageInfo, error)
- func (c *HyperClient) GetPodInfo(podID string) (*types.PodInfo, error)
- func (c *HyperClient) GetPodList() ([]*types.PodListResult, error)
- func (c *HyperClient) GetVMList() ([]*types.VMListResult, error)
- func (c *HyperClient) RemovePod(podID string) error
- func (c *HyperClient) RemoveVM(vmID string) (*types.VMRemoveResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HyperClient ¶
type HyperClient struct {
// contains filtered or unexported fields
}
HyperClient is the gRPC client for hyperd
func NewHyperClient ¶
func NewHyperClient(server string) (*HyperClient, error)
NewHyperClient creates a new *HyperClient
func (*HyperClient) CreatePod ¶
func (c *HyperClient) CreatePod(spec *types.UserPod) (string, error)
CreatePod creates a pod
func (*HyperClient) CreateVM ¶
func (c *HyperClient) CreateVM(cpu, memory int32) (string, error)
CreateVM creates a new VM
func (*HyperClient) GetContainerInfo ¶
func (c *HyperClient) GetContainerInfo(container string) (*types.ContainerInfo, error)
GetContainerInfo gets container info by container name or id
func (*HyperClient) GetContainerList ¶
func (c *HyperClient) GetContainerList(auxiliary bool) ([]*types.ContainerListResult, error)
GetContainerList gets a list of containers
func (*HyperClient) GetContainerLogs ¶
func (c *HyperClient) GetContainerLogs(container string) ([]byte, error)
GetContainerLogs gets container log by container name or id
func (*HyperClient) GetImageList ¶
func (c *HyperClient) GetImageList() ([]*types.ImageInfo, error)
GetImageList gets a list of images
func (*HyperClient) GetPodInfo ¶
func (c *HyperClient) GetPodInfo(podID string) (*types.PodInfo, error)
GetPodInfo gets pod info by podID
func (*HyperClient) GetPodList ¶
func (c *HyperClient) GetPodList() ([]*types.PodListResult, error)
GetPodList get a list of Pods
func (*HyperClient) GetVMList ¶
func (c *HyperClient) GetVMList() ([]*types.VMListResult, error)
GetVMList gets a list of VMs
func (*HyperClient) RemovePod ¶
func (c *HyperClient) RemovePod(podID string) error
RemovePod removes a pod by podID
func (*HyperClient) RemoveVM ¶
func (c *HyperClient) RemoveVM(vmID string) (*types.VMRemoveResponse, error)
RemoveVM removes a vm by id
Click to show internal directories.
Click to hide internal directories.