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 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
Click to show internal directories.
Click to hide internal directories.