flag: github.com/concourse/flag Index | Files

package flag

import "github.com/concourse/flag"

Index

Package Files

authorized_keys.go cipher.go directory.go file.go ip.go lager.go postgres_config.go private_key.go url.go

Constants

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

type AuthorizedKeys Uses

type AuthorizedKeys struct {
    Keys []ssh.PublicKey
}

func (*AuthorizedKeys) UnmarshalFlag Uses

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

type Cipher Uses

type Cipher struct {
    cipher.AEAD
}

func (*Cipher) UnmarshalFlag Uses

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

type Dir Uses

type Dir string

func (Dir) Path Uses

func (f Dir) Path() string

func (*Dir) UnmarshalFlag Uses

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

type File Uses

type File string

func (File) Path Uses

func (f File) Path() string

func (*File) UnmarshalFlag Uses

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

type IP Uses

type IP struct {
    net.IP
}

func (*IP) UnmarshalFlag Uses

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

type Lager Uses

type Lager struct {
    LogLevel string `long:"log-level" default:"info" choice:"debug" choice:"info" choice:"error" choice:"fatal" description:"Minimum level of logs to see."`
    // contains filtered or unexported fields
}

func (Lager) Logger Uses

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

func (*Lager) SetWriterSink Uses

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

type PostgresConfig Uses

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 `long:"sslmode"     description:"Whether or not to use SSL." default:"disable" choice:"disable" choice:"require" choice:"verify-ca" choice:"verify-full"`
    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 Uses

func (config PostgresConfig) ConnectionString() string

type PrivateKey Uses

type PrivateKey struct {
    *rsa.PrivateKey
}

func (*PrivateKey) UnmarshalFlag Uses

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

type URL Uses

type URL struct {
    *url.URL
}

func (URL) String Uses

func (u URL) String() string

func (*URL) UnmarshalFlag Uses

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

Package flag imports 18 packages (graph) and is imported by 12 packages. Updated 2019-03-10. Refresh now. Tools for package owners.