Documentation
¶
Index ¶
- Constants
- func CreateClient() (ctx context.Context, c *containerd.Client, err error)
- func GetContainerTaskPID(ctx context.Context, c *containerd.Client, containerName string) (uint32, error)
- func GetCredentialsFunc(daemonCfg *config.DaemonConfig) docker.Authorizer
- func GetPullOptions(daemonCfg *config.DaemonConfig) []containerd.RemoteOpt
- func GetRegistryHost(imageName string) string
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 GetCredentialsFunc ¶
func GetCredentialsFunc(daemonCfg *config.DaemonConfig) docker.Authorizer
func GetPullOptions ¶
func GetPullOptions(daemonCfg *config.DaemonConfig) []containerd.RemoteOpt
func GetRegistryHost ¶
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.
Click to show internal directories.
Click to hide internal directories.