shim

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// DisableService is used to mark a socket/service to not be connected.
	DisableService = client.DontConnect
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	// ShimSocket is the socket path for the CRI shim services.
	ShimSocket string
	// ImageSocket is the socket path for the (real) CRI image services.
	ImageSocket string
}

Options contains the configurable options of our CRI shim.

type Shim

type Shim interface {
	// Setup prepares the shim to start processing CRI requests.
	Setup() error
	// Start starts the shim.
	Start() error
	// Stop stops the shim.
	Stop()
	// Client returns the shim client interface.
	Client() client.Client
	// Server returns the shim server interface.
	Server() server.Server
}

Shim is the interface we expose for controlling our CRI shim.

func NewShim

func NewShim(options Options) (Shim, error)

NewShim creates a new shim instance.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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