flag

package
v2.0.2 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Context

type Context string

func (*Context) AutoComplete

func (c *Context) AutoComplete(ctx context.Context, args []string, toComplete string, flags any) ([]string, string)

type EnableAudit

type EnableAudit struct {
	*Postgres
}

type Grant

type Grant struct {
	*Postgres
}

type Migrate

type Migrate struct {
	*Postgres
	DryRun bool `name:"dry-run" usage:"Perform a dry run of the migration without applying changes."`
}

type MigrateFinalize

type MigrateFinalize struct {
	*Migrate
}

type MigratePromote

type MigratePromote struct {
	*Migrate
	NoWait bool `name:"no-wait" usage:"Do not wait for the job to complete."`
}

type MigrateRollback

type MigrateRollback struct {
	*Migrate
}

type MigrateSetup

type MigrateSetup struct {
	*Migrate
	Tier           string `name:"tier" usage:"The |TIER| of the new instance."`
	DiskAutoResize bool   `name:"disk-auto-resize" usage:"Enable automatic disk resizing for the new instance."`
	DiskSize       int    `name:"disk-size" usage:"The |DISK_SIZE| of the new instance."`
	InstanceType   string `name:"instance-type" usage:"The |TYPE| of the new instance."`
	NoWait         bool   `name:"no-wait" usage:"Do not wait for the job to complete."`
}

type Namespace

type Namespace string

func (*Namespace) AutoComplete

func (c *Namespace) AutoComplete(ctx context.Context, _ []string, _ string, flags any) ([]string, string)

type Password

type Password struct {
	*Postgres
}

type PasswordRotate

type PasswordRotate struct {
	*Password
}

type Postgres

type Postgres struct {
	*root.Flags
	Namespace Namespace `name:"namespace" short:"n" usage:"The kubernetes |NAMESPACE| to use. Defaults to current namespace."`
	Context   Context   `name:"context" short:"c" usage:"The kubeconfig |CONTEXT| to use. Defaults to current context."`
}

type Prepare

type Prepare struct {
	*Postgres
	AllPrivileges bool   `name:"all-privileges" usage:"Grant all privileges on the schema to the current user."`
	Schema        string `name:"schema" usage:"Schema to grant access to."`
}

type Proxy

type Proxy struct {
	*Postgres
	Port uint   `name:"port" short:"p" usage:"Port to use for the proxy. Defaults to 5432."`
	Host string `name:"host" short:"H" usage:"Host to proxy to. Defaults to localhost."`
}

type Psql

type Psql struct {
	*Postgres
}

type Revoke

type Revoke struct {
	*Postgres
	Schema string `name:"schema" usage:"The schema to revoke privileges from."`
}

type User

type User struct {
	*Postgres
}

type UserAdd

type UserAdd struct {
	*User
	Privilege string `name:"privilege" usage:"The privilege to grant to the user."`
}

type UserList

type UserList struct {
	*User
}

Jump to

Keyboard shortcuts

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