common

package
v0.0.0-...-656cd05 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2018 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDockerClient

func NewDockerClient(endpoint string, config Config) (*docker.Client, error)

Types

type Config

type Config struct {
	TLS     *TLSConfig `config:"ssl"`
	Host    string     `config:"host"`
	RootDir string     `config:"root_dir"`
}

func DefaultDockerConfig

func DefaultDockerConfig() Config

type TLSConfig

type TLSConfig struct {
	Enabled     *bool  `config:"enabled"`
	CA          string `config:"certificate_authority"`
	Certificate string `config:"certificate"`
	Key         string `config:"key"`
}

func (*TLSConfig) IsEnabled

func (c *TLSConfig) IsEnabled() bool

Jump to

Keyboard shortcuts

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