Documentation
¶
Index ¶
- func SetupSignalHandler(srv *grpc.Server) chan struct{}
- type Server
- func (s *Server) AllocateConsole(ctx context.Context, req *runmv1.AllocateConsoleRequest) (*runmv1.AllocateConsoleResponse, error)
- func (s *Server) AllocateIO(ctx context.Context, req *runmv1.AllocateIORequest) (*runmv1.AllocateIOResponse, error)
- func (s *Server) BindConsoleToSocket(ctx context.Context, req *runmv1.BindConsoleToSocketRequest) (*runmv1.BindConsoleToSocketResponse, error)
- func (s *Server) BindIOToSockets(ctx context.Context, req *runmv1.BindIOToSocketsRequest) (*runmv1.BindIOToSocketsResponse, error)
- func (s *Server) Checkpoint(context.Context, *runmv1.RuncCheckpointRequest) (*runmv1.RuncCheckpointResponse, error)
- func (s *Server) CloseConsole(ctx context.Context, req *runmv1.CloseConsoleRequest) (*runmv1.CloseConsoleResponse, error)
- func (s *Server) CloseIO(ctx context.Context, req *runmv1.CloseIORequest) (*runmv1.CloseIOResponse, error)
- func (s *Server) CloseSocket(ctx context.Context, req *runmv1.CloseSocketRequest) (*runmv1.CloseSocketResponse, error)
- func (s *Server) CloseSockets(ctx context.Context, req *runmv1.CloseSocketsRequest) (*runmv1.CloseSocketsResponse, error)
- func (s *Server) Create(ctx context.Context, req *runmv1.RuncCreateRequest) (*runmv1.RuncCreateResponse, error)
- func (s *Server) Delete(ctx context.Context, req *runmv1.RuncDeleteRequest) (*runmv1.RuncDeleteResponse, error)
- func (s *Server) DialOpenListener(ctx context.Context, req *runmv1.DialOpenListenerRequest) (*runmv1.DialOpenListenerResponse, error)
- func (s *Server) Events(*runmv1.RuncEventsRequest, grpc.ServerStreamingServer[runmv1.RuncEvent]) error
- func (s *Server) Exec(ctx context.Context, req *runmv1.RuncExecRequest) (*runmv1.RuncExecResponse, error)
- func (s *Server) GetCgroupStats(ctx context.Context, _ *runmv1.GetCgroupStatsRequest) (*runmv1.GetCgroupStatsResponse, error)
- func (s *Server) Kill(ctx context.Context, req *runmv1.RuncKillRequest) (*runmv1.RuncKillResponse, error)
- func (s *Server) List(ctx context.Context, req *runmv1.RuncListRequest) (*runmv1.RuncListResponse, error)
- func (s *Server) NewTempConsoleSocket(ctx context.Context, req *runmv1.RuncNewTempConsoleSocketRequest) (*runmv1.RuncNewTempConsoleSocketResponse, error)
- func (s *Server) Pause(ctx context.Context, req *runmv1.RuncPauseRequest) (*runmv1.RuncPauseResponse, error)
- func (s *Server) Ping(ctx context.Context, req *runmv1.PingRequest) (*runmv1.PingResponse, error)
- func (s *Server) Ps(ctx context.Context, req *runmv1.RuncPsRequest) (*runmv1.RuncPsResponse, error)
- func (s *Server) PublishEvent(ctx context.Context, req *runmv1.PublishEventRequest) (*runmv1.PublishEventResponse, error)
- func (s *Server) ReadPidFile(ctx context.Context, req *runmv1.RuncReadPidFileRequest) (*runmv1.RuncReadPidFileResponse, error)
- func (s *Server) ReceiveEvents(_ *emptypb.Empty, srv grpc.ServerStreamingServer[runmv1.PublishEventsResponse]) error
- func (s *Server) RegisterGrpcServer(grpcServer *grpc.Server)
- func (s *Server) ResizeConsole(ctx context.Context, req *runmv1.ResizeConsoleRequest) (*runmv1.ResizeConsoleResponse, error)
- func (s *Server) Restore(context.Context, *runmv1.RuncRestoreRequest) (*runmv1.RuncRestoreResponse, error)
- func (s *Server) Resume(ctx context.Context, req *runmv1.RuncResumeRequest) (*runmv1.RuncResumeResponse, error)
- func (s *Server) RuncRun(ctx context.Context, req *runmv1.RuncRunRequest) (*runmv1.RuncRunResponse, error)
- func (s *Server) Start(ctx context.Context, req *runmv1.RuncStartRequest) (*runmv1.RuncStartResponse, error)
- func (s *Server) State(ctx context.Context, req *runmv1.RuncStateRequest) (*runmv1.RuncStateResponse, error)
- func (s *Server) Stats(ctx context.Context, req *runmv1.RuncStatsRequest) (*runmv1.RuncStatsResponse, error)
- func (s *Server) StreamCgroupEvents(_ *runmv1.StreamCgroupEventsRequest, ...) error
- func (s *Server) SubscribeToReaperExits(_ *emptypb.Empty, srv grpc.ServerStreamingServer[runmv1.ReaperExit]) error
- func (s *Server) ToggleAllControllers(ctx context.Context, _ *runmv1.ToggleAllControllersRequest) (*runmv1.ToggleAllControllersResponse, error)
- func (s *Server) Top(ctx context.Context, req *runmv1.RuncTopRequest) (*runmv1.RuncTopResponse, error)
- func (s *Server) Update(context.Context, *runmv1.RuncUpdateRequest) (*runmv1.RuncUpdateResponse, error)
- func (s *Server) Version(ctx context.Context, req *runmv1.RuncVersionRequest) (*runmv1.RuncVersionResponse, error)
- type ServerOpt
- type ServerOpts
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetupSignalHandler ¶
SetupSignalHandler sets up a signal handler for graceful shutdown
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func NewServer ¶
func NewServer( r runtime.Runtime, runtimeExtras runtime.RuntimeExtras, eventHandler runtime.EventHandler, cgroupAdapter runtime.CgroupAdapter, opts ...ServerOpt) *Server
func (*Server) AllocateConsole ¶
func (s *Server) AllocateConsole(ctx context.Context, req *runmv1.AllocateConsoleRequest) (*runmv1.AllocateConsoleResponse, error)
func (*Server) AllocateIO ¶
func (s *Server) AllocateIO(ctx context.Context, req *runmv1.AllocateIORequest) (*runmv1.AllocateIOResponse, error)
func (*Server) BindConsoleToSocket ¶
func (s *Server) BindConsoleToSocket(ctx context.Context, req *runmv1.BindConsoleToSocketRequest) (*runmv1.BindConsoleToSocketResponse, error)
BindConsoleToSocket implements runmv1.SocketAllocatorServiceServer.
func (*Server) BindIOToSockets ¶
func (s *Server) BindIOToSockets(ctx context.Context, req *runmv1.BindIOToSocketsRequest) (*runmv1.BindIOToSocketsResponse, error)
BindIOToSockets implements runmv1.SocketAllocatorServiceServer.
func (*Server) Checkpoint ¶
func (s *Server) Checkpoint(context.Context, *runmv1.RuncCheckpointRequest) (*runmv1.RuncCheckpointResponse, error)
Checkpoint implements runmv1.RuncServiceServer.
func (*Server) CloseConsole ¶
func (s *Server) CloseConsole(ctx context.Context, req *runmv1.CloseConsoleRequest) (*runmv1.CloseConsoleResponse, error)
CloseConsole implements runmv1.SocketAllocatorServiceServer.
func (*Server) CloseIO ¶
func (s *Server) CloseIO(ctx context.Context, req *runmv1.CloseIORequest) (*runmv1.CloseIOResponse, error)
CloseIO implements runmv1.SocketAllocatorServiceServer.
func (*Server) CloseSocket ¶
func (s *Server) CloseSocket(ctx context.Context, req *runmv1.CloseSocketRequest) (*runmv1.CloseSocketResponse, error)
CloseSocket implements runmv1.SocketAllocatorServiceServer.
func (*Server) CloseSockets ¶
func (s *Server) CloseSockets(ctx context.Context, req *runmv1.CloseSocketsRequest) (*runmv1.CloseSocketsResponse, error)
CloseSockets implements runmv1.SocketAllocatorServiceServer.
func (*Server) Create ¶
func (s *Server) Create(ctx context.Context, req *runmv1.RuncCreateRequest) (*runmv1.RuncCreateResponse, error)
Create implements the RuncServiceServer Create method.
func (*Server) Delete ¶
func (s *Server) Delete(ctx context.Context, req *runmv1.RuncDeleteRequest) (*runmv1.RuncDeleteResponse, error)
Delete implements the RuncServiceServer Delete method.
func (*Server) DialOpenListener ¶
func (s *Server) DialOpenListener(ctx context.Context, req *runmv1.DialOpenListenerRequest) (*runmv1.DialOpenListenerResponse, error)
func (*Server) Events ¶
func (s *Server) Events(*runmv1.RuncEventsRequest, grpc.ServerStreamingServer[runmv1.RuncEvent]) error
Events implements runmv1.RuncServiceServer.
func (*Server) Exec ¶
func (s *Server) Exec(ctx context.Context, req *runmv1.RuncExecRequest) (*runmv1.RuncExecResponse, error)
Exec implements the RuncServiceServer Exec method.
func (*Server) GetCgroupStats ¶
func (s *Server) GetCgroupStats(ctx context.Context, _ *runmv1.GetCgroupStatsRequest) (*runmv1.GetCgroupStatsResponse, error)
GetCgroupStats implements runmv1.CgroupAdapterServiceServer.
func (*Server) Kill ¶
func (s *Server) Kill(ctx context.Context, req *runmv1.RuncKillRequest) (*runmv1.RuncKillResponse, error)
Kill implements the RuncServiceServer Kill method.
func (*Server) List ¶
func (s *Server) List(ctx context.Context, req *runmv1.RuncListRequest) (*runmv1.RuncListResponse, error)
List implements the RuncServiceServer List method.
func (*Server) NewTempConsoleSocket ¶
func (s *Server) NewTempConsoleSocket(ctx context.Context, req *runmv1.RuncNewTempConsoleSocketRequest) (*runmv1.RuncNewTempConsoleSocketResponse, error)
func (*Server) Pause ¶
func (s *Server) Pause(ctx context.Context, req *runmv1.RuncPauseRequest) (*runmv1.RuncPauseResponse, error)
Pause implements the RuncServiceServer Pause method.
func (*Server) Ping ¶
func (s *Server) Ping(ctx context.Context, req *runmv1.PingRequest) (*runmv1.PingResponse, error)
Ping implements the RuncServiceServer Ping method.
func (*Server) Ps ¶
func (s *Server) Ps(ctx context.Context, req *runmv1.RuncPsRequest) (*runmv1.RuncPsResponse, error)
Ps implements the RuncServiceServer Ps method.
func (*Server) PublishEvent ¶
func (s *Server) PublishEvent(ctx context.Context, req *runmv1.PublishEventRequest) (*runmv1.PublishEventResponse, error)
PublishEvent implements runmv1.EventServiceServer.
func (*Server) ReadPidFile ¶
func (s *Server) ReadPidFile(ctx context.Context, req *runmv1.RuncReadPidFileRequest) (*runmv1.RuncReadPidFileResponse, error)
func (*Server) ReceiveEvents ¶
func (s *Server) ReceiveEvents(_ *emptypb.Empty, srv grpc.ServerStreamingServer[runmv1.PublishEventsResponse]) error
PublishEvents implements runmv1.EventServiceServer.
func (*Server) RegisterGrpcServer ¶
func (*Server) ResizeConsole ¶
func (s *Server) ResizeConsole(ctx context.Context, req *runmv1.ResizeConsoleRequest) (*runmv1.ResizeConsoleResponse, error)
ResizeConsole implements runmv1.SocketAllocatorServiceServer.
func (*Server) Restore ¶
func (s *Server) Restore(context.Context, *runmv1.RuncRestoreRequest) (*runmv1.RuncRestoreResponse, error)
Restore implements runmv1.RuncServiceServer.
func (*Server) Resume ¶
func (s *Server) Resume(ctx context.Context, req *runmv1.RuncResumeRequest) (*runmv1.RuncResumeResponse, error)
Resume implements the RuncServiceServer Resume method.
func (*Server) RuncRun ¶
func (s *Server) RuncRun(ctx context.Context, req *runmv1.RuncRunRequest) (*runmv1.RuncRunResponse, error)
func (*Server) Start ¶
func (s *Server) Start(ctx context.Context, req *runmv1.RuncStartRequest) (*runmv1.RuncStartResponse, error)
Start implements the RuncServiceServer Start method.
func (*Server) State ¶
func (s *Server) State(ctx context.Context, req *runmv1.RuncStateRequest) (*runmv1.RuncStateResponse, error)
State implements the RuncServiceServer State method.
func (*Server) Stats ¶
func (s *Server) Stats(ctx context.Context, req *runmv1.RuncStatsRequest) (*runmv1.RuncStatsResponse, error)
Stats implements the RuncServiceServer Stats method.
func (*Server) StreamCgroupEvents ¶
func (s *Server) StreamCgroupEvents(_ *runmv1.StreamCgroupEventsRequest, srv grpc.ServerStreamingServer[runmv1.StreamCgroupEventsResponse]) error
StreamCgroupEvents implements runmv1.GuestCgroupServiceServer.
func (*Server) SubscribeToReaperExits ¶
func (s *Server) SubscribeToReaperExits(_ *emptypb.Empty, srv grpc.ServerStreamingServer[runmv1.ReaperExit]) error
func (*Server) ToggleAllControllers ¶
func (s *Server) ToggleAllControllers(ctx context.Context, _ *runmv1.ToggleAllControllersRequest) (*runmv1.ToggleAllControllersResponse, error)
ToggleAllControllers implements runmv1.GuestCgroupServiceServer.
func (*Server) Top ¶
func (s *Server) Top(ctx context.Context, req *runmv1.RuncTopRequest) (*runmv1.RuncTopResponse, error)
Top implements the RuncServiceServer Top method.
func (*Server) Update ¶
func (s *Server) Update(context.Context, *runmv1.RuncUpdateRequest) (*runmv1.RuncUpdateResponse, error)
Update implements runmv1.RuncServiceServer.
func (*Server) Version ¶
func (s *Server) Version(ctx context.Context, req *runmv1.RuncVersionRequest) (*runmv1.RuncVersionResponse, error)
Version implements the RuncServiceServer Version method.
type ServerOpt ¶
type ServerOpt func(*ServerOpts)