serverrpc

package
v0.0.0-...-282e76a Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2017 License: Apache-2.0 Imports: 16 Imported by: 0

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

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

func (*ServerRPC) ContainerCreate

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

func (*ServerRPC) ContainerRename

ContainerRename rename a container

func (*ServerRPC) ContainerSignal

ContainerSignal sends a singal to specified container of specified pod

func (*ServerRPC) ContainerStart

func (*ServerRPC) ContainerStop

ContainerStop implements POST /container/stop

func (*ServerRPC) ExecCreate

func (*ServerRPC) ExecSignal

ExecSignal sends a singal to specified exec of specified container

func (*ServerRPC) ExecStart

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

func (*ServerRPC) ExecVM

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

func (*ServerRPC) ImageList

ImageList implements GET /images/get

func (*ServerRPC) ImagePull

ImagePull pulls a image from registry

func (*ServerRPC) ImagePush

ImagePush pushes a local image to registry

func (*ServerRPC) ImageRemove

ImageRemove deletes a image from hyperd

func (*ServerRPC) Info

Info gets CmdSystemInfo

func (*ServerRPC) Ping

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

PodPause pauses a pod

func (*ServerRPC) PodRemove

PodRemove removes a pod by podID

func (*ServerRPC) PodSignal

PodSignal sends a singal to all containers of specified pod

func (*ServerRPC) PodStart

PodStart starts a pod by podID

func (*ServerRPC) PodStats

PodStats get stats (runvtypes.PodStats) of Pod

func (*ServerRPC) PodStop

PodStop stops a pod

func (*ServerRPC) PodUnpause

PodUnpause unpauses a pod

func (*ServerRPC) Serve

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

Serve serves gRPC request by goroutines

func (*ServerRPC) ServiceAdd

ServiceAdd implements POST /service/list

func (*ServerRPC) ServiceDelete

ServiceDelete implements DELETE /service

func (*ServerRPC) ServiceList

ServiceList implements GET /service/list

func (*ServerRPC) ServiceUpdate

ServiceUpdate implements UPDATE /service

func (*ServerRPC) SetPodLabels

PodLabels sets the labels of Pod

func (*ServerRPC) Stop

func (s *ServerRPC) Stop()

Stop stops gRPC server

func (*ServerRPC) TTYResize

TTYResize resizes the tty of the specified container

func (*ServerRPC) VMList

VMList implements GET /list?item=vm

func (*ServerRPC) Version

Version gets the version and apiVersion of hyperd

func (*ServerRPC) Wait

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