integration

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: May 25, 2016 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

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

Jump to

Keyboard shortcuts

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