Documentation ¶
Index ¶
Constants ¶
View Source
const (
// DontConnect is used to mark a socket to not be connected.
DontConnect = "-"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface { // Connect tries to connect the client to the specified image and runtime services. Connect(ConnectOptions) error // Close closes any existing client connections. Close() // CheckConnection checks if we have (un-Close()'d as opposed to working) connections. CheckConnection(ConnectOptions) error // HasRuntimeService checks if the client is configured with runtime services. HasRuntimeService() bool // HasImageService checks if the client is configured with image services. HasImageService() bool // We expose full image and runtime client services. api.ImageServiceClient api.RuntimeServiceClient }
Client is the interface we expose to our CRI client.
type ConnectOptions ¶
type ConnectOptions struct { // Wait indicates whether Connect() should wait (indefinitely) for the server. Wait bool // Reconnect indicates whether CheckConnection() should attempt to Connect(). Reconnect bool }
ConnectOptions contains options for connecting to the server.
Click to show internal directories.
Click to hide internal directories.