server

package
v0.9.245 Latest Latest
Warning

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

Go to latest
Published: May 29, 2025 License: AGPL-3.0 Imports: 38 Imported by: 0

Documentation

Index

Constants

View Source
const ATTACH_TIMEOUT = 1 * time.Minute
View Source
const CRIU_EXPERIMENTAL_CHECKS = false
View Source
const LOG_ATTACHABLE string = "[Attachable]"

Variables

This section is empty.

Functions

This section is empty.

Types

type MetricOpts

type MetricOpts struct {
	ASR  bool
	OTel bool
}

type Root added in v0.9.243

type Root struct {
	// contains filtered or unexported fields
}

Root avoids the use of the server and provides direct run/restores

func NewRoot added in v0.9.243

func NewRoot(ctx context.Context) (*Root, error)

func (*Root) Restore added in v0.9.243

func (s *Root) Restore(ctx context.Context, req *daemon.RestoreReq) (*daemon.RestoreResp, error)

Restore for CedanaRoot struct which avoid the use of jobs and provides runc compatible cli usage

func (*Root) Run added in v0.9.243

func (s *Root) Run(ctx context.Context, req *daemon.RunReq) (*daemon.RunResp, error)

func (*Root) Shutdown added in v0.9.244

func (s *Root) Shutdown()

type ServeOpts

type ServeOpts struct {
	Address  string
	Protocol string
	Version  string
	Metrics  config.Metrics
}

type Server

type Server struct {
	daemongrpc.UnimplementedDaemonServer
	// contains filtered or unexported fields
}

func NewServer

func NewServer(ctx context.Context, opts *ServeOpts) (*Server, error)

func (*Server) Attach

func (s *Server) Attach(stream daemongrpc.Daemon_AttachServer) error

func (*Server) CreateUnixSocket added in v0.9.242

func (s *Server) CreateUnixSocket(ctx context.Context, _ *daemon.Empty) (*daemon.SocketResp, error)

func (*Server) Delete

func (s *Server) Delete(ctx context.Context, req *daemon.DeleteReq) (*daemon.DeleteResp, error)

func (*Server) DeleteCheckpoint

func (s *Server) DeleteCheckpoint(ctx context.Context, req *daemon.DeleteCheckpointReq) (*daemon.DeleteCheckpointResp, error)

func (*Server) Dump

func (s *Server) Dump(ctx context.Context, req *daemon.DumpReq) (*daemon.DumpResp, error)

func (*Server) DumpVM added in v0.9.242

func (s *Server) DumpVM(ctx context.Context, req *daemon.DumpVMReq) (*daemon.DumpVMResp, error)

func (*Server) Get

func (s *Server) Get(ctx context.Context, req *daemon.GetReq) (*daemon.GetResp, error)

func (*Server) GetCheckpoint

func (s *Server) GetCheckpoint(ctx context.Context, req *daemon.GetCheckpointReq) (*daemon.GetCheckpointResp, error)

func (*Server) HealthCheck

func (s *Server) HealthCheck(ctx context.Context, req *daemon.HealthCheckReq) (*daemon.HealthCheckResp, error)

func (*Server) Kill

func (s *Server) Kill(ctx context.Context, req *daemon.KillReq) (*daemon.KillResp, error)

func (*Server) Launch

func (s *Server) Launch(ctx context.Context) (err error)

Takes in a context that allows for cancellation from the cmdline

func (*Server) List

func (s *Server) List(ctx context.Context, req *daemon.ListReq) (*daemon.ListResp, error)

func (*Server) ListCheckpoints

func (s *Server) ListCheckpoints(ctx context.Context, req *daemon.ListCheckpointsReq) (*daemon.ListCheckpointsResp, error)

func (*Server) Manage

func (s *Server) Manage(ctx context.Context, req *daemon.RunReq) (*daemon.RunResp, error)

func (*Server) Query

func (s *Server) Query(ctx context.Context, req *daemon.QueryReq) (*daemon.QueryResp, error)

func (*Server) ReloadPlugins

func (s *Server) ReloadPlugins(ctx context.Context, req *daemon.Empty) (*daemon.Empty, error)

func (*Server) Restore

func (s *Server) Restore(ctx context.Context, req *daemon.RestoreReq) (*daemon.RestoreResp, error)

func (*Server) RestoreVM added in v0.9.242

func (s *Server) RestoreVM(ctx context.Context, req *daemon.RestoreVMReq) (*daemon.RestoreVMResp, error)

func (*Server) Run

func (s *Server) Run(ctx context.Context, req *daemon.RunReq) (*daemon.RunResp, error)

func (*Server) Stop

func (s *Server) Stop()

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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