Documentation ¶
Index ¶
- Constants
- func NewDockerClient(configPath, hostName string, out io.Writer) (*api.DockerClient, error)
- func ParseRepositoryName(name string) (string, string, string, error)
- type Config
- func (config *Config) GetDefaultHost() (*Host, error)
- func (config *Config) GetHost(name string) (*Host, error)
- func (config *Config) GetRegistry(reg string) (*Registry, error)
- func (config *Config) LogoutRegistry(reg string)
- func (config *Config) SaveConfig(path string) error
- func (config *Config) SetRegistry(newRegistry *Registry)
- type Host
- type Registry
Constants ¶
View Source
const ( INDEX_SERVER = "https://index.docker.io/v1/" DOCKER_SOCKET = "unix:///var/run/docker.sock" )
Variables ¶
This section is empty.
Functions ¶
func NewDockerClient ¶
Types ¶
type Config ¶
type Config struct { Default string `yaml:"default"` Hosts []Host `yaml:"hosts"` Registries []Registry `yaml:"registries,omitempty"` }
func LoadConfig ¶
func (*Config) GetDefaultHost ¶
func (*Config) LogoutRegistry ¶
func (*Config) SaveConfig ¶
func (*Config) SetRegistry ¶
type Host ¶
type Host struct { Name string `yaml:"name"` URL string `yaml:"url"` Description string `yaml:"description,omitempty"` TLS bool `yaml:"tls,omitempty"` TLSCaCert string `yaml:"tls-ca-cert,omitempty"` TLSCert string `yaml:"tls-cert,omitempty"` TLSKey string `yaml:"tls-key,omitempty"` TLSVerify bool `yaml:"tls-verify,omitempty"` }
Click to show internal directories.
Click to hide internal directories.