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

Method CreateAPIKey

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

Source from the content-addressed store, hash-verified

569}
570
571func (m *MockDataSource) CreateAPIKey(ctx context.Context, name, ownerID string, scopes []string, expiresAt time.Time) (*model.APIKey, error) {
572 args := m.Called(ctx, name, ownerID, scopes, expiresAt)
573 return args.Get(0).(*model.APIKey), args.Error(1)
574}
575
576func (m *MockDataSource) ListAPIKeys(ctx context.Context, ownerID string) ([]*model.APIKey, error) {
577 args := m.Called(ctx, ownerID)

Callers

nothing calls this directly

Calls 2

GetMethod · 0.65
ErrorMethod · 0.45

Tested by

no test coverage detected