delete

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2026 License: MIT Imports: 21 Imported by: 0

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