serverrpc

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2018 License: Apache-2.0 Imports: 18 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 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) Log added in v1.0.0

func (s *ServerRPC) Log(level hlog.LogLevel, args ...interface{})

Log() employ `github.com/hyperhq/hypercontainer-utils/hlog.HLog` to add pod information to the log

func (*ServerRPC) LogPrefix added in v1.0.0

func (s *ServerRPC) LogPrefix() string

LogPrefix() belongs to the interface `github.com/hyperhq/hypercontainer-utils/hlog.LogOwner`, which helps `hlog.HLog` get proper prefix from the owner object.

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) PortMappingAdd added in v1.0.0

PortMappingAdd add a list of PortMapping rules to a Pod

func (*ServerRPC) PortMappingDel added in v1.0.0

PortMappingDel remove a list of PortMapping rules from a Pod

func (*ServerRPC) PortMappingList added in v1.0.0

PortMappingList get a list of PortMappings

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