client

package
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultAPIVersion = "1.39"

	EnvConfigPath = "DODO_DOCKER_CONFIG"
	EnvAPIVersion = "DOCKER_API_VERSION"
	EnvHost       = "DOCKER_HOST"
	EnvCertPath   = "DOCKER_CERT_PATH"
)

Variables

This section is empty.

Functions

func DockerClientFromConfig

func DockerClientFromConfig(c *Config) (*client.Client, error)

func DockerClientFromConfigFile

func DockerClientFromConfigFile(path string) (*client.Client, error)

func DockerClientFromEnv

func DockerClientFromEnv() (*client.Client, error)

func GetDockerClient

func GetDockerClient() (*client.Client, error)

func LoadAuthConfig

func LoadAuthConfig() map[string]types.AuthConfig

Types

type Config

type Config struct {
	APIVersion string
	Host       string
	CaPath     string
	CertPath   string
	KeyPath    string
}

type ConfigError

type ConfigError string
const ErrInvalidAuthConfig ConfigError = "invalid auth config"

func (ConfigError) Error

func (e ConfigError) Error() string

Jump to

Keyboard shortcuts

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