Versions in this module Expand all Collapse all v1 v1.13.0 Jul 1, 2026 Changes in this version + type MockAccessControlService struct + func (m *MockAccessControlService) EnsurePermissions(ctx context.Context, permissions []rootservices.PermissionDefinition) error + func (m *MockAccessControlService) RoleExists(ctx context.Context, roleName string) (bool, error) + func (m *MockAccessControlService) ValidatePermissionKeys(ctx context.Context, permissionKeys []string) error + func (m *MockAccessControlService) ValidateRoleAssignment(ctx context.Context, roleName string, assignerUserID *string) (bool, error) + type MockApiKeyRepository struct + func (m *MockApiKeyRepository) Create(ctx context.Context, apiKey *types.ApiKey) (*types.ApiKey, error) + func (m *MockApiKeyRepository) Delete(ctx context.Context, id string) error + func (m *MockApiKeyRepository) DeleteAllByOwner(ctx context.Context, ownerType string, ownerID string) error + func (m *MockApiKeyRepository) DeleteExpired(ctx context.Context) error + func (m *MockApiKeyRepository) GetAll(ctx context.Context, ownerType *string, ownerID *string, page int, limit int) ([]*types.ApiKey, int, error) + func (m *MockApiKeyRepository) GetByID(ctx context.Context, id string) (*types.ApiKey, error) + func (m *MockApiKeyRepository) GetByKeyHash(ctx context.Context, keyHash string) (*types.ApiKey, error) + func (m *MockApiKeyRepository) Update(ctx context.Context, apiKey *types.ApiKey) (*types.ApiKey, error) + func (m *MockApiKeyRepository) WithTx(tx bun.IDB) repositories.ApiKeyRepository + type MockApiKeyService struct + func (m *MockApiKeyService) Create(ctx context.Context, actor *models.Actor, req types.CreateApiKeyRequest) (*types.CreateApiKeyResponse, error) + func (m *MockApiKeyService) Delete(ctx context.Context, actor *models.Actor, id string) error + func (m *MockApiKeyService) DeleteAllByOwner(ctx context.Context, actor *models.Actor, ownerType string, ownerID string) error + func (m *MockApiKeyService) DeleteExpired(ctx context.Context) error + func (m *MockApiKeyService) GetAll(ctx context.Context, actor *models.Actor, req types.GetApiKeysRequest) (*types.GetAllApiKeysResponse, error) + func (m *MockApiKeyService) GetByID(ctx context.Context, actor *models.Actor, id string) (*types.ApiKey, error) + func (m *MockApiKeyService) RecordLastRequest(ctx context.Context, id string, timestamp time.Time) (*types.ApiKey, error) + func (m *MockApiKeyService) Update(ctx context.Context, actor *models.Actor, id string, ...) (*types.ApiKey, error) + func (m *MockApiKeyService) ValidatePermissionKeys(ctx context.Context, permissionKeys []string) error + func (m *MockApiKeyService) Verify(ctx context.Context, req types.VerifyApiKeyRequest) (*types.VerifyApiKeyResult, error)