config

package
v0.0.0-...-1ad4746 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2018 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// FlagPort is a TCP port the service must run on.
	FlagPort int `json:"port"`

	// FlagVerbose is used to enable debug logs.
	FlagVerbose bool `json:"verbose"`

	// FlagConfig is a path to a config file.
	FlagConfig string `json:"-"`

	// FlagUseAuth enables authorization.
	FlagAuth bool `json:"auth"`

	// FlagCACertFile is a path to CA certificate.
	FlagCACertFile string `json:"ca-cert"`

	// FlagGetRequestTimeout sets a timeout for Get requests used in authorization.
	FlagGetRequestTimeout string `json:"timeout"`

	// FlagRole sets a node's role
	FlagRole string `json:"role"`
}

Config is a structure used to store dcos-log config.

func NewConfig

func NewConfig(args []string) (*Config, error)

NewConfig returns a new instance of Config with loaded fields.

Jump to

Keyboard shortcuts

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