Documentation ¶
Overview ¶
Package mock_business_unit is a generated GoMock package.
Package mock_business_unit is a generated GoMock package.
Index ¶
- type MockBusinessUnitManager
- func (m *MockBusinessUnitManager) ActivateAuthentication(ctx context.Context, ts int64, certRaw []byte) (model.BusinessUnitAuthentication, error)
- func (m *MockBusinessUnitManager) AddAuthentication(ctx context.Context, ts int64, req business_unit.AddAuthenticationRequest) (model.BusinessUnitAuthentication, error)
- func (m *MockBusinessUnitManager) CreateBusinessUnit(ctx context.Context, ts int64, req business_unit.CreateBusinessUnitRequest) (model.BusinessUnit, error)
- func (m *MockBusinessUnitManager) EXPECT() *MockBusinessUnitManagerMockRecorder
- func (m *MockBusinessUnitManager) GetJWEEncryptors(ctx context.Context, req business_unit.GetJWEEncryptorsRequest) ([]business_unit.JWEEncryptor, error)
- func (m *MockBusinessUnitManager) GetJWSSigner(ctx context.Context, req business_unit.GetJWSSignerRequest) (business_unit.JWSSigner, error)
- func (m *MockBusinessUnitManager) ListAuthentication(ctx context.Context, req storage.ListAuthenticationRequest) (storage.ListAuthenticationResult, error)
- func (m *MockBusinessUnitManager) ListBusinessUnits(ctx context.Context, req storage.ListBusinessUnitsRequest) (storage.ListBusinessUnitsResult, error)
- func (m *MockBusinessUnitManager) RevokeAuthentication(ctx context.Context, ts int64, req business_unit.RevokeAuthenticationRequest) (model.BusinessUnitAuthentication, error)
- func (m *MockBusinessUnitManager) SetStatus(ctx context.Context, ts int64, req business_unit.SetBusinessUnitStatusRequest) (model.BusinessUnit, error)
- func (m *MockBusinessUnitManager) UpdateBusinessUnit(ctx context.Context, ts int64, req business_unit.UpdateBusinessUnitRequest) (model.BusinessUnit, error)
- type MockBusinessUnitManagerMockRecorder
- func (mr *MockBusinessUnitManagerMockRecorder) ActivateAuthentication(ctx, ts, certRaw interface{}) *gomock.Call
- func (mr *MockBusinessUnitManagerMockRecorder) AddAuthentication(ctx, ts, req interface{}) *gomock.Call
- func (mr *MockBusinessUnitManagerMockRecorder) CreateBusinessUnit(ctx, ts, req interface{}) *gomock.Call
- func (mr *MockBusinessUnitManagerMockRecorder) GetJWEEncryptors(ctx, req interface{}) *gomock.Call
- func (mr *MockBusinessUnitManagerMockRecorder) GetJWSSigner(ctx, req interface{}) *gomock.Call
- func (mr *MockBusinessUnitManagerMockRecorder) ListAuthentication(ctx, req interface{}) *gomock.Call
- func (mr *MockBusinessUnitManagerMockRecorder) ListBusinessUnits(ctx, req interface{}) *gomock.Call
- func (mr *MockBusinessUnitManagerMockRecorder) RevokeAuthentication(ctx, ts, req interface{}) *gomock.Call
- func (mr *MockBusinessUnitManagerMockRecorder) SetStatus(ctx, ts, req interface{}) *gomock.Call
- func (mr *MockBusinessUnitManagerMockRecorder) UpdateBusinessUnit(ctx, ts, req interface{}) *gomock.Call
- type MockJWEEncryptor
- type MockJWEEncryptorMockRecorder
- type MockJWSSigner
- func (m *MockJWSSigner) AvailableJWSSignAlgorithms() []envelope.SignatureAlgorithm
- func (m *MockJWSSigner) Cert() []*x509.Certificate
- func (m *MockJWSSigner) EXPECT() *MockJWSSignerMockRecorder
- func (m *MockJWSSigner) Public() crypto.PublicKey
- func (m *MockJWSSigner) Sign(rand io.Reader, digest []byte, opts crypto.SignerOpts) ([]byte, error)
- type MockJWSSignerMockRecorder
- type MockJWTFactory
- func (m *MockJWTFactory) EXPECT() *MockJWTFactoryMockRecorder
- func (m *MockJWTFactory) NewJWEEncryptor(authentication model.BusinessUnitAuthentication) (business_unit.JWEEncryptor, error)
- func (m *MockJWTFactory) NewJWSSigner(authentication model.BusinessUnitAuthentication) (business_unit.JWSSigner, error)
- type MockJWTFactoryMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockBusinessUnitManager ¶
type MockBusinessUnitManager struct {
// contains filtered or unexported fields
}
MockBusinessUnitManager is a mock of BusinessUnitManager interface.
func NewMockBusinessUnitManager ¶
func NewMockBusinessUnitManager(ctrl *gomock.Controller) *MockBusinessUnitManager
NewMockBusinessUnitManager creates a new mock instance.
func (*MockBusinessUnitManager) ActivateAuthentication ¶
func (m *MockBusinessUnitManager) ActivateAuthentication(ctx context.Context, ts int64, certRaw []byte) (model.BusinessUnitAuthentication, error)
ActivateAuthentication mocks base method.
func (*MockBusinessUnitManager) AddAuthentication ¶
func (m *MockBusinessUnitManager) AddAuthentication(ctx context.Context, ts int64, req business_unit.AddAuthenticationRequest) (model.BusinessUnitAuthentication, error)
AddAuthentication mocks base method.
func (*MockBusinessUnitManager) CreateBusinessUnit ¶
func (m *MockBusinessUnitManager) CreateBusinessUnit(ctx context.Context, ts int64, req business_unit.CreateBusinessUnitRequest) (model.BusinessUnit, error)
CreateBusinessUnit mocks base method.
func (*MockBusinessUnitManager) EXPECT ¶
func (m *MockBusinessUnitManager) EXPECT() *MockBusinessUnitManagerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockBusinessUnitManager) GetJWEEncryptors ¶
func (m *MockBusinessUnitManager) GetJWEEncryptors(ctx context.Context, req business_unit.GetJWEEncryptorsRequest) ([]business_unit.JWEEncryptor, error)
GetJWEEncryptors mocks base method.
func (*MockBusinessUnitManager) GetJWSSigner ¶
func (m *MockBusinessUnitManager) GetJWSSigner(ctx context.Context, req business_unit.GetJWSSignerRequest) (business_unit.JWSSigner, error)
GetJWSSigner mocks base method.
func (*MockBusinessUnitManager) ListAuthentication ¶
func (m *MockBusinessUnitManager) ListAuthentication(ctx context.Context, req storage.ListAuthenticationRequest) (storage.ListAuthenticationResult, error)
ListAuthentication mocks base method.
func (*MockBusinessUnitManager) ListBusinessUnits ¶
func (m *MockBusinessUnitManager) ListBusinessUnits(ctx context.Context, req storage.ListBusinessUnitsRequest) (storage.ListBusinessUnitsResult, error)
ListBusinessUnits mocks base method.
func (*MockBusinessUnitManager) RevokeAuthentication ¶
func (m *MockBusinessUnitManager) RevokeAuthentication(ctx context.Context, ts int64, req business_unit.RevokeAuthenticationRequest) (model.BusinessUnitAuthentication, error)
RevokeAuthentication mocks base method.
func (*MockBusinessUnitManager) SetStatus ¶
func (m *MockBusinessUnitManager) SetStatus(ctx context.Context, ts int64, req business_unit.SetBusinessUnitStatusRequest) (model.BusinessUnit, error)
SetStatus mocks base method.
func (*MockBusinessUnitManager) UpdateBusinessUnit ¶
func (m *MockBusinessUnitManager) UpdateBusinessUnit(ctx context.Context, ts int64, req business_unit.UpdateBusinessUnitRequest) (model.BusinessUnit, error)
UpdateBusinessUnit mocks base method.
type MockBusinessUnitManagerMockRecorder ¶
type MockBusinessUnitManagerMockRecorder struct {
// contains filtered or unexported fields
}
MockBusinessUnitManagerMockRecorder is the mock recorder for MockBusinessUnitManager.
func (*MockBusinessUnitManagerMockRecorder) ActivateAuthentication ¶
func (mr *MockBusinessUnitManagerMockRecorder) ActivateAuthentication(ctx, ts, certRaw interface{}) *gomock.Call
ActivateAuthentication indicates an expected call of ActivateAuthentication.
func (*MockBusinessUnitManagerMockRecorder) AddAuthentication ¶
func (mr *MockBusinessUnitManagerMockRecorder) AddAuthentication(ctx, ts, req interface{}) *gomock.Call
AddAuthentication indicates an expected call of AddAuthentication.
func (*MockBusinessUnitManagerMockRecorder) CreateBusinessUnit ¶
func (mr *MockBusinessUnitManagerMockRecorder) CreateBusinessUnit(ctx, ts, req interface{}) *gomock.Call
CreateBusinessUnit indicates an expected call of CreateBusinessUnit.
func (*MockBusinessUnitManagerMockRecorder) GetJWEEncryptors ¶
func (mr *MockBusinessUnitManagerMockRecorder) GetJWEEncryptors(ctx, req interface{}) *gomock.Call
GetJWEEncryptors indicates an expected call of GetJWEEncryptors.
func (*MockBusinessUnitManagerMockRecorder) GetJWSSigner ¶
func (mr *MockBusinessUnitManagerMockRecorder) GetJWSSigner(ctx, req interface{}) *gomock.Call
GetJWSSigner indicates an expected call of GetJWSSigner.
func (*MockBusinessUnitManagerMockRecorder) ListAuthentication ¶
func (mr *MockBusinessUnitManagerMockRecorder) ListAuthentication(ctx, req interface{}) *gomock.Call
ListAuthentication indicates an expected call of ListAuthentication.
func (*MockBusinessUnitManagerMockRecorder) ListBusinessUnits ¶
func (mr *MockBusinessUnitManagerMockRecorder) ListBusinessUnits(ctx, req interface{}) *gomock.Call
ListBusinessUnits indicates an expected call of ListBusinessUnits.
func (*MockBusinessUnitManagerMockRecorder) RevokeAuthentication ¶
func (mr *MockBusinessUnitManagerMockRecorder) RevokeAuthentication(ctx, ts, req interface{}) *gomock.Call
RevokeAuthentication indicates an expected call of RevokeAuthentication.
func (*MockBusinessUnitManagerMockRecorder) SetStatus ¶
func (mr *MockBusinessUnitManagerMockRecorder) SetStatus(ctx, ts, req interface{}) *gomock.Call
SetStatus indicates an expected call of SetStatus.
func (*MockBusinessUnitManagerMockRecorder) UpdateBusinessUnit ¶
func (mr *MockBusinessUnitManagerMockRecorder) UpdateBusinessUnit(ctx, ts, req interface{}) *gomock.Call
UpdateBusinessUnit indicates an expected call of UpdateBusinessUnit.
type MockJWEEncryptor ¶
type MockJWEEncryptor struct {
// contains filtered or unexported fields
}
MockJWEEncryptor is a mock of JWEEncryptor interface.
func NewMockJWEEncryptor ¶
func NewMockJWEEncryptor(ctrl *gomock.Controller) *MockJWEEncryptor
NewMockJWEEncryptor creates a new mock instance.
func (*MockJWEEncryptor) AvailableJWEEncryptAlgorithms ¶
func (m *MockJWEEncryptor) AvailableJWEEncryptAlgorithms() []envelope.KeyEncryptionAlgorithm
AvailableJWEEncryptAlgorithms mocks base method.
func (*MockJWEEncryptor) EXPECT ¶
func (m *MockJWEEncryptor) EXPECT() *MockJWEEncryptorMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockJWEEncryptor) Public ¶
func (m *MockJWEEncryptor) Public() crypto.PublicKey
Public mocks base method.
type MockJWEEncryptorMockRecorder ¶
type MockJWEEncryptorMockRecorder struct {
// contains filtered or unexported fields
}
MockJWEEncryptorMockRecorder is the mock recorder for MockJWEEncryptor.
func (*MockJWEEncryptorMockRecorder) AvailableJWEEncryptAlgorithms ¶
func (mr *MockJWEEncryptorMockRecorder) AvailableJWEEncryptAlgorithms() *gomock.Call
AvailableJWEEncryptAlgorithms indicates an expected call of AvailableJWEEncryptAlgorithms.
func (*MockJWEEncryptorMockRecorder) Public ¶
func (mr *MockJWEEncryptorMockRecorder) Public() *gomock.Call
Public indicates an expected call of Public.
type MockJWSSigner ¶
type MockJWSSigner struct {
// contains filtered or unexported fields
}
MockJWSSigner is a mock of JWSSigner interface.
func NewMockJWSSigner ¶
func NewMockJWSSigner(ctrl *gomock.Controller) *MockJWSSigner
NewMockJWSSigner creates a new mock instance.
func (*MockJWSSigner) AvailableJWSSignAlgorithms ¶
func (m *MockJWSSigner) AvailableJWSSignAlgorithms() []envelope.SignatureAlgorithm
AvailableJWSSignAlgorithms mocks base method.
func (*MockJWSSigner) Cert ¶
func (m *MockJWSSigner) Cert() []*x509.Certificate
Cert mocks base method.
func (*MockJWSSigner) EXPECT ¶
func (m *MockJWSSigner) EXPECT() *MockJWSSignerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockJWSSigner) Public ¶
func (m *MockJWSSigner) Public() crypto.PublicKey
Public mocks base method.
func (*MockJWSSigner) Sign ¶
func (m *MockJWSSigner) Sign(rand io.Reader, digest []byte, opts crypto.SignerOpts) ([]byte, error)
Sign mocks base method.
type MockJWSSignerMockRecorder ¶
type MockJWSSignerMockRecorder struct {
// contains filtered or unexported fields
}
MockJWSSignerMockRecorder is the mock recorder for MockJWSSigner.
func (*MockJWSSignerMockRecorder) AvailableJWSSignAlgorithms ¶
func (mr *MockJWSSignerMockRecorder) AvailableJWSSignAlgorithms() *gomock.Call
AvailableJWSSignAlgorithms indicates an expected call of AvailableJWSSignAlgorithms.
func (*MockJWSSignerMockRecorder) Cert ¶
func (mr *MockJWSSignerMockRecorder) Cert() *gomock.Call
Cert indicates an expected call of Cert.
func (*MockJWSSignerMockRecorder) Public ¶
func (mr *MockJWSSignerMockRecorder) Public() *gomock.Call
Public indicates an expected call of Public.
func (*MockJWSSignerMockRecorder) Sign ¶
func (mr *MockJWSSignerMockRecorder) Sign(rand, digest, opts interface{}) *gomock.Call
Sign indicates an expected call of Sign.
type MockJWTFactory ¶
type MockJWTFactory struct {
// contains filtered or unexported fields
}
MockJWTFactory is a mock of JWTFactory interface.
func NewMockJWTFactory ¶
func NewMockJWTFactory(ctrl *gomock.Controller) *MockJWTFactory
NewMockJWTFactory creates a new mock instance.
func (*MockJWTFactory) EXPECT ¶
func (m *MockJWTFactory) EXPECT() *MockJWTFactoryMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockJWTFactory) NewJWEEncryptor ¶
func (m *MockJWTFactory) NewJWEEncryptor(authentication model.BusinessUnitAuthentication) (business_unit.JWEEncryptor, error)
NewJWEEncryptor mocks base method.
func (*MockJWTFactory) NewJWSSigner ¶
func (m *MockJWTFactory) NewJWSSigner(authentication model.BusinessUnitAuthentication) (business_unit.JWSSigner, error)
NewJWSSigner mocks base method.
type MockJWTFactoryMockRecorder ¶
type MockJWTFactoryMockRecorder struct {
// contains filtered or unexported fields
}
MockJWTFactoryMockRecorder is the mock recorder for MockJWTFactory.
func (*MockJWTFactoryMockRecorder) NewJWEEncryptor ¶
func (mr *MockJWTFactoryMockRecorder) NewJWEEncryptor(authentication interface{}) *gomock.Call
NewJWEEncryptor indicates an expected call of NewJWEEncryptor.
func (*MockJWTFactoryMockRecorder) NewJWSSigner ¶
func (mr *MockJWTFactoryMockRecorder) NewJWSSigner(authentication interface{}) *gomock.Call
NewJWSSigner indicates an expected call of NewJWSSigner.