image

package
v1.23.0-cx Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvToCRIImage

func ConvToCRIImage(image string) string

Types

type Runtime

type Runtime interface {
	// PullImages pulls images. If authentication is required, currently pulled images
	// only support one authentication configuration.
	PullImages(ctx context.Context, images []string, authConfig *runtimeapi.AuthConfig) error
	// PullImage pulls the specified image.
	PullImage(ctx context.Context, image string, authConfig *runtimeapi.AuthConfig, sandboxConfig *runtimeapi.PodSandboxConfig) error
	// GetImageDigest returns the digest of the specified image.
	GetImageDigest(ctx context.Context, image string) (string, error)
}

type RuntimeImpl

type RuntimeImpl struct {
	// contains filtered or unexported fields
}

func NewImageRuntime

func NewImageRuntime(endpoint string, timeout time.Duration) (*RuntimeImpl, error)

func (*RuntimeImpl) GetImageDigest

func (runtime *RuntimeImpl) GetImageDigest(ctx context.Context, image string) (string, error)

func (*RuntimeImpl) PullImage

func (runtime *RuntimeImpl) PullImage(
	ctx context.Context,
	image string,
	authConfig *runtimeapi.AuthConfig,
	sandboxConfig *runtimeapi.PodSandboxConfig,
) error

func (*RuntimeImpl) PullImages

func (runtime *RuntimeImpl) PullImages(
	ctx context.Context,
	images []string,
	authConfig *runtimeapi.AuthConfig,
) error

Jump to

Keyboard shortcuts

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