integration

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2016 License: Apache-2.0 Imports: 9 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

View Source
const (
	// Stdin represents standard input stream type.
	Stdin stdcopy.StdType = iota
	// Stdout represents standard output stream type.
	Stdout
	// Stderr represents standard error steam type.
	Stderr
)

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) AddService added in v0.6.2

func (c *HyperClient) AddService(podID string, services []*types.UserService) error

AddService adds user service by podID and service content

func (*HyperClient) ContainerExecCreate added in v0.6.2

func (c *HyperClient) ContainerExecCreate(container string, command []string, tty bool) (string, error)

ContainerExecCreate creates exec in a container

func (*HyperClient) ContainerExecStart added in v0.6.2

func (c *HyperClient) ContainerExecStart(containerId, execId string, stdin io.ReadCloser, stdout, stderr io.Writer, tty bool) error

ContainerExecStart starts exec in a container with input stream in and output stream out

func (*HyperClient) CreateContainer added in v0.6.2

func (c *HyperClient) CreateContainer(podID string, spec *types.UserContainer) (string, error)

CreateContainer creates a container

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) DeleteService added in v0.6.2

func (c *HyperClient) DeleteService(podID string, services []*types.UserService) error

DeleteService deletes user service by podID and service content

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) GetPodStats added in v0.6.2

func (c *HyperClient) GetPodStats(podID string) (*types.PodStats, error)

GetPodStats get stats of Pod by podID

func (*HyperClient) GetVMList

func (c *HyperClient) GetVMList() ([]*types.VMListResult, error)

GetVMList gets a list of VMs

func (*HyperClient) Info added in v0.6.2

func (c *HyperClient) Info() (*types.InfoResponse, error)

Info gets system info of hyperd

func (*HyperClient) ListService added in v0.6.2

func (c *HyperClient) ListService(podID string) ([]*types.UserService, error)

ListService lists user services by podID

func (*HyperClient) PausePod added in v0.6.2

func (c *HyperClient) PausePod(podID string) error

PausePod pauses a pod

func (*HyperClient) Ping added in v0.6.2

func (c *HyperClient) Ping() (*types.PingResponse, error)

Ping checks if hyperd is running (returns 'OK' on success)

func (*HyperClient) PodSignal added in v0.6.2

func (c *HyperClient) PodSignal(podID string, signal int64) error

PodSignal sends a signal to all containers of specified pod

func (*HyperClient) PostAttach added in v0.6.2

func (c *HyperClient) PostAttach(id string, tty bool) error

PostAttach attach to a container or pod by id

func (*HyperClient) PullImage added in v0.6.2

func (c *HyperClient) PullImage(image, tag string, out io.Writer) error

func (*HyperClient) PushImage added in v0.6.2

func (c *HyperClient) PushImage(repo, tag string, out io.Writer) error

func (*HyperClient) RemoveImage added in v0.6.2

func (c *HyperClient) RemoveImage(image string) error

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

func (*HyperClient) RenameContainer added in v0.6.2

func (c *HyperClient) RenameContainer(oldName string, newName string) error

RenameContainer renames a container

func (*HyperClient) SetPodLabels added in v0.6.2

func (c *HyperClient) SetPodLabels(podID string, override bool, labels map[string]string) error

SetPodLabels sets labels to Pod by podID

func (*HyperClient) StartPod added in v0.6.2

func (c *HyperClient) StartPod(podID, vmID string, attach bool) error

StartPod starts a pod by podID

func (*HyperClient) StopPod added in v0.6.2

func (c *HyperClient) StopPod(podID string) (int, string, error)

StopPod stops a pod

func (*HyperClient) UnpausePod added in v0.6.2

func (c *HyperClient) UnpausePod(podID string) error

UnpausePod unpauses a pod

func (*HyperClient) UpdateService added in v0.6.2

func (c *HyperClient) UpdateService(podID string, services []*types.UserService) error

UpdateService updates user service by podID and service content

func (*HyperClient) Wait added in v0.6.2

func (c *HyperClient) Wait(container, processId string, noHang bool) (int32, error)

Wait gets exitcode by container and processId

type RawExtractor added in v0.7.0

type RawExtractor struct{}

func (*RawExtractor) Extract added in v0.7.0

func (r *RawExtractor) Extract(orig []byte) ([]byte, []byte, error)

type StdcopyExtractor added in v0.7.0

type StdcopyExtractor struct {
	// contains filtered or unexported fields
}

func (*StdcopyExtractor) Extract added in v0.7.0

func (s *StdcopyExtractor) Extract(orig []byte) ([]byte, []byte, error)

type StreamExtractor added in v0.7.0

type StreamExtractor interface {
	Extract(orig []byte) ([]byte, []byte, error)
}

func NewExtractor added in v0.7.0

func NewExtractor(tty bool) StreamExtractor

Jump to

Keyboard shortcuts

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