config

package
v0.0.0-...-e933087 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2017 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package config defines application's configurations

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Name                   string `trim:"true"`
	Port                   uint16
	ViewOnly               bool
	LogLevel               int
	Mode                   string `trim:"true"`
	PathPrefix             string
	LabelOverrideNames     string `trim:"true"`
	LabelFilters           []string
	DockerEndpoints        []string
	DockerCertPath         []string
	DockerPullBeginTimeout time.Duration
	DockerPullTimeout      time.Duration
	DockerStatTimeout      time.Duration
	DockerStartTimeout     time.Duration
	DockerStopTimeout      time.Duration
	DockerRestartTimeout   time.Duration
	DockerKillTimeout      time.Duration
	DockerRmTimeout        time.Duration
	DockerCommitTimeout    time.Duration
	StaticFileHost         string `trim:"true"`
	StaticFilePath         string `trim:"true"`
	PreventSelfStop        bool
	HiddenContainers       []string
}

Config defines the application configurations

func NewConfig

func NewConfig() *Config

NewConfig returns a config struct created by merging environment variables and a config file.

func (*Config) String

func (config *Config) String() string

String returns a string representation of the config.

Jump to

Keyboard shortcuts

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