Documentation ¶
Overview ¶
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.
Index ¶
- type MockDb
- func (m *MockDb) EXPECT() *MockDbMockRecorder
- func (m *MockDb) FindEndpointsByOrganizationAndType(organizationID core.PartyID, endpointType *string) ([]db.Endpoint, error)
- func (m *MockDb) OrganizationById(id core.PartyID) (*db.Organization, error)
- func (m *MockDb) OrganizationsByVendorID(id core.PartyID) []*db.Organization
- func (m *MockDb) RegisterEventHandlers(fn events.EventRegistrar)
- func (m *MockDb) ReverseLookup(name string) (*db.Organization, error)
- func (m *MockDb) SearchOrganizations(query string) []db.Organization
- func (m *MockDb) VendorByID(id core.PartyID) *db.Vendor
- type MockDbMockRecorder
- func (mr *MockDbMockRecorder) FindEndpointsByOrganizationAndType(organizationID, endpointType interface{}) *gomock.Call
- func (mr *MockDbMockRecorder) OrganizationById(id interface{}) *gomock.Call
- func (mr *MockDbMockRecorder) OrganizationsByVendorID(id interface{}) *gomock.Call
- func (mr *MockDbMockRecorder) RegisterEventHandlers(fn interface{}) *gomock.Call
- func (mr *MockDbMockRecorder) ReverseLookup(name interface{}) *gomock.Call
- func (mr *MockDbMockRecorder) SearchOrganizations(query interface{}) *gomock.Call
- func (mr *MockDbMockRecorder) VendorByID(id interface{}) *gomock.Call
- type MockRegistryClient
- func (m *MockRegistryClient) EXPECT() *MockRegistryClientMockRecorder
- func (m *MockRegistryClient) EndpointsByOrganizationAndType(organizationIdentifier nuts_go_core.PartyID, endpointType *string) ([]db.Endpoint, error)
- func (m *MockRegistryClient) OrganizationById(id nuts_go_core.PartyID) (*db.Organization, error)
- func (m *MockRegistryClient) RefreshOrganizationCertificate(organizationID nuts_go_core.PartyID) (events.Event, error)
- func (m *MockRegistryClient) RegisterEndpoint(organizationID nuts_go_core.PartyID, id, url, endpointType, status string, ...) (events.Event, error)
- func (m *MockRegistryClient) RegisterVendor(certificate *x509.Certificate) (events.Event, error)
- func (m *MockRegistryClient) ReverseLookup(name string) (*db.Organization, error)
- func (m *MockRegistryClient) SearchOrganizations(query string) ([]db.Organization, error)
- func (m *MockRegistryClient) VendorById(vID nuts_go_core.PartyID) (*db.Vendor, error)
- func (m *MockRegistryClient) VendorCAs() [][]*x509.Certificate
- func (m *MockRegistryClient) VendorClaim(orgID nuts_go_core.PartyID, orgName string, orgKeys []interface{}) (events.Event, error)
- func (m *MockRegistryClient) Verify(fix bool) ([]events.Event, bool, error)
- type MockRegistryClientMockRecorder
- func (mr *MockRegistryClientMockRecorder) EndpointsByOrganizationAndType(organizationIdentifier, endpointType interface{}) *gomock.Call
- func (mr *MockRegistryClientMockRecorder) OrganizationById(id interface{}) *gomock.Call
- func (mr *MockRegistryClientMockRecorder) RefreshOrganizationCertificate(organizationID interface{}) *gomock.Call
- func (mr *MockRegistryClientMockRecorder) RegisterEndpoint(organizationID, id, url, endpointType, status, properties interface{}) *gomock.Call
- func (mr *MockRegistryClientMockRecorder) RegisterVendor(certificate interface{}) *gomock.Call
- func (mr *MockRegistryClientMockRecorder) ReverseLookup(name interface{}) *gomock.Call
- func (mr *MockRegistryClientMockRecorder) SearchOrganizations(query interface{}) *gomock.Call
- func (mr *MockRegistryClientMockRecorder) VendorById(vID interface{}) *gomock.Call
- func (mr *MockRegistryClientMockRecorder) VendorCAs() *gomock.Call
- func (mr *MockRegistryClientMockRecorder) VendorClaim(orgID, orgName, orgKeys interface{}) *gomock.Call
- func (mr *MockRegistryClientMockRecorder) Verify(fix interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockDb ¶
type MockDb struct {
// contains filtered or unexported fields
}
MockDb is a mock of Db interface
func NewMockDb ¶
func NewMockDb(ctrl *gomock.Controller) *MockDb
NewMockDb creates a new mock instance
func (*MockDb) EXPECT ¶
func (m *MockDb) EXPECT() *MockDbMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockDb) FindEndpointsByOrganizationAndType ¶
func (m *MockDb) FindEndpointsByOrganizationAndType(organizationID core.PartyID, endpointType *string) ([]db.Endpoint, error)
FindEndpointsByOrganizationAndType mocks base method
func (*MockDb) OrganizationById ¶
OrganizationById mocks base method
func (*MockDb) OrganizationsByVendorID ¶
func (m *MockDb) OrganizationsByVendorID(id core.PartyID) []*db.Organization
OrganizationsByVendorID mocks base method
func (*MockDb) RegisterEventHandlers ¶
func (m *MockDb) RegisterEventHandlers(fn events.EventRegistrar)
RegisterEventHandlers mocks base method
func (*MockDb) ReverseLookup ¶
func (m *MockDb) ReverseLookup(name string) (*db.Organization, error)
ReverseLookup mocks base method
func (*MockDb) SearchOrganizations ¶
func (m *MockDb) SearchOrganizations(query string) []db.Organization
SearchOrganizations mocks base method
type MockDbMockRecorder ¶
type MockDbMockRecorder struct {
// contains filtered or unexported fields
}
MockDbMockRecorder is the mock recorder for MockDb
func (*MockDbMockRecorder) FindEndpointsByOrganizationAndType ¶
func (mr *MockDbMockRecorder) FindEndpointsByOrganizationAndType(organizationID, endpointType interface{}) *gomock.Call
FindEndpointsByOrganizationAndType indicates an expected call of FindEndpointsByOrganizationAndType
func (*MockDbMockRecorder) OrganizationById ¶
func (mr *MockDbMockRecorder) OrganizationById(id interface{}) *gomock.Call
OrganizationById indicates an expected call of OrganizationById
func (*MockDbMockRecorder) OrganizationsByVendorID ¶
func (mr *MockDbMockRecorder) OrganizationsByVendorID(id interface{}) *gomock.Call
OrganizationsByVendorID indicates an expected call of OrganizationsByVendorID
func (*MockDbMockRecorder) RegisterEventHandlers ¶
func (mr *MockDbMockRecorder) RegisterEventHandlers(fn interface{}) *gomock.Call
RegisterEventHandlers indicates an expected call of RegisterEventHandlers
func (*MockDbMockRecorder) ReverseLookup ¶
func (mr *MockDbMockRecorder) ReverseLookup(name interface{}) *gomock.Call
ReverseLookup indicates an expected call of ReverseLookup
func (*MockDbMockRecorder) SearchOrganizations ¶
func (mr *MockDbMockRecorder) SearchOrganizations(query interface{}) *gomock.Call
SearchOrganizations indicates an expected call of SearchOrganizations
func (*MockDbMockRecorder) VendorByID ¶
func (mr *MockDbMockRecorder) VendorByID(id interface{}) *gomock.Call
VendorByID indicates an expected call of VendorByID
type MockRegistryClient ¶
type MockRegistryClient struct {
// contains filtered or unexported fields
}
MockRegistryClient is a mock of RegistryClient interface
func NewMockRegistryClient ¶
func NewMockRegistryClient(ctrl *gomock.Controller) *MockRegistryClient
NewMockRegistryClient creates a new mock instance
func (*MockRegistryClient) EXPECT ¶
func (m *MockRegistryClient) EXPECT() *MockRegistryClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockRegistryClient) EndpointsByOrganizationAndType ¶
func (m *MockRegistryClient) EndpointsByOrganizationAndType(organizationIdentifier nuts_go_core.PartyID, endpointType *string) ([]db.Endpoint, error)
EndpointsByOrganizationAndType mocks base method
func (*MockRegistryClient) OrganizationById ¶
func (m *MockRegistryClient) OrganizationById(id nuts_go_core.PartyID) (*db.Organization, error)
OrganizationById mocks base method
func (*MockRegistryClient) RefreshOrganizationCertificate ¶ added in v0.14.0
func (m *MockRegistryClient) RefreshOrganizationCertificate(organizationID nuts_go_core.PartyID) (events.Event, error)
RefreshOrganizationCertificate mocks base method
func (*MockRegistryClient) RegisterEndpoint ¶
func (m *MockRegistryClient) RegisterEndpoint(organizationID nuts_go_core.PartyID, id, url, endpointType, status string, properties map[string]string) (events.Event, error)
RegisterEndpoint mocks base method
func (*MockRegistryClient) RegisterVendor ¶
func (m *MockRegistryClient) RegisterVendor(certificate *x509.Certificate) (events.Event, error)
RegisterVendor mocks base method
func (*MockRegistryClient) ReverseLookup ¶
func (m *MockRegistryClient) ReverseLookup(name string) (*db.Organization, error)
ReverseLookup mocks base method
func (*MockRegistryClient) SearchOrganizations ¶
func (m *MockRegistryClient) SearchOrganizations(query string) ([]db.Organization, error)
SearchOrganizations mocks base method
func (*MockRegistryClient) VendorById ¶ added in v0.15.1
func (m *MockRegistryClient) VendorById(vID nuts_go_core.PartyID) (*db.Vendor, error)
VendorById mocks base method
func (*MockRegistryClient) VendorCAs ¶ added in v0.15.0
func (m *MockRegistryClient) VendorCAs() [][]*x509.Certificate
VendorCAs mocks base method
func (*MockRegistryClient) VendorClaim ¶
func (m *MockRegistryClient) VendorClaim(orgID nuts_go_core.PartyID, orgName string, orgKeys []interface{}) (events.Event, error)
VendorClaim mocks base method
type MockRegistryClientMockRecorder ¶
type MockRegistryClientMockRecorder struct {
// contains filtered or unexported fields
}
MockRegistryClientMockRecorder is the mock recorder for MockRegistryClient
func (*MockRegistryClientMockRecorder) EndpointsByOrganizationAndType ¶
func (mr *MockRegistryClientMockRecorder) EndpointsByOrganizationAndType(organizationIdentifier, endpointType interface{}) *gomock.Call
EndpointsByOrganizationAndType indicates an expected call of EndpointsByOrganizationAndType
func (*MockRegistryClientMockRecorder) OrganizationById ¶
func (mr *MockRegistryClientMockRecorder) OrganizationById(id interface{}) *gomock.Call
OrganizationById indicates an expected call of OrganizationById
func (*MockRegistryClientMockRecorder) RefreshOrganizationCertificate ¶ added in v0.14.0
func (mr *MockRegistryClientMockRecorder) RefreshOrganizationCertificate(organizationID interface{}) *gomock.Call
RefreshOrganizationCertificate indicates an expected call of RefreshOrganizationCertificate
func (*MockRegistryClientMockRecorder) RegisterEndpoint ¶
func (mr *MockRegistryClientMockRecorder) RegisterEndpoint(organizationID, id, url, endpointType, status, properties interface{}) *gomock.Call
RegisterEndpoint indicates an expected call of RegisterEndpoint
func (*MockRegistryClientMockRecorder) RegisterVendor ¶
func (mr *MockRegistryClientMockRecorder) RegisterVendor(certificate interface{}) *gomock.Call
RegisterVendor indicates an expected call of RegisterVendor
func (*MockRegistryClientMockRecorder) ReverseLookup ¶
func (mr *MockRegistryClientMockRecorder) ReverseLookup(name interface{}) *gomock.Call
ReverseLookup indicates an expected call of ReverseLookup
func (*MockRegistryClientMockRecorder) SearchOrganizations ¶
func (mr *MockRegistryClientMockRecorder) SearchOrganizations(query interface{}) *gomock.Call
SearchOrganizations indicates an expected call of SearchOrganizations
func (*MockRegistryClientMockRecorder) VendorById ¶ added in v0.15.1
func (mr *MockRegistryClientMockRecorder) VendorById(vID interface{}) *gomock.Call
VendorById indicates an expected call of VendorById
func (*MockRegistryClientMockRecorder) VendorCAs ¶ added in v0.15.0
func (mr *MockRegistryClientMockRecorder) VendorCAs() *gomock.Call
VendorCAs indicates an expected call of VendorCAs
func (*MockRegistryClientMockRecorder) VendorClaim ¶
func (mr *MockRegistryClientMockRecorder) VendorClaim(orgID, orgName, orgKeys interface{}) *gomock.Call
VendorClaim indicates an expected call of VendorClaim
func (*MockRegistryClientMockRecorder) Verify ¶ added in v0.14.0
func (mr *MockRegistryClientMockRecorder) Verify(fix interface{}) *gomock.Call
Verify indicates an expected call of Verify