mock_security

package
v0.0.0-...-bb80d3f Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2024 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Overview

Package mock_security is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockEnforcer

type MockEnforcer struct {
	// contains filtered or unexported fields
}

MockEnforcer is a mock of Enforcer interface.

func NewMockEnforcer

func NewMockEnforcer(ctrl *gomock.Controller) *MockEnforcer

NewMockEnforcer creates a new mock instance.

func (*MockEnforcer) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockEnforcer) Enforce

func (m *MockEnforcer) Enforce(arg0 ...interface{}) (bool, error)

Enforce mocks base method.

func (*MockEnforcer) GetPermissionsForUser

func (m *MockEnforcer) GetPermissionsForUser(arg0 string, arg1 ...string) ([][]string, error)

GetPermissionsForUser mocks base method.

func (*MockEnforcer) GetRolesForUser

func (m *MockEnforcer) GetRolesForUser(arg0 string, arg1 ...string) ([]string, error)

GetRolesForUser mocks base method.

func (*MockEnforcer) HasPermissionForUser

func (m *MockEnforcer) HasPermissionForUser(arg0 string, arg1 ...string) (bool, error)

HasPermissionForUser mocks base method.

func (*MockEnforcer) LoadPolicy

func (m *MockEnforcer) LoadPolicy() error

LoadPolicy mocks base method.

func (*MockEnforcer) StartAutoLoadPolicy

func (m *MockEnforcer) StartAutoLoadPolicy(arg0 context.Context, arg1 time.Duration)

StartAutoLoadPolicy mocks base method.

type MockEnforcerMockRecorder

type MockEnforcerMockRecorder struct {
	// contains filtered or unexported fields
}

MockEnforcerMockRecorder is the mock recorder for MockEnforcer.

func (*MockEnforcerMockRecorder) Enforce

func (mr *MockEnforcerMockRecorder) Enforce(arg0 ...interface{}) *gomock.Call

Enforce indicates an expected call of Enforce.

func (*MockEnforcerMockRecorder) GetPermissionsForUser

func (mr *MockEnforcerMockRecorder) GetPermissionsForUser(arg0 interface{}, arg1 ...interface{}) *gomock.Call

GetPermissionsForUser indicates an expected call of GetPermissionsForUser.

func (*MockEnforcerMockRecorder) GetRolesForUser

func (mr *MockEnforcerMockRecorder) GetRolesForUser(arg0 interface{}, arg1 ...interface{}) *gomock.Call

GetRolesForUser indicates an expected call of GetRolesForUser.

func (*MockEnforcerMockRecorder) HasPermissionForUser

func (mr *MockEnforcerMockRecorder) HasPermissionForUser(arg0 interface{}, arg1 ...interface{}) *gomock.Call

HasPermissionForUser indicates an expected call of HasPermissionForUser.

func (*MockEnforcerMockRecorder) LoadPolicy

func (mr *MockEnforcerMockRecorder) LoadPolicy() *gomock.Call

LoadPolicy indicates an expected call of LoadPolicy.

func (*MockEnforcerMockRecorder) StartAutoLoadPolicy

func (mr *MockEnforcerMockRecorder) StartAutoLoadPolicy(arg0, arg1 interface{}) *gomock.Call

StartAutoLoadPolicy indicates an expected call of StartAutoLoadPolicy.

type MockHttpProvider

type MockHttpProvider struct {
	// contains filtered or unexported fields
}

MockHttpProvider is a mock of HttpProvider interface.

func NewMockHttpProvider

func NewMockHttpProvider(ctrl *gomock.Controller) *MockHttpProvider

NewMockHttpProvider creates a new mock instance.

func (*MockHttpProvider) Auth

func (m *MockHttpProvider) Auth(arg0 *http.Request) (*security.User, error, bool)

Auth mocks base method.

func (*MockHttpProvider) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

type MockHttpProviderMockRecorder

type MockHttpProviderMockRecorder struct {
	// contains filtered or unexported fields
}

MockHttpProviderMockRecorder is the mock recorder for MockHttpProvider.

func (*MockHttpProviderMockRecorder) Auth

func (mr *MockHttpProviderMockRecorder) Auth(arg0 interface{}) *gomock.Call

Auth indicates an expected call of Auth.

type MockProvider

type MockProvider struct {
	// contains filtered or unexported fields
}

MockProvider is a mock of Provider interface.

func NewMockProvider

func NewMockProvider(ctrl *gomock.Controller) *MockProvider

NewMockProvider creates a new mock instance.

func (*MockProvider) Auth

func (m *MockProvider) Auth(arg0 context.Context, arg1, arg2 string) (*security.User, error)

Auth mocks base method.

func (*MockProvider) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockProvider) GetName

func (m *MockProvider) GetName() string

GetName mocks base method.

type MockProviderMockRecorder

type MockProviderMockRecorder struct {
	// contains filtered or unexported fields
}

MockProviderMockRecorder is the mock recorder for MockProvider.

func (*MockProviderMockRecorder) Auth

func (mr *MockProviderMockRecorder) Auth(arg0, arg1, arg2 interface{}) *gomock.Call

Auth indicates an expected call of Auth.

func (*MockProviderMockRecorder) GetName

func (mr *MockProviderMockRecorder) GetName() *gomock.Call

GetName indicates an expected call of GetName.

type MockRoleProvider

type MockRoleProvider struct {
	// contains filtered or unexported fields
}

MockRoleProvider is a mock of RoleProvider interface.

func NewMockRoleProvider

func NewMockRoleProvider(ctrl *gomock.Controller) *MockRoleProvider

NewMockRoleProvider creates a new mock instance.

func (*MockRoleProvider) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockRoleProvider) GetRoleID

func (m *MockRoleProvider) GetRoleID(arg0 context.Context, arg1 string) (string, error)

GetRoleID mocks base method.

func (*MockRoleProvider) GetValidRoleIDs

func (m *MockRoleProvider) GetValidRoleIDs(arg0 context.Context, arg1 []string, arg2 string) ([]string, error)

GetValidRoleIDs mocks base method.

type MockRoleProviderMockRecorder

type MockRoleProviderMockRecorder struct {
	// contains filtered or unexported fields
}

MockRoleProviderMockRecorder is the mock recorder for MockRoleProvider.

func (*MockRoleProviderMockRecorder) GetRoleID

func (mr *MockRoleProviderMockRecorder) GetRoleID(arg0, arg1 interface{}) *gomock.Call

GetRoleID indicates an expected call of GetRoleID.

func (*MockRoleProviderMockRecorder) GetValidRoleIDs

func (mr *MockRoleProviderMockRecorder) GetValidRoleIDs(arg0, arg1, arg2 interface{}) *gomock.Call

GetValidRoleIDs indicates an expected call of GetValidRoleIDs.

type MockUserProvider

type MockUserProvider struct {
	// contains filtered or unexported fields
}

MockUserProvider is a mock of UserProvider interface.

func NewMockUserProvider

func NewMockUserProvider(ctrl *gomock.Controller) *MockUserProvider

NewMockUserProvider creates a new mock instance.

func (*MockUserProvider) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockUserProvider) FindByAuthApiKey

func (m *MockUserProvider) FindByAuthApiKey(arg0 context.Context, arg1 string) (*security.User, error)

FindByAuthApiKey mocks base method.

func (*MockUserProvider) FindByExternalSource

func (m *MockUserProvider) FindByExternalSource(arg0 context.Context, arg1, arg2 string) (*security.User, error)

FindByExternalSource mocks base method.

func (*MockUserProvider) FindByID

func (m *MockUserProvider) FindByID(arg0 context.Context, arg1 string) (*security.User, error)

FindByID mocks base method.

func (*MockUserProvider) FindByUsername

func (m *MockUserProvider) FindByUsername(arg0 context.Context, arg1 string) (*security.User, error)

FindByUsername mocks base method.

func (*MockUserProvider) FindWithoutPermission

func (m *MockUserProvider) FindWithoutPermission(arg0 context.Context, arg1 string) ([]security.User, error)

FindWithoutPermission mocks base method.

func (*MockUserProvider) Save

func (m *MockUserProvider) Save(arg0 context.Context, arg1 *security.User) error

Save mocks base method.

func (*MockUserProvider) UpdateHashedPassword

func (m *MockUserProvider) UpdateHashedPassword(arg0 context.Context, arg1, arg2 string) error

UpdateHashedPassword mocks base method.

type MockUserProviderMockRecorder

type MockUserProviderMockRecorder struct {
	// contains filtered or unexported fields
}

MockUserProviderMockRecorder is the mock recorder for MockUserProvider.

func (*MockUserProviderMockRecorder) FindByAuthApiKey

func (mr *MockUserProviderMockRecorder) FindByAuthApiKey(arg0, arg1 interface{}) *gomock.Call

FindByAuthApiKey indicates an expected call of FindByAuthApiKey.

func (*MockUserProviderMockRecorder) FindByExternalSource

func (mr *MockUserProviderMockRecorder) FindByExternalSource(arg0, arg1, arg2 interface{}) *gomock.Call

FindByExternalSource indicates an expected call of FindByExternalSource.

func (*MockUserProviderMockRecorder) FindByID

func (mr *MockUserProviderMockRecorder) FindByID(arg0, arg1 interface{}) *gomock.Call

FindByID indicates an expected call of FindByID.

func (*MockUserProviderMockRecorder) FindByUsername

func (mr *MockUserProviderMockRecorder) FindByUsername(arg0, arg1 interface{}) *gomock.Call

FindByUsername indicates an expected call of FindByUsername.

func (*MockUserProviderMockRecorder) FindWithoutPermission

func (mr *MockUserProviderMockRecorder) FindWithoutPermission(arg0, arg1 interface{}) *gomock.Call

FindWithoutPermission indicates an expected call of FindWithoutPermission.

func (*MockUserProviderMockRecorder) Save

func (mr *MockUserProviderMockRecorder) Save(arg0, arg1 interface{}) *gomock.Call

Save indicates an expected call of Save.

func (*MockUserProviderMockRecorder) UpdateHashedPassword

func (mr *MockUserProviderMockRecorder) UpdateHashedPassword(arg0, arg1, arg2 interface{}) *gomock.Call

UpdateHashedPassword indicates an expected call of UpdateHashedPassword.

Directories

Path Synopsis
Package mock_password is a generated GoMock package.
Package mock_password is a generated GoMock package.
Package mock_provider is a generated GoMock package.
Package mock_provider is a generated GoMock package.

Jump to

Keyboard shortcuts

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