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 ¶
func (StatusCommand) Execute ¶
func (cmd StatusCommand) Execute([]string) error
Source Files
¶
Directories
¶
| Path | Synopsis |
|---|---|
|
internal
|
|
|
ioutilx/ioutilxfakes
Code generated by counterfeiter.
|
Code generated by counterfeiter. |
Click to show internal directories.
Click to hide internal directories.