config

package
v2.8.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2018 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Certificates

type Certificates struct {
	Cert string `yaml:"Cert" validate:"nonzero"`
	Key  string `yaml:"Key" validate:"nonzero"`
}

type Config

type Config struct {
	Command      string       `yaml:"Command" validate:"nonzero"`
	Port         int          `yaml:"Port" validate:"nonzero"`
	PidFile      string       `yaml:"PidFile" validate:"nonzero"`
	Credentials  Credentials  `yaml:"Credentials" validate:"nonzero"`
	Certificates Certificates `yaml:"Certificates" validate:"nonzero"`
	Logger       lager.Logger
}

func NewConfig

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

func (Config) Cmd

func (c Config) Cmd() *exec.Cmd

func (Config) Validate

func (c Config) Validate() error

type Credentials

type Credentials struct {
	Username string `yaml:"Username" validate:"nonzero"`
	Password string `yaml:"Password" validate:"nonzero"`
}

Jump to

Keyboard shortcuts

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