config

package
v0.1.0-alpha005 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package config provides legacy adapters for converting between go-sdk config types and Docker CLI/Engine API types.

Deprecated: This package is deprecated and will be removed in a future release when all Docker products have migrated to use the go-sdk natively. Use the native go-sdk types directly and these adapters only when needed.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ToCLIAuthConfig deprecated

func ToCLIAuthConfig(authConfig registry.AuthConfig) types.AuthConfig

ToCLIAuthConfig converts a go-sdk AuthConfig to Docker CLI types.AuthConfig. Note: RegistryToken field is included but may not be used by all CLI components.

Deprecated: This function is deprecated and will be removed in a future release. Use the native go-sdk types directly and these adapters only when needed.

func ToCLIAuthConfigs deprecated

func ToCLIAuthConfigs(authConfigs map[string]registry.AuthConfig) map[string]types.AuthConfig

ToCLIAuthConfigs converts a map of go-sdk AuthConfigs to Docker CLI types.AuthConfigs.

Deprecated: This function is deprecated and will be removed in a future release. Use the native go-sdk types directly and these adapters only when needed.

func ToCLIProxyConfig deprecated

func ToCLIProxyConfig(proxy config.ProxyConfig) configfile.ProxyConfig

ToCLIProxyConfig converts a go-sdk ProxyConfig to Docker CLI configfile.ProxyConfig.

Deprecated: This function is deprecated and will be removed in a future release. Use the native go-sdk types directly and these adapters only when needed.

func ToCLIProxyConfigs deprecated

func ToCLIProxyConfigs(proxies map[string]config.ProxyConfig) map[string]configfile.ProxyConfig

ToCLIProxyConfigs converts a map of go-sdk ProxyConfigs to Docker CLI configfile.ProxyConfigs.

Deprecated: This function is deprecated and will be removed in a future release. Use the native go-sdk types directly and these adapters only when needed.

func ToConfigFile deprecated

func ToConfigFile(cfg config.Config) *configfile.ConfigFile

ToConfigFile converts a go-sdk Config to Docker CLI configfile.ConfigFile.

Deprecated: This function is deprecated and will be removed in a future release. Use the native go-sdk types directly and these adapters only when needed.

func ToRegistryAuthConfig deprecated

func ToRegistryAuthConfig(authConfig registry.AuthConfig) registry.AuthConfig

ToRegistryAuthConfig converts a go-sdk AuthConfig to Docker Engine API registry.AuthConfig. Since AuthConfig is now an alias to registry.AuthConfig, this simply returns the input.

Deprecated: This function is deprecated and will be removed in a future release. Use the native go-sdk types directly and these adapters only when needed.

Types

This section is empty.

Jump to

Keyboard shortcuts

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