containerdshim

package
v0.0.0-...-62bad97 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: Apache-2.0 Imports: 66 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DirectVolumePathKey   = "path"
	AgentUrl              = "/agent-url"
	DirectVolumeStatUrl   = "/direct-volume/stats"
	DirectVolumeResizeUrl = "/direct-volume/resize"
	IPTablesUrl           = "/iptables"
	PolicyUrl             = "/policy"
	IP6TablesUrl          = "/ip6tables"
	MetricsUrl            = "/metrics"
)

Variables

This section is empty.

Functions

func ClientSocketAddress

func ClientSocketAddress(id string) (string, error)

ClientSocketAddress returns the address of the unix domain socket for communicating with the shim management endpoint NOTE: this code allows various go clients, e.g. kata-runtime or kata-monitor commands, to connect to the rust shim management implementation.

func GetSandboxesStoragePath

func GetSandboxesStoragePath() string

GetSandboxesStoragePath returns the storage path where sandboxes info are stored

func GetSandboxesStoragePathRust

func GetSandboxesStoragePathRust() string

GetSandboxesStoragePathRust returns the storage path where sandboxes info are stored in runtime-rs

func New

func New(ctx context.Context, id string, publisher cdshim.Publisher, shutdown func()) (cdshim.Shim, error)

New returns a new shim service that can be used via GRPC

func ServerSocketAddress

func ServerSocketAddress(id string) string

ServerSocketAddress returns the address of the unix domain socket the shim management endpoint should listen. NOTE: this code is only called by the go shim management implementation.

func SocketPath

func SocketPath(id string, storagePath string) string

SocketPath returns the path of the socket using the given storagePath

func SocketPathGo

func SocketPathGo(id string) string

SocketPathGo returns the path of the socket to be used with the go runtime

func SocketPathRust

func SocketPathRust(id string) string

SocketPathRust returns the path of the socket to be used with the rust runtime

Types

type IO

type IO interface {
	io.Closer
	Stdin() io.ReadCloser
	Stdout() io.Writer
	Stderr() io.Writer
}

type ResizeRequest

type ResizeRequest struct {
	VolumePath string
	Size       uint64
}

Jump to

Keyboard shortcuts

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