relay

package
v0.2.1-0...-d3ae3b1 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2020 License: Apache-2.0 Imports: 7 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 {
	// RelaySocket is the socket path for the CRI relay services.
	RelaySocket string
	// ImageSocket is the socket path for the (real) CRI image services.
	ImageSocket string
	// RuntimeSocket is the socket path for the (real) CRI runtime services.
	RuntimeSocket string
}

Options contains the configurable options of our CRI relay.

type Relay

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

Relay is the interface we expose for controlling our CRI relay.

func NewRelay

func NewRelay(options Options) (Relay, error)

NewRelay creates a new relay instance.

Jump to

Keyboard shortcuts

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