Documentation
¶
Overview ¶
Package secrets provides commands for managing scafctl secrets.
Index ¶
- func CommandDelete(cliParams *settings.Run, _ *terminal.IOStreams, _ string) *cobra.Command
- func CommandExists(cliParams *settings.Run, ioStreams *terminal.IOStreams, _ string) *cobra.Command
- func CommandExport(cliParams *settings.Run, _ *terminal.IOStreams, _ string) *cobra.Command
- func CommandGet(_ *settings.Run, ioStreams *terminal.IOStreams, _ string) *cobra.Command
- func CommandImport(_ *settings.Run, ioStreams *terminal.IOStreams, _ string) *cobra.Command
- func CommandList(cliParams *settings.Run, ioStreams *terminal.IOStreams, _ string) *cobra.Command
- func CommandRotate(cliParams *settings.Run, _ *terminal.IOStreams, _ string) *cobra.Command
- func CommandSecrets(cliParams *settings.Run, ioStreams *terminal.IOStreams, path string) *cobra.Command
- func CommandSet(_ *settings.Run, ioStreams *terminal.IOStreams, _ string) *cobra.Command
- func FilterUserSecrets(names []string) []string
- func ValidateUserSecretName(name string) error
- type ExportFormat
- type ExportedSecret
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CommandDelete ¶
CommandDelete creates the 'secrets delete' command.
func CommandExists ¶
CommandExists creates the 'secrets exists' command.
func CommandExport ¶
CommandExport creates the 'secrets export' command.
func CommandGet ¶
CommandGet creates the 'secrets get' command.
func CommandImport ¶
CommandImport creates the 'secrets import' command.
func CommandList ¶
CommandList creates the 'secrets list' command.
func CommandRotate ¶
CommandRotate creates the 'secrets rotate' command.
func CommandSecrets ¶
func CommandSecrets(cliParams *settings.Run, ioStreams *terminal.IOStreams, path string) *cobra.Command
CommandSecrets creates the 'secrets' command.
func CommandSet ¶
CommandSet creates the 'secrets set' command.
func FilterUserSecrets ¶
FilterUserSecrets filters out internal secrets (scafctl.*) from a list of secret names.
func ValidateUserSecretName ¶
ValidateUserSecretName validates a secret name for user operations. Returns an error if the name is invalid or uses the reserved "scafctl." prefix.
Types ¶
type ExportFormat ¶
type ExportFormat struct {
Version string `json:"version" yaml:"version"`
ExportedAt string `json:"exported_at" yaml:"exported_at"`
Secrets []ExportedSecret `json:"secrets" yaml:"secrets"`
}
ExportFormat represents the format for exported secrets.
type ExportedSecret ¶
type ExportedSecret struct {
Name string `json:"name" yaml:"name"`
Value string `json:"value" yaml:"value"`
}
ExportedSecret represents a single exported secret.