secrets

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2026 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Overview

Package secrets provides commands for managing scafctl secrets.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CommandDelete

func CommandDelete(cliParams *settings.Run, _ *terminal.IOStreams, _ string) *cobra.Command

CommandDelete creates the 'secrets delete' command.

func CommandExists

func CommandExists(cliParams *settings.Run, ioStreams *terminal.IOStreams, _ string) *cobra.Command

CommandExists creates the 'secrets exists' command.

func CommandExport

func CommandExport(cliParams *settings.Run, _ *terminal.IOStreams, _ string) *cobra.Command

CommandExport creates the 'secrets export' command.

func CommandGet

func CommandGet(_ *settings.Run, ioStreams *terminal.IOStreams, _ string) *cobra.Command

CommandGet creates the 'secrets get' command.

func CommandImport

func CommandImport(_ *settings.Run, ioStreams *terminal.IOStreams, _ string) *cobra.Command

CommandImport creates the 'secrets import' command.

func CommandList

func CommandList(cliParams *settings.Run, ioStreams *terminal.IOStreams, _ string) *cobra.Command

CommandList creates the 'secrets list' command.

func CommandRotate

func CommandRotate(cliParams *settings.Run, _ *terminal.IOStreams, _ string) *cobra.Command

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

func CommandSet(_ *settings.Run, ioStreams *terminal.IOStreams, _ string) *cobra.Command

CommandSet creates the 'secrets set' command.

func FilterUserSecrets

func FilterUserSecrets(names []string) []string

FilterUserSecrets filters out internal secrets (scafctl.*) from a list of secret names.

func ValidateUserSecretName

func ValidateUserSecretName(name string) error

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.

Jump to

Keyboard shortcuts

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