criwrapper

package
v1.0.141 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2025 License: Apache-2.0 Imports: 12 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrDetectingCRIEndpoint          = errors.New("Unable to detect CRI runtime endpoint")
	ErrFailedToValidateCRIConnection = errors.New("Failed to validate CRI runtime connection")
)

Functions

This section is empty.

Types

type CriClient

type CriClient struct {
	Logger logr.Logger
	// contains filtered or unexported fields
}

func (*CriClient) Close

func (rc *CriClient) Close()

Close closes the gRPC connection.

func (*CriClient) Connect

func (rc *CriClient) Connect(ctx context.Context) error

Connect attempts to establish a connection to a CRI runtime.

func (*CriClient) GetContainerEnvVars

func (rc *CriClient) GetContainerEnvVars(ctx context.Context, containerID string) (map[string]string, error)

func (*CriClient) GetContainerEnvVarsList

func (rc *CriClient) GetContainerEnvVarsList(ctx context.Context, envVarKeys []string, containerID string) ([]odigosv1.EnvVar, error)

func (*CriClient) GetContainerInfo

func (rc *CriClient) GetContainerInfo(ctx context.Context, containerID string) (map[string]string, error)

GetContainerInfo retrieves the "info" field of the specified container.

Jump to

Keyboard shortcuts

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