delete

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2025 License: MIT Imports: 21 Imported by: 1 module, 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

func Execute

func Execute(h *common.Handler, inputs DeleteSecretsInputs, duration time.Duration, ownerType 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