Documentation ¶
Index ¶
- Constants
- func ClientSocketAddress(id string) (string, error)
- func GetSandboxesStoragePath() string
- func GetSandboxesStoragePathRust() string
- func New(ctx context.Context, id string, publisher cdshim.Publisher, shutdown func()) (cdshim.Shim, error)
- func ServerSocketAddress(id string) string
- func SocketPath(id string, storagePath string) string
- func SocketPathGo(id string) string
- func SocketPathRust(id string) string
- type IO
- type ResizeRequest
Constants ¶
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 ¶
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 ¶
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 ¶
SocketPath returns the path of the socket using the given storagePath
func SocketPathGo ¶
SocketPathGo returns the path of the socket to be used with the go runtime
func SocketPathRust ¶
SocketPathRust returns the path of the socket to be used with the rust runtime