mock

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package mock is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockAuthenticator

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

MockAuthenticator is a mock of Authenticator interface

func NewMockAuthenticator

func NewMockAuthenticator(ctrl *gomock.Controller) *MockAuthenticator

NewMockAuthenticator creates a new mock instance

func (*MockAuthenticator) AuthenticateAPIKey

func (m *MockAuthenticator) AuthenticateAPIKey(ctx context.Context, apiKey []byte) (*entities.UserInfo, error)

AuthenticateAPIKey mocks base method

func (*MockAuthenticator) AuthenticateJWT

func (m *MockAuthenticator) AuthenticateJWT(ctx context.Context, token string) (*entities.UserInfo, error)

AuthenticateJWT mocks base method

func (*MockAuthenticator) AuthenticateTLS

func (m *MockAuthenticator) AuthenticateTLS(ctx context.Context, connState *tls.ConnectionState) (*entities.UserInfo, error)

AuthenticateTLS mocks base method

func (*MockAuthenticator) EXPECT

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

type MockAuthenticatorMockRecorder

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

MockAuthenticatorMockRecorder is the mock recorder for MockAuthenticator

func (*MockAuthenticatorMockRecorder) AuthenticateAPIKey

func (mr *MockAuthenticatorMockRecorder) AuthenticateAPIKey(ctx, apiKey interface{}) *gomock.Call

AuthenticateAPIKey indicates an expected call of AuthenticateAPIKey

func (*MockAuthenticatorMockRecorder) AuthenticateJWT

func (mr *MockAuthenticatorMockRecorder) AuthenticateJWT(ctx, token interface{}) *gomock.Call

AuthenticateJWT indicates an expected call of AuthenticateJWT

func (*MockAuthenticatorMockRecorder) AuthenticateTLS

func (mr *MockAuthenticatorMockRecorder) AuthenticateTLS(ctx, connState interface{}) *gomock.Call

AuthenticateTLS indicates an expected call of AuthenticateTLS

type MockAuthorizator

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

MockAuthorizator is a mock of Authorizator interface

func NewMockAuthorizator

func NewMockAuthorizator(ctrl *gomock.Controller) *MockAuthorizator

NewMockAuthorizator creates a new mock instance

func (*MockAuthorizator) CheckAccess

func (m *MockAuthorizator) CheckAccess(allowedTenants []string) error

CheckAccess mocks base method

func (*MockAuthorizator) CheckPermission

func (m *MockAuthorizator) CheckPermission(ops ...*entities.Operation) error

CheckPermission mocks base method

func (*MockAuthorizator) EXPECT

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

type MockAuthorizatorMockRecorder

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

MockAuthorizatorMockRecorder is the mock recorder for MockAuthorizator

func (*MockAuthorizatorMockRecorder) CheckAccess

func (mr *MockAuthorizatorMockRecorder) CheckAccess(allowedTenants interface{}) *gomock.Call

CheckAccess indicates an expected call of CheckAccess

func (*MockAuthorizatorMockRecorder) CheckPermission

func (mr *MockAuthorizatorMockRecorder) CheckPermission(ops ...interface{}) *gomock.Call

CheckPermission indicates an expected call of CheckPermission

type MockRoles

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

MockRoles is a mock of Roles interface

func NewMockRoles

func NewMockRoles(ctrl *gomock.Controller) *MockRoles

NewMockRoles creates a new mock instance

func (*MockRoles) Create

func (m *MockRoles) Create(ctx context.Context, name string, permissions []entities.Permission, userInfo *entities.UserInfo) error

Create mocks base method

func (*MockRoles) EXPECT

func (m *MockRoles) EXPECT() *MockRolesMockRecorder

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

func (*MockRoles) Get

func (m *MockRoles) Get(ctx context.Context, name string, userInfo *entities.UserInfo) (*entities.Role, error)

Get mocks base method

func (*MockRoles) List

func (m *MockRoles) List(ctx context.Context, userInfo *entities.UserInfo) ([]string, error)

List mocks base method

func (*MockRoles) UserPermissions

func (m *MockRoles) UserPermissions(ctx context.Context, userInfo *entities.UserInfo) []entities.Permission

UserPermissions mocks base method

type MockRolesMockRecorder

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

MockRolesMockRecorder is the mock recorder for MockRoles

func (*MockRolesMockRecorder) Create

func (mr *MockRolesMockRecorder) Create(ctx, name, permissions, userInfo interface{}) *gomock.Call

Create indicates an expected call of Create

func (*MockRolesMockRecorder) Get

func (mr *MockRolesMockRecorder) Get(ctx, name, userInfo interface{}) *gomock.Call

Get indicates an expected call of Get

func (*MockRolesMockRecorder) List

func (mr *MockRolesMockRecorder) List(ctx, userInfo interface{}) *gomock.Call

List indicates an expected call of List

func (*MockRolesMockRecorder) UserPermissions

func (mr *MockRolesMockRecorder) UserPermissions(ctx, userInfo interface{}) *gomock.Call

UserPermissions indicates an expected call of UserPermissions

Jump to

Keyboard shortcuts

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