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

Method ListAPIKeys

database/repository.go:177–177  ·  view source on GitHub ↗

Revokes an API key

(ctx context.Context, ownerID string)

Source from the content-addressed store, hash-verified

175 GetAPIKey(ctx context.Context, key string) (*model.APIKey, error) // Retrieves an API key by its key string
176 RevokeAPIKey(ctx context.Context, id, ownerID string) error // Revokes an API key
177 ListAPIKeys(ctx context.Context, ownerID string) ([]*model.APIKey, error) // Lists all API keys for a specific owner
178 UpdateLastUsed(ctx context.Context, id string) error // Updates the last_used_at timestamp for an API key
179}
180

Callers 2

ListAPIKeysMethod · 0.65
ListAPIKeysMethod · 0.65

Implementers 2

Datasourcedatabase/db.go
MockDataSourcedatabase/mocks/repo_mocks.go

Calls

no outgoing calls

Tested by

no test coverage detected