cmd

package
v0.0.0-...-8366d43 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2018 License: Apache-2.0 Imports: 23 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrFailedToAppendCertsFromPem = errors.New("failed to append certs from pem")
	ErrUnsupportedSQLDriver       = errors.New("unsupported sql driver")
)

Functions

This section is empty.

Types

type AttemptError

type AttemptError int

func NewAttemptError

func NewAttemptError(attempts int) AttemptError

func (AttemptError) Error

func (i AttemptError) Error() string

type DownCommand

type DownCommand struct {
	Logger flags.LagerFlag

	DB flags.DBFlag `group:"DB" namespace:"db"`

	All bool `long:"all" description:"Revert all migrations"`
}

func (DownCommand) Execute

func (cmd DownCommand) Execute([]string) error

type MigrateCommand

type MigrateCommand struct {
	Up     UpCommand     `command:"up" description:"Run migrations"`
	Down   DownCommand   `command:"down" description:"Revert migrations"`
	Status StatusCommand `command:"status" description:"Report status of applied migrations"`
}

type ServeCommand

type ServeCommand struct {
	Logger            flags.LagerFlag
	StatsD            statsDOptions        `group:"StatsD" namespace:"statsd"`
	Host              string               `long:"host" description:"Hostname on which to listen for gRPC traffic" default:"0.0.0.0"`
	Port              int                  `long:"port" description:"Port on which to listen for gRPC traffic" default:"6283"`
	MaxConnectionIdle time.Duration        `` /* 129-byte string literal not displayed */
	TLSCertificate    string               `long:"tls-cert" description:"File path of TLS certificate" required:"true"`
	TLSKey            string               `long:"tls-key" description:"File path of TLS private key" required:"true"`
	DB                flags.DBFlag         `group:"DB" namespace:"db"`
	AuditFilePath     string               `long:"audit-file-path" default:""`
	OAuth2URL         string               `long:"oauth2-url" description:"URL of the OAuth2 provider (only required if '--required-auth' is provided)"`
	OAuth2CA          ioutilx.FileOrString `` /* 128-byte string literal not displayed */
	RequireAuth       bool                 `long:"require-auth" description:"Require auth"`
}

func (ServeCommand) Execute

func (cmd ServeCommand) Execute([]string) error

type StatusCommand

type StatusCommand struct {
	Logger flags.LagerFlag

	DB flags.DBFlag `group:"DB" namespace:"db"`
}

func (StatusCommand) Execute

func (cmd StatusCommand) Execute([]string) error

type UpCommand

type UpCommand struct {
	Logger flags.LagerFlag

	DB flags.DBFlag `group:"DB" namespace:"db"`
}

func (UpCommand) Execute

func (cmd UpCommand) Execute([]string) error

Directories

Path Synopsis
internal
ioutilx/ioutilxfakes
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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