MCPcopy Create free account
hub / github.com/chainloop-dev/chainloop / DeleteCredentials

Method DeleteCredentials

pkg/credentials/azurekv/keyvault.go:161–168  ·  view source on GitHub ↗

DeleteCredentials deletes credentials and versions

(ctx context.Context, secretName string)

Source from the content-addressed store, hash-verified

159
160// DeleteCredentials deletes credentials and versions
161func (m *Manager) DeleteCredentials(ctx context.Context, secretName string) error {
162 _, err := m.client.DeleteSecret(ctx, secretName, nil)
163 if err != nil {
164 return fmt.Errorf("failed to delete secret: %w", err)
165 }
166
167 return nil
168}
169
170// ValidateWriterClient checks if the client is valid by writing and deleting a secret
171// in the provided mount path.

Callers

nothing calls this directly

Calls 1

DeleteSecretMethod · 0.65

Tested by

no test coverage detected