cruntime

package
v0.2.8 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2026 License: AGPL-3.0 Imports: 13 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const DefaultDockerHost = "docker.io"

Variables

This section is empty.

Functions

func CreateClient

func CreateClient() (ctx context.Context, c *containerd.Client, err error)

func GetContainerTaskPID

func GetContainerTaskPID(ctx context.Context, c *containerd.Client, containerName string) (uint32, error)

func GetCredentialsFunc

func GetCredentialsFunc(registries []common.RegistryConfig) docker.Authorizer

func GetPullOptions

func GetPullOptions(registries []common.RegistryConfig) []containerd.RemoteOpt

func GetRegistryHost

func GetRegistryHost(imageName string) string

GetRegistryHost extracts the registry host from an image reference. For example:

"ghcr.io/org/image:tag" -> "ghcr.io"
"docker.io/library/nginx" -> "docker.io"
"nginx:latest" -> "docker.io"
"registry.example.com:5000/image" -> "registry.example.com:5000"

Types

This section is empty.

Jump to

Keyboard shortcuts

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