cri

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package cri resolves the CRI endpoint KubeSolo talks to: either a host-managed container runtime named with --container-runtime-endpoint, or KubeSolo's own embedded containerd.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Endpoint

type Endpoint struct {
	// URL is the endpoint in unix:// form, as passed to the kubelet and the CRI client.
	URL string
	// SocketPath is the filesystem path of URL, for existence checks.
	SocketPath string
	// External is true when the endpoint belongs to a host-managed runtime
	// rather than the containerd KubeSolo starts itself.
	External bool
}

Endpoint is the resolved CRI endpoint.

func Embedded

func Embedded(socketPath string) Endpoint

Embedded returns the endpoint of the containerd KubeSolo runs itself.

func Resolve

func Resolve(flag string) (Endpoint, error)

Resolve parses a --container-runtime-endpoint value. A bare path is accepted and given the unix:// scheme, since runtime documentation commonly quotes it that way. An empty value yields the zero Endpoint: the caller then supplies the embedded containerd endpoint with Embedded, which depends on --path.

Jump to

Keyboard shortcuts

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