cruntime

package
v0.1.10 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2026 License: AGPL-3.0 Imports: 10 Imported by: 0

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(daemonCfg *config.DaemonConfig) docker.Authorizer

func GetPullOptions

func GetPullOptions(daemonCfg *config.DaemonConfig) []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