flag

package module
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2019 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LogLevelDebug = "debug"
	LogLevelInfo  = "info"
	LogLevelError = "error"
	LogLevelFatal = "fatal"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthorizedKeys

type AuthorizedKeys struct {
	File string
	Keys []ssh.PublicKey
}

func (*AuthorizedKeys) Reload added in v1.4.0

func (f *AuthorizedKeys) Reload() error

Reload reloads the value of the Keys

func (*AuthorizedKeys) UnmarshalFlag

func (f *AuthorizedKeys) UnmarshalFlag(value string) error

type Cipher

type Cipher struct {
	cipher.AEAD
}

func (*Cipher) UnmarshalFlag

func (flag *Cipher) UnmarshalFlag(val string) error

type Dir

type Dir string

func (Dir) Path

func (f Dir) Path() string

func (*Dir) UnmarshalFlag

func (f *Dir) UnmarshalFlag(value string) error

type File

type File string

func (File) Path

func (f File) Path() string

func (File) Reload added in v1.4.0

func (f File) Reload() error

Reload reloads the value of the Keys

func (*File) UnmarshalFlag

func (f *File) UnmarshalFlag(value string) error

type IP

type IP struct {
	net.IP
}

func (*IP) UnmarshalFlag

func (f *IP) UnmarshalFlag(value string) error

type Lager

type Lager struct {
	LogLevel string `` /* 134-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (Lager) Logger

func (f Lager) Logger(component string) (lager.Logger, *lager.ReconfigurableSink)

func (*Lager) SetWriterSink

func (f *Lager) SetWriterSink(writer io.Writer)

type PostgresConfig

type PostgresConfig struct {
	Host string `long:"host" description:"The host to connect to." default:"127.0.0.1"`
	Port uint16 `long:"port" description:"The port to connect to." default:"5432"`

	Socket string `long:"socket" description:"Path to a UNIX domain socket to connect to."`

	User     string `long:"user"     description:"The user to sign in as."`
	Password string `long:"password" description:"The user's password."`

	SSLMode    string `` /* 151-byte string literal not displayed */
	CACert     File   `long:"ca-cert"     description:"CA cert file location, to verify when connecting with SSL."`
	ClientCert File   `long:"client-cert" description:"Client cert file location."`
	ClientKey  File   `long:"client-key"  description:"Client key file location."`

	ConnectTimeout time.Duration `long:"connect-timeout" description:"Dialing timeout. (0 means wait indefinitely)" default:"5m"`

	Database string `long:"database" description:"The name of the database to use." default:"atc"`
}

func (PostgresConfig) ConnectionString

func (config PostgresConfig) ConnectionString() string

type PrivateKey

type PrivateKey struct {
	*rsa.PrivateKey
}

func (*PrivateKey) UnmarshalFlag

func (f *PrivateKey) UnmarshalFlag(path string) error

type URL

type URL struct {
	*url.URL
}

func (URL) String

func (u URL) String() string

func (*URL) UnmarshalFlag

func (u *URL) UnmarshalFlag(value string) error

Jump to

Keyboard shortcuts

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