Help us shape the future of Go! Take the 2026 Go Developer Survey

delete

package
v1.39.0 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2026 License: MIT Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute(ctx context.Context, h *common.Handler, inputs DeleteSecretsInputs, duration time.Duration, secretsAuth string) error

Execute handles the main logic for the 'delete' command. Two paths:

  • MSIG step 1: build request, compute digest, write bundle, print steps
  • EOA: allowlist if needed, then POST to gateway

func New

func New(ctx *runtime.Context) *cobra.Command

New creates and returns the 'secrets delete' cobra command.

func ValidateDeleteInputs

func ValidateDeleteInputs(inputs DeleteSecretsInputs) error

ValidateDeleteInputs validates the delete input structure.

Types

type DeleteSecretItem

type DeleteSecretItem struct {
	ID        string `json:"id" validate:"required"`
	Namespace string `json:"namespace"`
}

DeleteSecretItem represents a single secret to be deleted with its ID and optional namespace.

type DeleteSecretsInputs

type DeleteSecretsInputs []DeleteSecretItem

DeleteSecretsInputs holds the secrets to be deleted.

func ResolveDeleteInputs

func ResolveDeleteInputs(secretsFilePath string) (DeleteSecretsInputs, error)

ResolveDeleteInputs unmarshals the YAML into DeleteSecretsInputs.

type SecretsDeleteYamlConfig

type SecretsDeleteYamlConfig struct {
	SecretsNames []string `yaml:"secretsNames"`
}

secretsNames:

  • SECRET_NAME1
  • SECRET_NAME2

Jump to

Keyboard shortcuts

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