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: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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