provider

package
v0.0.0-...-36078d9 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2024 License: MPL-2.0 Imports: 55 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RESOURCE    resourceType = iota // a resource
	DATA_SOURCE                     // a data-source
)
View Source
const (
	TEST_CONFIG_BASE_DIR = "testdata"
)

Variables

This section is empty.

Functions

func New

func New(version string) func() *schema.Provider

New creates the Docker provider

Types

type AuthConfigs

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
	SSHOpts  []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

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

func (err *DidNotConvergeError) Error() string

Error the custom error if a service does not converge

type ProviderConfig

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

ProviderConfig for the custom registry provider

type TokenResponse

type TokenResponse struct {
	Token       string
	AccessToken string `json:"access_token"`
}

Jump to

Keyboard shortcuts

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