docker

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: May 29, 2019 License: MPL-2.0 Imports: 42 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrCannotParseDockercfg = errors.New("Failed to read authentication from dockercfg")

ErrCannotParseDockercfg is the error returned by NewAuthConfigurations when the dockercfg cannot be parsed.

Functions

func Provider

func Provider() terraform.ResourceProvider

Provider creates the Docker provider

Types

type AuthConfigs added in v1.0.0

type AuthConfigs struct {
	Configs map[string]types.AuthConfig `json:"configs"`
}

AuthConfigs represents authentication options to use for the PushImage method accommodating the new X-Registry-Config header

type Config

type Config struct {
	Host     string
	Ca       string
	Cert     string
	Key      string
	CertPath string
}

Config is the structure that stores the configuration to talk to a Docker API compatible host.

func (*Config) NewClient

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

NewClient returns a new Docker client.

type Data

type Data struct {
	DockerImages map[string]*types.ImageSummary
}

Data structure for holding data that we fetch from Docker.

type DidNotConvergeError added in v1.0.0

type DidNotConvergeError struct {
	ServiceID string
	Timeout   time.Duration
	Err       error
}

DidNotConvergeError is the error returned when a the service does not converge in the defined time

func (*DidNotConvergeError) Error added in v1.0.0

func (err *DidNotConvergeError) Error() string

Error the custom error if a service does not converge

type ProviderConfig added in v0.1.1

type ProviderConfig struct {
	DockerClient *client.Client
	AuthConfigs  *AuthConfigs
}

ProviderConfig for the custom registry provider

type TokenResponse

type TokenResponse struct {
	Token string
}

Jump to

Keyboard shortcuts

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