Documentation
¶
Overview ¶
Package taskserver implements a direct interface to the gvisor shim for task operations.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GvisorTaskServiceEndpoint ¶
type GvisorTaskServiceEndpoint struct {
// contains filtered or unexported fields
}
GvisorTaskServiceEndpoint is a ttrpc server for third party callers to communicate with the gvisor shim. Instead of going through containerd, this server provides a direct interface to task operations with running sandboxes.
func NewServer ¶
func NewServer(rootDir, id string) (*GvisorTaskServiceEndpoint, error)
NewServer creates a new GvisorTaskServer.
func (*GvisorTaskServiceEndpoint) Address ¶
func (s *GvisorTaskServiceEndpoint) Address() string
Address returns the address of the shim socket.
func (*GvisorTaskServiceEndpoint) RegisterService ¶
func (s *GvisorTaskServiceEndpoint) RegisterService(srvc GvisorTaskServiceExt)
RegisterService registers the given services with the ttrpc server.
type GvisorTaskServiceExt ¶
type GvisorTaskServiceExt interface {
Checkpoint(ctx context.Context, req *pb.CheckpointRequest) (*pb.CheckpointResponse, error)
Wait(ctx context.Context, req *pb.WaitRequest) (*pb.WaitResponse, error)
State(ctx context.Context, req *pb.StateRequest) (*pb.StateResponse, error)
Version(ctx context.Context, req *pb.VersionRequest) (*pb.VersionResponse, error)
}
GvisorTaskServiceExt is an interface for the gvisor task service.
Click to show internal directories.
Click to hide internal directories.