mocks

package
v0.6.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 21, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ACLRepository added in v0.5.0

type ACLRepository struct {
	mock.Mock
}

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

func (_m *ACLRepository) DeleteUserPermissions(ctx context.Context, userID uuid.UUID) error

DeleteUserPermissions provides a mock function with given fields: ctx, userID

func (*ACLRepository) GrantPermission added in v0.5.0

func (_m *ACLRepository) GrantPermission(ctx context.Context, entry *model.ACLEntry) error

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

type AuthMiddleware struct {
	mock.Mock
}

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

type CompactionDaemon struct {
	mock.Mock
}

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

type Daemon struct {
	mock.Mock
}

Daemon is an autogenerated mock type for the Daemon type

func NewDaemon added in v0.4.0

func NewDaemon(t interface {
	mock.TestingT
	Cleanup(func())
}) *Daemon

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.

func (*Daemon) Name added in v0.4.0

func (_m *Daemon) Name() string

Name provides a mock function with no fields

func (*Daemon) Run added in v0.4.0

func (_m *Daemon) Run() error

Run provides a mock function with no fields

type DriftRepository added in v0.6.0

type DriftRepository struct {
	mock.Mock
}

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

func (_m *DriftRepository) GetTagInfo(ctx context.Context, tagID string) (string, string, error)

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

type MetadataRepository struct {
	mock.Mock
}

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

type RegistryRepository struct {
	mock.Mock
}

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

func (_m *RegistryRepository) DeleteModuleTag(ctx context.Context, name string, tag string) error

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

func (_m *RegistryRepository) GetModule(ctx context.Context, name string) (*v1.Module, error)

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

type UserRepository struct {
	mock.Mock
}

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

func (_m *UserRepository) CreateUser(ctx context.Context, user *model.User) error

CreateUser provides a mock function with given fields: ctx, user

func (*UserRepository) DeleteUser added in v0.5.0

func (_m *UserRepository) DeleteUser(ctx context.Context, id uuid.UUID) error

DeleteUser provides a mock function with given fields: ctx, id

func (*UserRepository) GetUser added in v0.5.0

func (_m *UserRepository) GetUser(ctx context.Context, id uuid.UUID) (*model.User, error)

GetUser provides a mock function with given fields: ctx, id

func (*UserRepository) GetUserByName added in v0.5.0

func (_m *UserRepository) GetUserByName(ctx context.Context, name string) (*model.User, error)

GetUserByName provides a mock function with given fields: ctx, name

func (*UserRepository) GetUserByToken added in v0.5.0

func (_m *UserRepository) GetUserByToken(ctx context.Context, token string) (*model.User, error)

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

func (_m *UserRepository) SetUserActive(ctx context.Context, id uuid.UUID, isActive bool) error

SetUserActive provides a mock function with given fields: ctx, id, isActive

func (*UserRepository) UpdateUser added in v0.5.0

func (_m *UserRepository) UpdateUser(ctx context.Context, user *model.User) error

UpdateUser provides a mock function with given fields: ctx, user

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL