taskserver

package
v0.0.0-...-61a3858 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2026 License: Apache-2.0, BSD-3-Clause, MIT Imports: 6 Imported by: 0

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.

func (*GvisorTaskServiceEndpoint) Serve

Serve serves the ttrpc server on the given address.

func (*GvisorTaskServiceEndpoint) Shutdown

Shutdown shuts down 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.

Jump to

Keyboard shortcuts

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