MCPcopy Create free account
hub / github.com/devaccuracy/ledgerforge / RevokeAPIKey

Method RevokeAPIKey

apikey.go:48–50  ·  view source on GitHub ↗

RevokeAPIKey revokes an API key if it belongs to the specified owner Parameters: - ctx: The context for the operation - id: ID of the API key to revoke - ownerID: ID of the key owner Returns: - error: An error if the operation fails

(ctx context.Context, id, ownerID string)

Source from the content-addressed store, hash-verified

46// Returns:
47// - error: An error if the operation fails
48func (l *LedgerForge) RevokeAPIKey(ctx context.Context, id, ownerID string) error {
49 return l.datasource.RevokeAPIKey(ctx, id, ownerID)
50}
51
52// GetAPIKeyByKey retrieves an API key by its key string
53//

Callers 1

TestRevokeAPIKey_MockFunction · 0.95

Calls 1

RevokeAPIKeyMethod · 0.65

Tested by 1

TestRevokeAPIKey_MockFunction · 0.76