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

Method CreateAPIKey

database/repository.go:174–174  ·  view source on GitHub ↗
(ctx context.Context, name, ownerID string, scopes []string, expiresAt time.Time)

Source from the content-addressed store, hash-verified

172
173type apikey interface {
174 CreateAPIKey(ctx context.Context, name, ownerID string, scopes []string, expiresAt time.Time) (*model.APIKey, error) // Creates a new API key
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

Callers 3

CreateAPIKeyMethod · 0.65
CreateAPIKeyMethod · 0.65

Implementers 2

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

Calls

no outgoing calls

Tested by 1