Documentation
¶
Overview ¶
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Index ¶
- type MockAuthService
- func (m *MockAuthService) Artifact(arg0 models.User, arg1 int64, arg2 enums.Auth) (bool, error)
- func (m *MockAuthService) EXPECT() *MockAuthServiceMockRecorder
- func (m *MockAuthService) Namespace(arg0 models.User, arg1 int64, arg2 enums.Auth) (bool, error)
- func (m *MockAuthService) NamespaceRole(arg0 models.User, arg1 int64) (*enums.NamespaceRole, error)
- func (m *MockAuthService) NamespacesRole(arg0 models.User, arg1 []int64) (map[int64]*enums.NamespaceRole, error)
- func (m *MockAuthService) Repository(arg0 models.User, arg1 int64, arg2 enums.Auth) (bool, error)
- func (m *MockAuthService) Tag(arg0 models.User, arg1 int64, arg2 enums.Auth) (bool, error)
- type MockAuthServiceFactory
- type MockAuthServiceFactoryMockRecorder
- type MockAuthServiceMockRecorder
- func (mr *MockAuthServiceMockRecorder) Artifact(arg0, arg1, arg2 any) *gomock.Call
- func (mr *MockAuthServiceMockRecorder) Namespace(arg0, arg1, arg2 any) *gomock.Call
- func (mr *MockAuthServiceMockRecorder) NamespaceRole(arg0, arg1 any) *gomock.Call
- func (mr *MockAuthServiceMockRecorder) NamespacesRole(arg0, arg1 any) *gomock.Call
- func (mr *MockAuthServiceMockRecorder) Repository(arg0, arg1, arg2 any) *gomock.Call
- func (mr *MockAuthServiceMockRecorder) Tag(arg0, arg1, arg2 any) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockAuthService ¶ added in v1.2.0
type MockAuthService struct {
// contains filtered or unexported fields
}
MockAuthService is a mock of AuthService interface.
func NewMockAuthService ¶ added in v1.2.0
func NewMockAuthService(ctrl *gomock.Controller) *MockAuthService
NewMockAuthService creates a new mock instance.
func (*MockAuthService) EXPECT ¶ added in v1.2.0
func (m *MockAuthService) EXPECT() *MockAuthServiceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockAuthService) NamespaceRole ¶ added in v1.2.0
func (m *MockAuthService) NamespaceRole(arg0 models.User, arg1 int64) (*enums.NamespaceRole, error)
NamespaceRole mocks base method.
func (*MockAuthService) NamespacesRole ¶ added in v1.2.0
func (m *MockAuthService) NamespacesRole(arg0 models.User, arg1 []int64) (map[int64]*enums.NamespaceRole, error)
NamespacesRole mocks base method.
func (*MockAuthService) Repository ¶ added in v1.2.0
Repository mocks base method.
type MockAuthServiceFactory ¶ added in v1.2.0
type MockAuthServiceFactory struct {
// contains filtered or unexported fields
}
MockAuthServiceFactory is a mock of AuthServiceFactory interface.
func NewMockAuthServiceFactory ¶ added in v1.2.0
func NewMockAuthServiceFactory(ctrl *gomock.Controller) *MockAuthServiceFactory
NewMockAuthServiceFactory creates a new mock instance.
func (*MockAuthServiceFactory) EXPECT ¶ added in v1.2.0
func (m *MockAuthServiceFactory) EXPECT() *MockAuthServiceFactoryMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockAuthServiceFactory) New ¶ added in v1.2.0
func (m *MockAuthServiceFactory) New() auth.AuthService
New mocks base method.
type MockAuthServiceFactoryMockRecorder ¶ added in v1.2.0
type MockAuthServiceFactoryMockRecorder struct {
// contains filtered or unexported fields
}
MockAuthServiceFactoryMockRecorder is the mock recorder for MockAuthServiceFactory.
func (*MockAuthServiceFactoryMockRecorder) New ¶ added in v1.2.0
func (mr *MockAuthServiceFactoryMockRecorder) New() *gomock.Call
New indicates an expected call of New.
type MockAuthServiceMockRecorder ¶ added in v1.2.0
type MockAuthServiceMockRecorder struct {
// contains filtered or unexported fields
}
MockAuthServiceMockRecorder is the mock recorder for MockAuthService.
func (*MockAuthServiceMockRecorder) Artifact ¶ added in v1.2.0
func (mr *MockAuthServiceMockRecorder) Artifact(arg0, arg1, arg2 any) *gomock.Call
Artifact indicates an expected call of Artifact.
func (*MockAuthServiceMockRecorder) Namespace ¶ added in v1.2.0
func (mr *MockAuthServiceMockRecorder) Namespace(arg0, arg1, arg2 any) *gomock.Call
Namespace indicates an expected call of Namespace.
func (*MockAuthServiceMockRecorder) NamespaceRole ¶ added in v1.2.0
func (mr *MockAuthServiceMockRecorder) NamespaceRole(arg0, arg1 any) *gomock.Call
NamespaceRole indicates an expected call of NamespaceRole.
func (*MockAuthServiceMockRecorder) NamespacesRole ¶ added in v1.2.0
func (mr *MockAuthServiceMockRecorder) NamespacesRole(arg0, arg1 any) *gomock.Call
NamespacesRole indicates an expected call of NamespacesRole.
func (*MockAuthServiceMockRecorder) Repository ¶ added in v1.2.0
func (mr *MockAuthServiceMockRecorder) Repository(arg0, arg1, arg2 any) *gomock.Call
Repository indicates an expected call of Repository.