MCPcopy Create free account
hub / github.com/PerpetualSoftware/pad / Delete

Method Delete

internal/cli/credentials.go:199–204  ·  view source on GitHub ↗

Delete removes the credential for the given server URL. No-op if the entry isn't present, or if the receiver is nil.

(serverURL string)

Source from the content-addressed store, hash-verified

197// Delete removes the credential for the given server URL. No-op if the
198// entry isn't present, or if the receiver is nil.
199func (s *CredentialStore) Delete(serverURL string) {
200 if s == nil || s.Credentials == nil {
201 return
202 }
203 delete(s.Credentials, normalizeServerURL(serverURL))
204}
205
206// Save writes the store to disk in v2 format with mode 0600. Always
207// writes the current version constant — even if the store was loaded

Callers 1

Calls 2

deleteFunction · 0.85
normalizeServerURLFunction · 0.85

Tested by 1