Documentation ¶
Index ¶
- type ServerRPC
- func (s *ServerRPC) ContainerInfo(c context.Context, req *types.ContainerInfoRequest) (*types.ContainerInfoResponse, error)
- func (s *ServerRPC) ContainerList(ctx context.Context, req *types.ContainerListRequest) (*types.ContainerListResponse, error)
- func (s *ServerRPC) ContainerLogs(req *types.ContainerLogsRequest, stream types.PublicAPI_ContainerLogsServer) error
- func (s *ServerRPC) ImageList(ctx context.Context, req *types.ImageListRequest) (*types.ImageListResponse, error)
- func (s *ServerRPC) PodCreate(ctx context.Context, req *types.PodCreateRequest) (*types.PodCreateResponse, error)
- func (s *ServerRPC) PodInfo(c context.Context, req *types.PodInfoRequest) (*types.PodInfoResponse, error)
- func (s *ServerRPC) PodList(ctx context.Context, req *types.PodListRequest) (*types.PodListResponse, error)
- func (s *ServerRPC) PodRemove(ctx context.Context, req *types.PodRemoveRequest) (*types.PodRemoveResponse, error)
- func (s *ServerRPC) Serve(addr string) error
- func (s *ServerRPC) Stop()
- func (s *ServerRPC) VMCreate(ctx context.Context, req *types.VMCreateRequest) (*types.VMCreateResponse, error)
- func (s *ServerRPC) VMList(ctx context.Context, req *types.VMListRequest) (*types.VMListResponse, error)
- func (s *ServerRPC) VMRemove(ctx context.Context, req *types.VMRemoveRequest) (*types.VMRemoveResponse, error)
Constants ¶
This section is empty.
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 ¶
NewServerRPC creates a new ServerRPC
func (*ServerRPC) ContainerInfo ¶
func (s *ServerRPC) ContainerInfo(c context.Context, req *types.ContainerInfoRequest) (*types.ContainerInfoResponse, error)
ContainerInfo gets ContainerInfo by ID or name of container
func (*ServerRPC) ContainerList ¶
func (s *ServerRPC) ContainerList(ctx context.Context, req *types.ContainerListRequest) (*types.ContainerListResponse, error)
ContainerList implements GET /list?item=container
func (*ServerRPC) ContainerLogs ¶
func (s *ServerRPC) ContainerLogs(req *types.ContainerLogsRequest, stream types.PublicAPI_ContainerLogsServer) error
func (*ServerRPC) ImageList ¶
func (s *ServerRPC) ImageList(ctx context.Context, req *types.ImageListRequest) (*types.ImageListResponse, error)
ImageList implements GET /images/get
func (*ServerRPC) PodCreate ¶
func (s *ServerRPC) PodCreate(ctx context.Context, req *types.PodCreateRequest) (*types.PodCreateResponse, error)
PodCreate creates a pod by PodSpec
func (*ServerRPC) PodInfo ¶
func (s *ServerRPC) PodInfo(c context.Context, req *types.PodInfoRequest) (*types.PodInfoResponse, error)
PodInfo gets PodInfo by podID
func (*ServerRPC) PodList ¶
func (s *ServerRPC) PodList(ctx context.Context, req *types.PodListRequest) (*types.PodListResponse, error)
PodList implements GET /list?item=pod
func (*ServerRPC) PodRemove ¶
func (s *ServerRPC) PodRemove(ctx context.Context, req *types.PodRemoveRequest) (*types.PodRemoveResponse, error)
PodRemove removes a pod by podID
func (*ServerRPC) VMCreate ¶
func (s *ServerRPC) VMCreate(ctx context.Context, req *types.VMCreateRequest) (*types.VMCreateResponse, error)
VMCreate implements POST /vm/create
func (*ServerRPC) VMList ¶
func (s *ServerRPC) VMList(ctx context.Context, req *types.VMListRequest) (*types.VMListResponse, error)
VMList implements GET /list?item=vm
func (*ServerRPC) VMRemove ¶
func (s *ServerRPC) VMRemove(ctx context.Context, req *types.VMRemoveRequest) (*types.VMRemoveResponse, error)
VMRemove implements DELETE /vm
Click to show internal directories.
Click to hide internal directories.