config

package
v2.13.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2020 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientCertificateVerifierFunc

type ClientCertificateVerifierFunc func(rawCerts [][]byte, verifiedChains [][]*x509.Certificate) error

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"`
	TLS         TLSConfig   `yaml:"TLS"`
	Logger      lager.Logger
}

func NewConfig

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

func (Config) Cmd

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

type Credentials

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

type TLSConfig

type TLSConfig struct {
	EnableMutualTLS          bool        `yaml:"EnableMutualTLS"`
	RequiredClientIdentities []string    `yaml:"RequiredClientIdentities"`
	ServerCert               string      `yaml:"ServerCert" validate:"nonzero"`
	ServerKey                string      `yaml:"ServerKey" validate:"nonzero"`
	ClientCA                 string      `yaml:"ClientCA" validate:"nonzero"`
	Config                   *tls.Config `yaml:"-"`
}

Jump to

Keyboard shortcuts

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