config

package
v0.0.0-...-e98e7c4 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2015 License: Apache-2.0 Imports: 9 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrBadCredentials = errors.New("credentials must be of the form `user:pass`")
	ErrNoScheme       = errors.New("please specify a scheme for the registry")
)

Functions

This section is empty.

Types

type Config

type Config struct {
	Registry Registry
	Web      struct {
		Listen string
	}
	Marathon MarathonConfig
	LogLevel string
}

func New

func New() (config *Config)

type MarathonConfig

type MarathonConfig struct {
	Location string
	Protocol string
	Username string
	Password string
}

func (MarathonConfig) NewMarathon

func (m MarathonConfig) NewMarathon() (marathon.Marathon, error)

func (MarathonConfig) Validate

func (m MarathonConfig) Validate()

type Registry

type Registry struct {
	Auth        string
	Datacenter  string
	Location    string
	Token       string
	NoVerifySSL bool
	Prefix      string
}

func (Registry) Config

func (r Registry) Config() (*api.Config, error)

func (Registry) GetAuth

func (r Registry) GetAuth() (auth *api.HttpBasicAuth, err error)

Jump to

Keyboard shortcuts

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