Documentation
¶
Overview ¶
Package exec provides the implementation for the exec command.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cmd ¶
type Cmd struct {
Application applicationCmd `` /* 129-byte string literal not displayed */
Postgres postgresCmd `cmd:"" group:"storage.nine.ch" name:"postgres" help:"Connect to a PostgreSQL instance."`
PostgresDatabase postgresDatabaseCmd `cmd:"" group:"storage.nine.ch" name:"postgresdatabase" help:"Connect to a PostgreSQL database."`
MySQL mysqlCmd `cmd:"" group:"storage.nine.ch" name:"mysql" help:"Connect to a MySQL instance."`
MySQLDatabase mysqlDatabaseCmd `cmd:"" group:"storage.nine.ch" name:"mysqldatabase" help:"Connect to a MySQL database."`
KeyValueStore kvsCmd `cmd:"" group:"storage.nine.ch" name:"keyvaluestore" aliases:"kvs" help:"Connect to a KeyValueStore instance."`
}
Cmd holds all exec sub-commands.
type ServiceCmd ¶ added in v1.19.0
type ServiceCmd struct {
format.Writer `kong:"-"`
format.Reader `kong:"-"`
AllowedCidrs *[]meta.IPv4CIDR `` /* 133-byte string literal not displayed */
WaitTimeout time.Duration `default:"3m" help:"Timeout waiting for connectivity."`
ExtraArgs []string `arg:"" optional:"" passthrough:"" help:"Additional flags passed to the CLI (after --)."`
// contains filtered or unexported fields
}
ServiceCmd is the shared base for all database exec sub-commands.
It has to be exported so that Kong initializes the embedded format.Writer, see format.Writer.BeforeApply.
func (*ServiceCmd) BeforeApply ¶ added in v1.19.0
BeforeApply initializes Writer and Reader from Kong's bound io.Writer and io.Reader.
Click to show internal directories.
Click to hide internal directories.