server

package
v0.0.0-...-39278d5 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2025 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetupSignalHandler

func SetupSignalHandler(srv *grpc.Server) chan struct{}

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 (*Server) AllocateIO

func (*Server) BindConsoleToSocket

BindConsoleToSocket implements runmv1.SocketAllocatorServiceServer.

func (*Server) BindIOToSockets

BindIOToSockets implements runmv1.SocketAllocatorServiceServer.

func (*Server) Checkpoint

Checkpoint implements runmv1.RuncServiceServer.

func (*Server) CloseConsole

CloseConsole implements runmv1.SocketAllocatorServiceServer.

func (*Server) CloseIO

CloseIO implements runmv1.SocketAllocatorServiceServer.

func (*Server) CloseSocket

CloseSocket implements runmv1.SocketAllocatorServiceServer.

func (*Server) CloseSockets

CloseSockets implements runmv1.SocketAllocatorServiceServer.

func (*Server) Create

Create implements the RuncServiceServer Create method.

func (*Server) Delete

Delete implements the RuncServiceServer Delete method.

func (*Server) DialOpenListener

func (*Server) Events

Events implements runmv1.RuncServiceServer.

func (*Server) Exec

Exec implements the RuncServiceServer Exec method.

func (*Server) GetCgroupStats

GetCgroupStats implements runmv1.CgroupAdapterServiceServer.

func (*Server) Kill

Kill implements the RuncServiceServer Kill method.

func (*Server) List

List implements the RuncServiceServer List method.

func (*Server) Pause

Pause implements the RuncServiceServer Pause method.

func (*Server) Ping

Ping implements the RuncServiceServer Ping method.

func (*Server) Ps

Ps implements the RuncServiceServer Ps method.

func (*Server) PublishEvent

PublishEvent implements runmv1.EventServiceServer.

func (*Server) ReceiveEvents

PublishEvents implements runmv1.EventServiceServer.

func (*Server) RegisterGrpcServer

func (s *Server) RegisterGrpcServer(grpcServer *grpc.Server)

func (*Server) ResizeConsole

ResizeConsole implements runmv1.SocketAllocatorServiceServer.

func (*Server) Restore

Restore implements runmv1.RuncServiceServer.

func (*Server) Resume

Resume implements the RuncServiceServer Resume method.

func (*Server) RuncRun

func (*Server) Start

Start implements the RuncServiceServer Start method.

func (*Server) State

State implements the RuncServiceServer State method.

func (*Server) Stats

Stats implements the RuncServiceServer Stats method.

func (*Server) StreamCgroupEvents

StreamCgroupEvents implements runmv1.GuestCgroupServiceServer.

func (*Server) SubscribeToReaperExits

func (s *Server) SubscribeToReaperExits(_ *emptypb.Empty, srv grpc.ServerStreamingServer[runmv1.ReaperExit]) error

func (*Server) ToggleAllControllers

ToggleAllControllers implements runmv1.GuestCgroupServiceServer.

func (*Server) Top

Top implements the RuncServiceServer Top method.

func (*Server) Update

Update implements runmv1.RuncServiceServer.

func (*Server) Version

Version implements the RuncServiceServer Version method.

type ServerOpt

type ServerOpt func(*ServerOpts)

func WithBundleSource

func WithBundleSource(bundleSource string) ServerOpt

func WithCleanupFn

func WithCleanupFn(cleanupFn func() error) ServerOpt

func WithCustomExitChan

func WithCustomExitChan(customExitChan chan gorunc.Exit) ServerOpt

type ServerOpts

type ServerOpts struct {
	BundleSource   string
	CustomExitChan chan gorunc.Exit
	CleanupFn      func() error
}

Jump to

Keyboard shortcuts

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