exec

package
v1.19.0 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2026 License: Apache-2.0 Imports: 32 Imported by: 0

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

func (cmd *ServiceCmd) BeforeApply(writer io.Writer, reader io.Reader) error

BeforeApply initializes Writer and Reader from Kong's bound io.Writer and io.Reader.

Jump to

Keyboard shortcuts

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