serverrpc

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: May 10, 2017 License: Apache-2.0 Imports: 17 Imported by: 7 modules, 6 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 (
	GRPC_API_VERSION = "0.1.0"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ServerRPC

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

ServerRPC is the main server for gRPC

func NewServerRPC

func NewServerRPC(d *daemon.Daemon) *ServerRPC

NewServerRPC creates a new ServerRPC

func (*ServerRPC) Attach added in v0.6.2

func (s *ServerRPC) Attach(stream types.PublicAPI_AttachServer) error

func (*ServerRPC) ContainerCreate added in v0.6.2

ContainerCreate creates a container by UserContainer spec

func (*ServerRPC) ContainerInfo

ContainerInfo gets ContainerInfo by ID or name of container

func (*ServerRPC) ContainerList

ContainerList implements GET /list?item=container

func (*ServerRPC) ContainerLogs

func (*ServerRPC) ContainerRemove added in v0.8.0

func (*ServerRPC) ContainerRename added in v0.6.2

ContainerRename rename a container

func (*ServerRPC) ContainerSignal added in v0.8.0

ContainerSignal sends a singal to specified container of specified pod

func (*ServerRPC) ContainerStart added in v0.8.0

func (*ServerRPC) ContainerStop added in v0.6.2

ContainerStop implements POST /container/stop

func (*ServerRPC) ExecCreate added in v0.6.2

func (*ServerRPC) ExecSignal added in v0.8.0

ExecSignal sends a singal to specified exec of specified container

func (*ServerRPC) ExecStart added in v0.6.2

func (s *ServerRPC) ExecStart(stream types.PublicAPI_ExecStartServer) error

func (*ServerRPC) ExecVM added in v0.8.0

func (s *ServerRPC) ExecVM(stream types.PublicAPI_ExecVMServer) error

func (*ServerRPC) ImageList

ImageList implements GET /images/get

func (*ServerRPC) ImagePull added in v0.6.2

ImagePull pulls a image from registry

func (*ServerRPC) ImagePush added in v0.6.2

ImagePush pushes a local image to registry

func (*ServerRPC) ImageRemove added in v0.6.2

ImageRemove deletes a image from hyperd

func (*ServerRPC) Info added in v0.6.2

Info gets CmdSystemInfo

func (*ServerRPC) Ping added in v0.6.2

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

func (*ServerRPC) PodCreate

PodCreate creates a pod by PodSpec

func (*ServerRPC) PodInfo

PodInfo gets PodInfo by podID

func (*ServerRPC) PodList

PodList implements GET /list?item=pod

func (*ServerRPC) PodPause added in v0.6.2

PodPause pauses a pod

func (*ServerRPC) PodRemove

PodRemove removes a pod by podID

func (*ServerRPC) PodSignal added in v0.6.2

PodSignal sends a singal to all containers of specified pod

func (*ServerRPC) PodStart added in v0.6.2

PodStart starts a pod by podID

func (*ServerRPC) PodStats added in v0.6.2

PodStats get stats (runvtypes.PodStats) of Pod

func (*ServerRPC) PodStop added in v0.6.2

PodStop stops a pod

func (*ServerRPC) PodUnpause added in v0.6.2

PodUnpause unpauses a pod

func (*ServerRPC) Serve

func (s *ServerRPC) Serve(addr string) error

Serve serves gRPC request by goroutines

func (*ServerRPC) ServiceAdd added in v0.6.2

ServiceAdd implements POST /service/list

func (*ServerRPC) ServiceDelete added in v0.6.2

ServiceDelete implements DELETE /service

func (*ServerRPC) ServiceList added in v0.6.2

ServiceList implements GET /service/list

func (*ServerRPC) ServiceUpdate added in v0.6.2

ServiceUpdate implements UPDATE /service

func (*ServerRPC) SetPodLabels added in v0.6.2

PodLabels sets the labels of Pod

func (*ServerRPC) Stop

func (s *ServerRPC) Stop()

Stop stops gRPC server

func (*ServerRPC) TTYResize added in v0.8.0

TTYResize resizes the tty of the specified container

func (*ServerRPC) VMList

VMList implements GET /list?item=vm

func (*ServerRPC) Version added in v0.6.2

Version gets the version and apiVersion of hyperd

func (*ServerRPC) Wait added in v0.6.2

Wait gets exitcode by container and processId

Jump to

Keyboard shortcuts

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