cmd

package
v0.2.21 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2026 License: Apache-2.0 Imports: 19 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientCommands

type ClientCommands struct {
	CredentialList   CredentialListCmd   `cmd:"" name:"credentials" help:"List credential keys." group:"CREDENTIAL"`
	CredentialGet    CredentialGetCmd    `cmd:"" name:"credential-get" help:"Get a credential by key." group:"CREDENTIAL"`
	CredentialCreate CredentialCreateCmd `cmd:"" name:"credential-set" help:"Create or update a credential from stdin." group:"CREDENTIAL"`
	CredentialRotate CredentialRotateCmd `cmd:"" name:"credential-rotate" help:"Rotate a credential by key." group:"CREDENTIAL"`
	CredentialDelete CredentialDeleteCmd `cmd:"" name:"credential-delete" help:"Delete a credential by key." group:"CREDENTIAL"`
}

type CredentialCreateCmd

type CredentialCreateCmd struct {
	Json bool   `name:"json" help:"Interpret the credential value as JSON." negatable:""`
	Key  string `arg:"" name:"key" help:"Credential key (identifier)."`
}

func (*CredentialCreateCmd) Run

func (cmd *CredentialCreateCmd) Run(ctx server.Cmd) error

type CredentialDeleteCmd

type CredentialDeleteCmd struct {
	Key string `arg:"" name:"key" help:"Credential key (identifier)."`
}

func (*CredentialDeleteCmd) Run

func (cmd *CredentialDeleteCmd) Run(ctx server.Cmd) error

type CredentialGetCmd

type CredentialGetCmd struct {
	Json bool   `name:"json" help:"Output string credentials as JSON strings." negatable:""`
	Key  string `arg:"" name:"key" help:"Credential key (identifier)."`
}

func (*CredentialGetCmd) Run

func (cmd *CredentialGetCmd) Run(ctx server.Cmd) error

type CredentialListCmd

type CredentialListCmd struct {
	schema.CredentialListRequest
}

func (*CredentialListCmd) Run

func (cmd *CredentialListCmd) Run(ctx server.Cmd) error

type CredentialRotateCmd

type CredentialRotateCmd struct {
	Key string `arg:"" name:"key" help:"Credential key (identifier)."`
}

func (*CredentialRotateCmd) Run

func (cmd *CredentialRotateCmd) Run(ctx server.Cmd) error

type RunServer

type RunServer struct {
	pgcmd.PostgresFlags
	servercmd.RunServer

	// Other flags
	Passphrases []string `name:"passphrase" env:"${ENV_NAME}_PASSPHRASES" help:"One or more passphrases used to encrypt credentials."`
}

func (*RunServer) Run

func (runner *RunServer) Run(ctx server.Cmd) error

func (*RunServer) WithManager

func (runner *RunServer) WithManager(ctx server.Cmd, conn pg.PoolConn, fn func(*manager.Credentials) error) error

type ServerCommands

type ServerCommands struct {
	RunServer RunServer `cmd:"" name:"run" help:"Run the credential server." group:"SERVER"`
	servercmd.OpenAPICommands
}

Jump to

Keyboard shortcuts

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