cmd

package
v3.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2024 License: MIT Imports: 25 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ShortTimeFormat is a short format for printing timestamps
	ShortTimeFormat = "2006-01-02 15:04:05"

	// DefaultNumRetries is the default for the number of retries we'll use for our SSM client
	DefaultNumRetries = 10
)
View Source
const (
	NullBackend           = "NULL"
	SSMBackend            = "SSM"
	SecretsManagerBackend = "SECRETSMANAGER"
	S3Backend             = "S3"
	S3KMSBackend          = "S3-KMS"

	BackendEnvVar    = "CHAMBER_SECRET_BACKEND"
	BucketEnvVar     = "CHAMBER_S3_BUCKET"
	KMSKeyEnvVar     = "CHAMBER_KMS_KEY_ALIAS"
	NumRetriesEnvVar = "CHAMBER_RETRIES"

	DefaultKMSKey = "alias/parameter_store_key"
)

Variables

View Source
var RootCmd = &cobra.Command{
	Use:               "chamber",
	Short:             "CLI for storing secrets",
	SilenceUsage:      true,
	PersistentPreRun:  prerun,
	PersistentPostRun: postrun,
}

RootCmd represents the base command when called without any subcommands

Functions

func Execute

func Execute(vers string, writeKey string)

Execute adds all child commands to the root command sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

Types

type ByName

type ByName []store.Secret

func (ByName) Len

func (a ByName) Len() int

func (ByName) Less

func (a ByName) Less(i, j int) bool

func (ByName) Swap

func (a ByName) Swap(i, j int)

type ByTime

type ByTime []store.Secret

func (ByTime) Len

func (a ByTime) Len() int

func (ByTime) Less

func (a ByTime) Less(i, j int) bool

func (ByTime) Swap

func (a ByTime) Swap(i, j int)

type ByUser

type ByUser []store.Secret

func (ByUser) Len

func (a ByUser) Len() int

func (ByUser) Less

func (a ByUser) Less(i, j int) bool

func (ByUser) Swap

func (a ByUser) Swap(i, j int)

type ByVersion

type ByVersion []store.Secret

func (ByVersion) Len

func (a ByVersion) Len() int

func (ByVersion) Less

func (a ByVersion) Less(i, j int) bool

func (ByVersion) Swap

func (a ByVersion) Swap(i, j int)

Jump to

Keyboard shortcuts

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