Documentation
¶
Index ¶
- type ACLRepository
- func (_m *ACLRepository) CheckPermission(ctx context.Context, userID uuid.UUID, moduleName string, ...) (bool, error)
- func (_m *ACLRepository) DeleteUserPermissions(ctx context.Context, userID uuid.UUID) error
- func (_m *ACLRepository) GrantPermission(ctx context.Context, entry *model.ACLEntry) error
- func (_m *ACLRepository) ListUserPermissions(ctx context.Context, userID uuid.UUID) ([]*model.ACLEntry, error)
- func (_m *ACLRepository) RevokePermission(ctx context.Context, userID uuid.UUID, moduleName string) error
- type AuthMiddleware
- type CompactionDaemon
- type Daemon
- type DriftRepository
- func (_m *DriftRepository) AcknowledgeDriftEvent(ctx context.Context, eventID string, acknowledgedBy string) error
- func (_m *DriftRepository) ComputeAndStoreHashes(ctx context.Context, tagID string) error
- func (_m *DriftRepository) GetDriftEventsForModule(ctx context.Context, moduleName string, tagName string) ([]model.DriftEvent, error)
- func (_m *DriftRepository) GetFileHashesForTag(ctx context.Context, tagID string) (map[string]string, error)
- func (_m *DriftRepository) GetModuleDependencyDriftStatuses(ctx context.Context, moduleName string, tagName string) ([]model.DependencyDriftStatus, error)
- func (_m *DriftRepository) GetPreviousTagID(ctx context.Context, moduleID string, currentTagID string) (string, error)
- func (_m *DriftRepository) GetProtoFileContents(ctx context.Context, tagID string) (map[string]string, error)
- func (_m *DriftRepository) GetTagInfo(ctx context.Context, tagID string) (string, string, error)
- func (_m *DriftRepository) GetTagsWithoutHashes(ctx context.Context) ([]string, error)
- func (_m *DriftRepository) GetUnacknowledgedDriftEvents(ctx context.Context) ([]model.DriftEvent, error)
- func (_m *DriftRepository) SaveDriftEvents(ctx context.Context, events []model.DriftEvent) error
- type MetadataRepository
- func (_m *MetadataRepository) GetParsedProtoFiles(ctx context.Context, tagId string) ([]*model.ParsedProtoFile, error)
- func (_m *MetadataRepository) GetProtoFilesForTagId(ctx context.Context, tagId string) ([]*v1.ProtoFile, error)
- func (_m *MetadataRepository) GetTagMetaByTagId(ctx context.Context, tagId string) (*model.TagMeta, error)
- func (_m *MetadataRepository) GetUnprocessedTagIds(ctx context.Context) ([]string, error)
- func (_m *MetadataRepository) SaveParsedProtoFiles(ctx context.Context, tagId string, files []*model.ParsedProtoFile) error
- type RegistryRepository
- func (_m *RegistryRepository) AddModuleDependencies(ctx context.Context, name string, tag string, dependencies []*v1.Dependency) error
- func (_m *RegistryRepository) DeleteModule(ctx context.Context, name string) error
- func (_m *RegistryRepository) DeleteModuleTag(ctx context.Context, name string, tag string) error
- func (_m *RegistryRepository) DeleteObsoleteDraftTags(ctx context.Context) error
- func (_m *RegistryRepository) GetModule(ctx context.Context, name string) (*v1.Module, error)
- func (_m *RegistryRepository) GetModuleDependencies(ctx context.Context, name string, tag string) ([]*v1.Dependency, error)
- func (_m *RegistryRepository) GetModuleTagId(ctx context.Context, moduleName string, tag string) (string, error)
- func (_m *RegistryRepository) ListModules(ctx context.Context, pageSize int, token string) ([]*v1.Module, string, error)
- func (_m *RegistryRepository) PullDraftModule(ctx context.Context, name string, tag string) (*v1.Module, []*v1.ProtoFile, error)
- func (_m *RegistryRepository) PullModule(ctx context.Context, name string, tag string) (*v1.Module, []*v1.ProtoFile, error)
- func (_m *RegistryRepository) PushDraftModule(ctx context.Context, name string, tag string, protofiles []*v1.ProtoFile, ...) (*v1.Module, error)
- func (_m *RegistryRepository) PushModule(ctx context.Context, name string, tag string, protofiles []*v1.ProtoFile) (*v1.Module, error)
- func (_m *RegistryRepository) RegisterModule(ctx context.Context, moduleName string) error
- type UserRepository
- func (_m *UserRepository) CreateUser(ctx context.Context, user *model.User) error
- func (_m *UserRepository) DeleteUser(ctx context.Context, id uuid.UUID) error
- func (_m *UserRepository) GetUser(ctx context.Context, id uuid.UUID) (*model.User, error)
- func (_m *UserRepository) GetUserByName(ctx context.Context, name string) (*model.User, error)
- func (_m *UserRepository) GetUserByToken(ctx context.Context, token string) (*model.User, error)
- func (_m *UserRepository) ListUsers(ctx context.Context, limit int, offset int) ([]*model.User, error)
- func (_m *UserRepository) SetUserActive(ctx context.Context, id uuid.UUID, isActive bool) error
- func (_m *UserRepository) UpdateUser(ctx context.Context, user *model.User) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ACLRepository ¶ added in v0.5.0
ACLRepository is an autogenerated mock type for the ACLRepository type
func NewACLRepository ¶ added in v0.5.0
func NewACLRepository(t interface {
mock.TestingT
Cleanup(func())
}) *ACLRepository
NewACLRepository creates a new instance of ACLRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*ACLRepository) CheckPermission ¶ added in v0.5.0
func (_m *ACLRepository) CheckPermission(ctx context.Context, userID uuid.UUID, moduleName string, permission model.Permission) (bool, error)
CheckPermission provides a mock function with given fields: ctx, userID, moduleName, permission
func (*ACLRepository) DeleteUserPermissions ¶ added in v0.5.0
DeleteUserPermissions provides a mock function with given fields: ctx, userID
func (*ACLRepository) GrantPermission ¶ added in v0.5.0
GrantPermission provides a mock function with given fields: ctx, entry
func (*ACLRepository) ListUserPermissions ¶ added in v0.5.0
func (_m *ACLRepository) ListUserPermissions(ctx context.Context, userID uuid.UUID) ([]*model.ACLEntry, error)
ListUserPermissions provides a mock function with given fields: ctx, userID
func (*ACLRepository) RevokePermission ¶ added in v0.5.0
func (_m *ACLRepository) RevokePermission(ctx context.Context, userID uuid.UUID, moduleName string) error
RevokePermission provides a mock function with given fields: ctx, userID, moduleName
type AuthMiddleware ¶ added in v0.3.0
AuthMiddleware is an autogenerated mock type for the AuthMiddleware type
func NewAuthMiddleware ¶ added in v0.3.0
func NewAuthMiddleware(t interface {
mock.TestingT
Cleanup(func())
}) *AuthMiddleware
NewAuthMiddleware creates a new instance of AuthMiddleware. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*AuthMiddleware) NewAuthMiddleware ¶ added in v0.3.0
func (_m *AuthMiddleware) NewAuthMiddleware() middleware.Middleware
NewAuthMiddleware provides a mock function with no fields
type CompactionDaemon ¶ added in v0.4.0
CompactionDaemon is an autogenerated mock type for the CompactionDaemon type
func NewCompactionDaemon ¶ added in v0.4.0
func NewCompactionDaemon(t interface {
mock.TestingT
Cleanup(func())
}) *CompactionDaemon
NewCompactionDaemon creates a new instance of CompactionDaemon. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*CompactionDaemon) Run ¶ added in v0.4.0
func (_m *CompactionDaemon) Run() error
Run provides a mock function with given fields:
type Daemon ¶ added in v0.4.0
Daemon is an autogenerated mock type for the Daemon type
func NewDaemon ¶ added in v0.4.0
NewDaemon creates a new instance of Daemon. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
type DriftRepository ¶ added in v0.6.0
DriftRepository is an autogenerated mock type for the DriftRepository type
func NewDriftRepository ¶ added in v0.6.0
func NewDriftRepository(t interface {
mock.TestingT
Cleanup(func())
}) *DriftRepository
NewDriftRepository creates a new instance of DriftRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*DriftRepository) AcknowledgeDriftEvent ¶ added in v0.6.0
func (_m *DriftRepository) AcknowledgeDriftEvent(ctx context.Context, eventID string, acknowledgedBy string) error
AcknowledgeDriftEvent provides a mock function with given fields: ctx, eventID, acknowledgedBy
func (*DriftRepository) ComputeAndStoreHashes ¶ added in v0.6.0
func (_m *DriftRepository) ComputeAndStoreHashes(ctx context.Context, tagID string) error
ComputeAndStoreHashes provides a mock function with given fields: ctx, tagID
func (*DriftRepository) GetDriftEventsForModule ¶ added in v0.6.0
func (_m *DriftRepository) GetDriftEventsForModule(ctx context.Context, moduleName string, tagName string) ([]model.DriftEvent, error)
GetDriftEventsForModule provides a mock function with given fields: ctx, moduleName, tagName
func (*DriftRepository) GetFileHashesForTag ¶ added in v0.6.0
func (_m *DriftRepository) GetFileHashesForTag(ctx context.Context, tagID string) (map[string]string, error)
GetFileHashesForTag provides a mock function with given fields: ctx, tagID
func (*DriftRepository) GetModuleDependencyDriftStatuses ¶ added in v0.6.2
func (_m *DriftRepository) GetModuleDependencyDriftStatuses(ctx context.Context, moduleName string, tagName string) ([]model.DependencyDriftStatus, error)
GetModuleDependencyDriftStatuses provides a mock function with given fields: ctx, moduleName, tagName
func (*DriftRepository) GetPreviousTagID ¶ added in v0.6.0
func (_m *DriftRepository) GetPreviousTagID(ctx context.Context, moduleID string, currentTagID string) (string, error)
GetPreviousTagID provides a mock function with given fields: ctx, moduleID, currentTagID
func (*DriftRepository) GetProtoFileContents ¶ added in v0.6.0
func (_m *DriftRepository) GetProtoFileContents(ctx context.Context, tagID string) (map[string]string, error)
GetProtoFileContents provides a mock function with given fields: ctx, tagID
func (*DriftRepository) GetTagInfo ¶ added in v0.6.0
GetTagInfo provides a mock function with given fields: ctx, tagID
func (*DriftRepository) GetTagsWithoutHashes ¶ added in v0.6.0
func (_m *DriftRepository) GetTagsWithoutHashes(ctx context.Context) ([]string, error)
GetTagsWithoutHashes provides a mock function with given fields: ctx
func (*DriftRepository) GetUnacknowledgedDriftEvents ¶ added in v0.6.0
func (_m *DriftRepository) GetUnacknowledgedDriftEvents(ctx context.Context) ([]model.DriftEvent, error)
GetUnacknowledgedDriftEvents provides a mock function with given fields: ctx
func (*DriftRepository) SaveDriftEvents ¶ added in v0.6.0
func (_m *DriftRepository) SaveDriftEvents(ctx context.Context, events []model.DriftEvent) error
SaveDriftEvents provides a mock function with given fields: ctx, events
type MetadataRepository ¶ added in v0.4.0
MetadataRepository is an autogenerated mock type for the MetadataRepository type
func NewMetadataRepository ¶ added in v0.4.0
func NewMetadataRepository(t interface {
mock.TestingT
Cleanup(func())
}) *MetadataRepository
NewMetadataRepository creates a new instance of MetadataRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*MetadataRepository) GetParsedProtoFiles ¶ added in v0.4.0
func (_m *MetadataRepository) GetParsedProtoFiles(ctx context.Context, tagId string) ([]*model.ParsedProtoFile, error)
GetParsedProtoFiles provides a mock function with given fields: ctx, tagId
func (*MetadataRepository) GetProtoFilesForTagId ¶ added in v0.4.0
func (_m *MetadataRepository) GetProtoFilesForTagId(ctx context.Context, tagId string) ([]*v1.ProtoFile, error)
GetProtoFilesForTagId provides a mock function with given fields: ctx, tagId
func (*MetadataRepository) GetTagMetaByTagId ¶ added in v0.4.0
func (_m *MetadataRepository) GetTagMetaByTagId(ctx context.Context, tagId string) (*model.TagMeta, error)
GetTagMetaByTagId provides a mock function with given fields: ctx, tagId
func (*MetadataRepository) GetUnprocessedTagIds ¶ added in v0.4.0
func (_m *MetadataRepository) GetUnprocessedTagIds(ctx context.Context) ([]string, error)
GetUnprocessedTagIds provides a mock function with given fields: ctx
func (*MetadataRepository) SaveParsedProtoFiles ¶ added in v0.4.0
func (_m *MetadataRepository) SaveParsedProtoFiles(ctx context.Context, tagId string, files []*model.ParsedProtoFile) error
SaveParsedProtoFiles provides a mock function with given fields: ctx, tagId, files
type RegistryRepository ¶
RegistryRepository is an autogenerated mock type for the RegistryRepository type
func NewRegistryRepository ¶
func NewRegistryRepository(t interface {
mock.TestingT
Cleanup(func())
}) *RegistryRepository
NewRegistryRepository creates a new instance of RegistryRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*RegistryRepository) AddModuleDependencies ¶ added in v0.2.0
func (_m *RegistryRepository) AddModuleDependencies(ctx context.Context, name string, tag string, dependencies []*v1.Dependency) error
AddModuleDependencies provides a mock function with given fields: ctx, name, tag, dependencies
func (*RegistryRepository) DeleteModule ¶ added in v0.1.0
func (_m *RegistryRepository) DeleteModule(ctx context.Context, name string) error
DeleteModule provides a mock function with given fields: ctx, name
func (*RegistryRepository) DeleteModuleTag ¶ added in v0.1.0
DeleteModuleTag provides a mock function with given fields: ctx, name, tag
func (*RegistryRepository) DeleteObsoleteDraftTags ¶ added in v0.4.0
func (_m *RegistryRepository) DeleteObsoleteDraftTags(ctx context.Context) error
DeleteObsoleteDraftTags provides a mock function with given fields: ctx
func (*RegistryRepository) GetModule ¶ added in v0.1.0
GetModule provides a mock function with given fields: ctx, name
func (*RegistryRepository) GetModuleDependencies ¶ added in v0.2.0
func (_m *RegistryRepository) GetModuleDependencies(ctx context.Context, name string, tag string) ([]*v1.Dependency, error)
GetModuleDependencies provides a mock function with given fields: ctx, name, tag
func (*RegistryRepository) GetModuleTagId ¶ added in v0.4.0
func (_m *RegistryRepository) GetModuleTagId(ctx context.Context, moduleName string, tag string) (string, error)
GetModuleTagId provides a mock function with given fields: ctx, moduleName, tag
func (*RegistryRepository) ListModules ¶ added in v0.1.0
func (_m *RegistryRepository) ListModules(ctx context.Context, pageSize int, token string) ([]*v1.Module, string, error)
ListModules provides a mock function with given fields: ctx, pageSize, token
func (*RegistryRepository) PullDraftModule ¶ added in v0.4.0
func (_m *RegistryRepository) PullDraftModule(ctx context.Context, name string, tag string) (*v1.Module, []*v1.ProtoFile, error)
PullDraftModule provides a mock function with given fields: ctx, name, tag
func (*RegistryRepository) PullModule ¶ added in v0.1.0
func (_m *RegistryRepository) PullModule(ctx context.Context, name string, tag string) (*v1.Module, []*v1.ProtoFile, error)
PullModule provides a mock function with given fields: ctx, name, tag
func (*RegistryRepository) PushDraftModule ¶ added in v0.4.0
func (_m *RegistryRepository) PushDraftModule(ctx context.Context, name string, tag string, protofiles []*v1.ProtoFile, dependencies []*v1.Dependency) (*v1.Module, error)
PushDraftModule provides a mock function with given fields: ctx, name, tag, protofiles, dependencies
func (*RegistryRepository) PushModule ¶ added in v0.1.0
func (_m *RegistryRepository) PushModule(ctx context.Context, name string, tag string, protofiles []*v1.ProtoFile) (*v1.Module, error)
PushModule provides a mock function with given fields: ctx, name, tag, protofiles
func (*RegistryRepository) RegisterModule ¶
func (_m *RegistryRepository) RegisterModule(ctx context.Context, moduleName string) error
RegisterModule provides a mock function with given fields: ctx, moduleName
type UserRepository ¶ added in v0.5.0
UserRepository is an autogenerated mock type for the UserRepository type
func NewUserRepository ¶ added in v0.5.0
func NewUserRepository(t interface {
mock.TestingT
Cleanup(func())
}) *UserRepository
NewUserRepository creates a new instance of UserRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*UserRepository) CreateUser ¶ added in v0.5.0
CreateUser provides a mock function with given fields: ctx, user
func (*UserRepository) DeleteUser ¶ added in v0.5.0
DeleteUser provides a mock function with given fields: ctx, id
func (*UserRepository) GetUser ¶ added in v0.5.0
GetUser provides a mock function with given fields: ctx, id
func (*UserRepository) GetUserByName ¶ added in v0.5.0
GetUserByName provides a mock function with given fields: ctx, name
func (*UserRepository) GetUserByToken ¶ added in v0.5.0
GetUserByToken provides a mock function with given fields: ctx, token
func (*UserRepository) ListUsers ¶ added in v0.5.0
func (_m *UserRepository) ListUsers(ctx context.Context, limit int, offset int) ([]*model.User, error)
ListUsers provides a mock function with given fields: ctx, limit, offset
func (*UserRepository) SetUserActive ¶ added in v0.5.0
SetUserActive provides a mock function with given fields: ctx, id, isActive
func (*UserRepository) UpdateUser ¶ added in v0.5.0
UpdateUser provides a mock function with given fields: ctx, user