Documentation
¶
Overview ¶
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Index ¶
- type MockAccessService
- type MockAccessServiceMockRecorder
- type MockAccessServiceReadUserAccessLevelForTargetCall
- func (c *MockAccessServiceReadUserAccessLevelForTargetCall) Do(f func(context.Context, user.Name, permission.ID) (permission.Access, error)) *MockAccessServiceReadUserAccessLevelForTargetCall
- func (c *MockAccessServiceReadUserAccessLevelForTargetCall) DoAndReturn(f func(context.Context, user.Name, permission.ID) (permission.Access, error)) *MockAccessServiceReadUserAccessLevelForTargetCall
- func (c *MockAccessServiceReadUserAccessLevelForTargetCall) Return(arg0 permission.Access, arg1 error) *MockAccessServiceReadUserAccessLevelForTargetCall
- type MockApplicationService
- func (m *MockApplicationService) EXPECT() *MockApplicationServiceMockRecorder
- func (m *MockApplicationService) GetApplicationDisplayStatus(arg0 context.Context, arg1 application.ID) (*status.StatusInfo, error)
- func (m *MockApplicationService) GetApplicationIDByName(arg0 context.Context, arg1 string) (application.ID, error)
- type MockApplicationServiceGetApplicationDisplayStatusCall
- func (c *MockApplicationServiceGetApplicationDisplayStatusCall) Do(f func(context.Context, application.ID) (*status.StatusInfo, error)) *MockApplicationServiceGetApplicationDisplayStatusCall
- func (c *MockApplicationServiceGetApplicationDisplayStatusCall) DoAndReturn(f func(context.Context, application.ID) (*status.StatusInfo, error)) *MockApplicationServiceGetApplicationDisplayStatusCall
- func (c *MockApplicationServiceGetApplicationDisplayStatusCall) Return(arg0 *status.StatusInfo, arg1 error) *MockApplicationServiceGetApplicationDisplayStatusCall
- type MockApplicationServiceGetApplicationIDByNameCall
- func (c *MockApplicationServiceGetApplicationIDByNameCall) Do(f func(context.Context, string) (application.ID, error)) *MockApplicationServiceGetApplicationIDByNameCall
- func (c *MockApplicationServiceGetApplicationIDByNameCall) DoAndReturn(f func(context.Context, string) (application.ID, error)) *MockApplicationServiceGetApplicationIDByNameCall
- func (c *MockApplicationServiceGetApplicationIDByNameCall) Return(arg0 application.ID, arg1 error) *MockApplicationServiceGetApplicationIDByNameCall
- type MockApplicationServiceMockRecorder
- type MockBackend
- func (m *MockBackend) AddRelation(arg0 ...relation.Endpoint) (crossmodel.Relation, error)
- func (m *MockBackend) AddRemoteApplication(arg0 state.AddRemoteApplicationParams) (crossmodel.RemoteApplication, error)
- func (m *MockBackend) AllModelUUIDs() ([]string, error)
- func (m *MockBackend) Application(arg0 string) (crossmodel.Application, error)
- func (m *MockBackend) ApplicationOfferForUUID(arg0 string) (*crossmodel0.ApplicationOffer, error)
- func (m *MockBackend) ApplyOperation(arg0 state.ModelOperation) error
- func (m *MockBackend) ControllerTag() names.ControllerTag
- func (m *MockBackend) EXPECT() *MockBackendMockRecorder
- func (m *MockBackend) EndpointsRelation(arg0 ...relation.Endpoint) (crossmodel.Relation, error)
- func (m *MockBackend) ExportLocalEntity(arg0 names.Tag) (string, error)
- func (m *MockBackend) GetRemoteEntity(arg0 string) (names.Tag, error)
- func (m *MockBackend) GetToken(arg0 names.Tag) (string, error)
- func (m *MockBackend) ImportRemoteEntity(arg0 names.Tag, arg1 string) error
- func (m *MockBackend) IngressNetworks(arg0 string) (state.RelationNetworks, error)
- func (m *MockBackend) KeyRelation(arg0 string) (crossmodel.Relation, error)
- func (m *MockBackend) OfferConnectionForRelation(arg0 string) (crossmodel.OfferConnection, error)
- func (m *MockBackend) OfferUUIDForRelation(arg0 string) (string, error)
- func (m *MockBackend) RemoteApplication(arg0 string) (crossmodel.RemoteApplication, error)
- func (m *MockBackend) SaveIngressNetworks(arg0 string, arg1 []string) (state.RelationNetworks, error)
- func (m *MockBackend) WatchOffer(arg0 string) state.NotifyWatcher
- func (m *MockBackend) WatchOfferStatus(arg0 string) (state.NotifyWatcher, error)
- type MockBackendAddRelationCall
- func (c *MockBackendAddRelationCall) Do(f func(...relation.Endpoint) (crossmodel.Relation, error)) *MockBackendAddRelationCall
- func (c *MockBackendAddRelationCall) DoAndReturn(f func(...relation.Endpoint) (crossmodel.Relation, error)) *MockBackendAddRelationCall
- func (c *MockBackendAddRelationCall) Return(arg0 crossmodel.Relation, arg1 error) *MockBackendAddRelationCall
- type MockBackendAddRemoteApplicationCall
- func (c *MockBackendAddRemoteApplicationCall) Do(f func(state.AddRemoteApplicationParams) (crossmodel.RemoteApplication, error)) *MockBackendAddRemoteApplicationCall
- func (c *MockBackendAddRemoteApplicationCall) DoAndReturn(f func(state.AddRemoteApplicationParams) (crossmodel.RemoteApplication, error)) *MockBackendAddRemoteApplicationCall
- func (c *MockBackendAddRemoteApplicationCall) Return(arg0 crossmodel.RemoteApplication, arg1 error) *MockBackendAddRemoteApplicationCall
- type MockBackendAllModelUUIDsCall
- func (c *MockBackendAllModelUUIDsCall) Do(f func() ([]string, error)) *MockBackendAllModelUUIDsCall
- func (c *MockBackendAllModelUUIDsCall) DoAndReturn(f func() ([]string, error)) *MockBackendAllModelUUIDsCall
- func (c *MockBackendAllModelUUIDsCall) Return(arg0 []string, arg1 error) *MockBackendAllModelUUIDsCall
- type MockBackendApplicationCall
- func (c *MockBackendApplicationCall) Do(f func(string) (crossmodel.Application, error)) *MockBackendApplicationCall
- func (c *MockBackendApplicationCall) DoAndReturn(f func(string) (crossmodel.Application, error)) *MockBackendApplicationCall
- func (c *MockBackendApplicationCall) Return(arg0 crossmodel.Application, arg1 error) *MockBackendApplicationCall
- type MockBackendApplicationOfferForUUIDCall
- func (c *MockBackendApplicationOfferForUUIDCall) Do(f func(string) (*crossmodel0.ApplicationOffer, error)) *MockBackendApplicationOfferForUUIDCall
- func (c *MockBackendApplicationOfferForUUIDCall) DoAndReturn(f func(string) (*crossmodel0.ApplicationOffer, error)) *MockBackendApplicationOfferForUUIDCall
- func (c *MockBackendApplicationOfferForUUIDCall) Return(arg0 *crossmodel0.ApplicationOffer, arg1 error) *MockBackendApplicationOfferForUUIDCall
- type MockBackendApplyOperationCall
- func (c *MockBackendApplyOperationCall) Do(f func(state.ModelOperation) error) *MockBackendApplyOperationCall
- func (c *MockBackendApplyOperationCall) DoAndReturn(f func(state.ModelOperation) error) *MockBackendApplyOperationCall
- func (c *MockBackendApplyOperationCall) Return(arg0 error) *MockBackendApplyOperationCall
- type MockBackendControllerTagCall
- func (c *MockBackendControllerTagCall) Do(f func() names.ControllerTag) *MockBackendControllerTagCall
- func (c *MockBackendControllerTagCall) DoAndReturn(f func() names.ControllerTag) *MockBackendControllerTagCall
- func (c *MockBackendControllerTagCall) Return(arg0 names.ControllerTag) *MockBackendControllerTagCall
- type MockBackendEndpointsRelationCall
- func (c *MockBackendEndpointsRelationCall) Do(f func(...relation.Endpoint) (crossmodel.Relation, error)) *MockBackendEndpointsRelationCall
- func (c *MockBackendEndpointsRelationCall) DoAndReturn(f func(...relation.Endpoint) (crossmodel.Relation, error)) *MockBackendEndpointsRelationCall
- func (c *MockBackendEndpointsRelationCall) Return(arg0 crossmodel.Relation, arg1 error) *MockBackendEndpointsRelationCall
- type MockBackendExportLocalEntityCall
- func (c *MockBackendExportLocalEntityCall) Do(f func(names.Tag) (string, error)) *MockBackendExportLocalEntityCall
- func (c *MockBackendExportLocalEntityCall) DoAndReturn(f func(names.Tag) (string, error)) *MockBackendExportLocalEntityCall
- func (c *MockBackendExportLocalEntityCall) Return(arg0 string, arg1 error) *MockBackendExportLocalEntityCall
- type MockBackendGetRemoteEntityCall
- func (c *MockBackendGetRemoteEntityCall) Do(f func(string) (names.Tag, error)) *MockBackendGetRemoteEntityCall
- func (c *MockBackendGetRemoteEntityCall) DoAndReturn(f func(string) (names.Tag, error)) *MockBackendGetRemoteEntityCall
- func (c *MockBackendGetRemoteEntityCall) Return(arg0 names.Tag, arg1 error) *MockBackendGetRemoteEntityCall
- type MockBackendGetTokenCall
- type MockBackendImportRemoteEntityCall
- func (c *MockBackendImportRemoteEntityCall) Do(f func(names.Tag, string) error) *MockBackendImportRemoteEntityCall
- func (c *MockBackendImportRemoteEntityCall) DoAndReturn(f func(names.Tag, string) error) *MockBackendImportRemoteEntityCall
- func (c *MockBackendImportRemoteEntityCall) Return(arg0 error) *MockBackendImportRemoteEntityCall
- type MockBackendIngressNetworksCall
- func (c *MockBackendIngressNetworksCall) Do(f func(string) (state.RelationNetworks, error)) *MockBackendIngressNetworksCall
- func (c *MockBackendIngressNetworksCall) DoAndReturn(f func(string) (state.RelationNetworks, error)) *MockBackendIngressNetworksCall
- func (c *MockBackendIngressNetworksCall) Return(arg0 state.RelationNetworks, arg1 error) *MockBackendIngressNetworksCall
- type MockBackendKeyRelationCall
- func (c *MockBackendKeyRelationCall) Do(f func(string) (crossmodel.Relation, error)) *MockBackendKeyRelationCall
- func (c *MockBackendKeyRelationCall) DoAndReturn(f func(string) (crossmodel.Relation, error)) *MockBackendKeyRelationCall
- func (c *MockBackendKeyRelationCall) Return(arg0 crossmodel.Relation, arg1 error) *MockBackendKeyRelationCall
- type MockBackendMockRecorder
- func (mr *MockBackendMockRecorder) AddRelation(arg0 ...any) *MockBackendAddRelationCall
- func (mr *MockBackendMockRecorder) AddRemoteApplication(arg0 any) *MockBackendAddRemoteApplicationCall
- func (mr *MockBackendMockRecorder) AllModelUUIDs() *MockBackendAllModelUUIDsCall
- func (mr *MockBackendMockRecorder) Application(arg0 any) *MockBackendApplicationCall
- func (mr *MockBackendMockRecorder) ApplicationOfferForUUID(arg0 any) *MockBackendApplicationOfferForUUIDCall
- func (mr *MockBackendMockRecorder) ApplyOperation(arg0 any) *MockBackendApplyOperationCall
- func (mr *MockBackendMockRecorder) ControllerTag() *MockBackendControllerTagCall
- func (mr *MockBackendMockRecorder) EndpointsRelation(arg0 ...any) *MockBackendEndpointsRelationCall
- func (mr *MockBackendMockRecorder) ExportLocalEntity(arg0 any) *MockBackendExportLocalEntityCall
- func (mr *MockBackendMockRecorder) GetRemoteEntity(arg0 any) *MockBackendGetRemoteEntityCall
- func (mr *MockBackendMockRecorder) GetToken(arg0 any) *MockBackendGetTokenCall
- func (mr *MockBackendMockRecorder) ImportRemoteEntity(arg0, arg1 any) *MockBackendImportRemoteEntityCall
- func (mr *MockBackendMockRecorder) IngressNetworks(arg0 any) *MockBackendIngressNetworksCall
- func (mr *MockBackendMockRecorder) KeyRelation(arg0 any) *MockBackendKeyRelationCall
- func (mr *MockBackendMockRecorder) OfferConnectionForRelation(arg0 any) *MockBackendOfferConnectionForRelationCall
- func (mr *MockBackendMockRecorder) OfferUUIDForRelation(arg0 any) *MockBackendOfferUUIDForRelationCall
- func (mr *MockBackendMockRecorder) RemoteApplication(arg0 any) *MockBackendRemoteApplicationCall
- func (mr *MockBackendMockRecorder) SaveIngressNetworks(arg0, arg1 any) *MockBackendSaveIngressNetworksCall
- func (mr *MockBackendMockRecorder) WatchOffer(arg0 any) *MockBackendWatchOfferCall
- func (mr *MockBackendMockRecorder) WatchOfferStatus(arg0 any) *MockBackendWatchOfferStatusCall
- type MockBackendOfferConnectionForRelationCall
- func (c *MockBackendOfferConnectionForRelationCall) Do(f func(string) (crossmodel.OfferConnection, error)) *MockBackendOfferConnectionForRelationCall
- func (c *MockBackendOfferConnectionForRelationCall) DoAndReturn(f func(string) (crossmodel.OfferConnection, error)) *MockBackendOfferConnectionForRelationCall
- func (c *MockBackendOfferConnectionForRelationCall) Return(arg0 crossmodel.OfferConnection, arg1 error) *MockBackendOfferConnectionForRelationCall
- type MockBackendOfferUUIDForRelationCall
- func (c *MockBackendOfferUUIDForRelationCall) Do(f func(string) (string, error)) *MockBackendOfferUUIDForRelationCall
- func (c *MockBackendOfferUUIDForRelationCall) DoAndReturn(f func(string) (string, error)) *MockBackendOfferUUIDForRelationCall
- func (c *MockBackendOfferUUIDForRelationCall) Return(arg0 string, arg1 error) *MockBackendOfferUUIDForRelationCall
- type MockBackendRemoteApplicationCall
- func (c *MockBackendRemoteApplicationCall) Do(f func(string) (crossmodel.RemoteApplication, error)) *MockBackendRemoteApplicationCall
- func (c *MockBackendRemoteApplicationCall) DoAndReturn(f func(string) (crossmodel.RemoteApplication, error)) *MockBackendRemoteApplicationCall
- func (c *MockBackendRemoteApplicationCall) Return(arg0 crossmodel.RemoteApplication, arg1 error) *MockBackendRemoteApplicationCall
- type MockBackendSaveIngressNetworksCall
- func (c *MockBackendSaveIngressNetworksCall) Do(f func(string, []string) (state.RelationNetworks, error)) *MockBackendSaveIngressNetworksCall
- func (c *MockBackendSaveIngressNetworksCall) DoAndReturn(f func(string, []string) (state.RelationNetworks, error)) *MockBackendSaveIngressNetworksCall
- func (c *MockBackendSaveIngressNetworksCall) Return(arg0 state.RelationNetworks, arg1 error) *MockBackendSaveIngressNetworksCall
- type MockBackendWatchOfferCall
- func (c *MockBackendWatchOfferCall) Do(f func(string) state.NotifyWatcher) *MockBackendWatchOfferCall
- func (c *MockBackendWatchOfferCall) DoAndReturn(f func(string) state.NotifyWatcher) *MockBackendWatchOfferCall
- func (c *MockBackendWatchOfferCall) Return(arg0 state.NotifyWatcher) *MockBackendWatchOfferCall
- type MockBackendWatchOfferStatusCall
- func (c *MockBackendWatchOfferStatusCall) Do(f func(string) (state.NotifyWatcher, error)) *MockBackendWatchOfferStatusCall
- func (c *MockBackendWatchOfferStatusCall) DoAndReturn(f func(string) (state.NotifyWatcher, error)) *MockBackendWatchOfferStatusCall
- func (c *MockBackendWatchOfferStatusCall) Return(arg0 state.NotifyWatcher, arg1 error) *MockBackendWatchOfferStatusCall
- type MockBakeryConfigService
- type MockBakeryConfigServiceGetExternalUsersThirdPartyKeyCall
- func (c *MockBakeryConfigServiceGetExternalUsersThirdPartyKeyCall) Do(f func(context.Context) (*bakery.KeyPair, error)) *MockBakeryConfigServiceGetExternalUsersThirdPartyKeyCall
- func (c *MockBakeryConfigServiceGetExternalUsersThirdPartyKeyCall) DoAndReturn(f func(context.Context) (*bakery.KeyPair, error)) *MockBakeryConfigServiceGetExternalUsersThirdPartyKeyCall
- func (c *MockBakeryConfigServiceGetExternalUsersThirdPartyKeyCall) Return(arg0 *bakery.KeyPair, arg1 error) *MockBakeryConfigServiceGetExternalUsersThirdPartyKeyCall
- type MockBakeryConfigServiceMockRecorder
- type MockExpirableStorage
- func (m *MockExpirableStorage) EXPECT() *MockExpirableStorageMockRecorder
- func (m *MockExpirableStorage) ExpireAfter(arg0 time.Duration) macaroon.ExpirableStorage
- func (m *MockExpirableStorage) Get(arg0 context.Context, arg1 []byte) ([]byte, error)
- func (m *MockExpirableStorage) RootKey(arg0 context.Context) ([]byte, []byte, error)
- type MockExpirableStorageBakery
- func (m *MockExpirableStorageBakery) Auth(arg0 context.Context, arg1 ...macaroon.Slice) *bakery.AuthChecker
- func (m *MockExpirableStorageBakery) EXPECT() *MockExpirableStorageBakeryMockRecorder
- func (m *MockExpirableStorageBakery) ExpireStorageAfter(arg0 time.Duration) (authentication.ExpirableStorageBakery, error)
- func (m *MockExpirableStorageBakery) NewMacaroon(arg0 context.Context, arg1 bakery.Version, arg2 []checkers.Caveat, ...) (*bakery.Macaroon, error)
- type MockExpirableStorageBakeryAuthCall
- func (c *MockExpirableStorageBakeryAuthCall) Do(f func(context.Context, ...macaroon.Slice) *bakery.AuthChecker) *MockExpirableStorageBakeryAuthCall
- func (c *MockExpirableStorageBakeryAuthCall) DoAndReturn(f func(context.Context, ...macaroon.Slice) *bakery.AuthChecker) *MockExpirableStorageBakeryAuthCall
- func (c *MockExpirableStorageBakeryAuthCall) Return(arg0 *bakery.AuthChecker) *MockExpirableStorageBakeryAuthCall
- type MockExpirableStorageBakeryExpireStorageAfterCall
- func (c *MockExpirableStorageBakeryExpireStorageAfterCall) Do(f func(time.Duration) (authentication.ExpirableStorageBakery, error)) *MockExpirableStorageBakeryExpireStorageAfterCall
- func (c *MockExpirableStorageBakeryExpireStorageAfterCall) DoAndReturn(f func(time.Duration) (authentication.ExpirableStorageBakery, error)) *MockExpirableStorageBakeryExpireStorageAfterCall
- func (c *MockExpirableStorageBakeryExpireStorageAfterCall) Return(arg0 authentication.ExpirableStorageBakery, arg1 error) *MockExpirableStorageBakeryExpireStorageAfterCall
- type MockExpirableStorageBakeryMockRecorder
- func (mr *MockExpirableStorageBakeryMockRecorder) Auth(arg0 any, arg1 ...any) *MockExpirableStorageBakeryAuthCall
- func (mr *MockExpirableStorageBakeryMockRecorder) ExpireStorageAfter(arg0 any) *MockExpirableStorageBakeryExpireStorageAfterCall
- func (mr *MockExpirableStorageBakeryMockRecorder) NewMacaroon(arg0, arg1, arg2 any, arg3 ...any) *MockExpirableStorageBakeryNewMacaroonCall
- type MockExpirableStorageBakeryNewMacaroonCall
- func (c *MockExpirableStorageBakeryNewMacaroonCall) Do(...) *MockExpirableStorageBakeryNewMacaroonCall
- func (c *MockExpirableStorageBakeryNewMacaroonCall) DoAndReturn(...) *MockExpirableStorageBakeryNewMacaroonCall
- func (c *MockExpirableStorageBakeryNewMacaroonCall) Return(arg0 *bakery.Macaroon, arg1 error) *MockExpirableStorageBakeryNewMacaroonCall
- type MockExpirableStorageExpireAfterCall
- func (c *MockExpirableStorageExpireAfterCall) Do(f func(time.Duration) macaroon.ExpirableStorage) *MockExpirableStorageExpireAfterCall
- func (c *MockExpirableStorageExpireAfterCall) DoAndReturn(f func(time.Duration) macaroon.ExpirableStorage) *MockExpirableStorageExpireAfterCall
- func (c *MockExpirableStorageExpireAfterCall) Return(arg0 macaroon.ExpirableStorage) *MockExpirableStorageExpireAfterCall
- type MockExpirableStorageGetCall
- func (c *MockExpirableStorageGetCall) Do(f func(context.Context, []byte) ([]byte, error)) *MockExpirableStorageGetCall
- func (c *MockExpirableStorageGetCall) DoAndReturn(f func(context.Context, []byte) ([]byte, error)) *MockExpirableStorageGetCall
- func (c *MockExpirableStorageGetCall) Return(arg0 []byte, arg1 error) *MockExpirableStorageGetCall
- type MockExpirableStorageMockRecorder
- type MockExpirableStorageRootKeyCall
- func (c *MockExpirableStorageRootKeyCall) Do(f func(context.Context) ([]byte, []byte, error)) *MockExpirableStorageRootKeyCall
- func (c *MockExpirableStorageRootKeyCall) DoAndReturn(f func(context.Context) ([]byte, []byte, error)) *MockExpirableStorageRootKeyCall
- func (c *MockExpirableStorageRootKeyCall) Return(arg0, arg1 []byte, arg2 error) *MockExpirableStorageRootKeyCall
- type MockFirstPartyCaveatChecker
- type MockFirstPartyCaveatCheckerCheckFirstPartyCaveatCall
- func (c *MockFirstPartyCaveatCheckerCheckFirstPartyCaveatCall) Do(f func(context.Context, string) error) *MockFirstPartyCaveatCheckerCheckFirstPartyCaveatCall
- func (c *MockFirstPartyCaveatCheckerCheckFirstPartyCaveatCall) DoAndReturn(f func(context.Context, string) error) *MockFirstPartyCaveatCheckerCheckFirstPartyCaveatCall
- func (c *MockFirstPartyCaveatCheckerCheckFirstPartyCaveatCall) Return(arg0 error) *MockFirstPartyCaveatCheckerCheckFirstPartyCaveatCall
- type MockFirstPartyCaveatCheckerMockRecorder
- type MockFirstPartyCaveatCheckerNamespaceCall
- func (c *MockFirstPartyCaveatCheckerNamespaceCall) Do(f func() *checkers.Namespace) *MockFirstPartyCaveatCheckerNamespaceCall
- func (c *MockFirstPartyCaveatCheckerNamespaceCall) DoAndReturn(f func() *checkers.Namespace) *MockFirstPartyCaveatCheckerNamespaceCall
- func (c *MockFirstPartyCaveatCheckerNamespaceCall) Return(arg0 *checkers.Namespace) *MockFirstPartyCaveatCheckerNamespaceCall
- type MockOfferBakeryInterface
- func (m *MockOfferBakeryInterface) CreateDischargeMacaroon(arg0 context.Context, arg1, arg2 string, arg3, arg4 map[string]string, ...) (*bakery.Macaroon, error)
- func (m *MockOfferBakeryInterface) EXPECT() *MockOfferBakeryInterfaceMockRecorder
- func (m *MockOfferBakeryInterface) GetConsumeOfferCaveats(arg0, arg1, arg2 string) []checkers.Caveat
- func (m *MockOfferBakeryInterface) InferDeclaredFromMacaroon(arg0 macaroon.Slice, arg1 map[string]string) map[string]string
- func (m *MockOfferBakeryInterface) RefreshDischargeURL(arg0 context.Context, arg1 string) (string, error)
- type MockOfferBakeryInterfaceCreateDischargeMacaroonCall
- func (c *MockOfferBakeryInterfaceCreateDischargeMacaroonCall) Do(...) *MockOfferBakeryInterfaceCreateDischargeMacaroonCall
- func (c *MockOfferBakeryInterfaceCreateDischargeMacaroonCall) DoAndReturn(...) *MockOfferBakeryInterfaceCreateDischargeMacaroonCall
- func (c *MockOfferBakeryInterfaceCreateDischargeMacaroonCall) Return(arg0 *bakery.Macaroon, arg1 error) *MockOfferBakeryInterfaceCreateDischargeMacaroonCall
- type MockOfferBakeryInterfaceGetConsumeOfferCaveatsCall
- func (c *MockOfferBakeryInterfaceGetConsumeOfferCaveatsCall) Do(f func(string, string, string) []checkers.Caveat) *MockOfferBakeryInterfaceGetConsumeOfferCaveatsCall
- func (c *MockOfferBakeryInterfaceGetConsumeOfferCaveatsCall) DoAndReturn(f func(string, string, string) []checkers.Caveat) *MockOfferBakeryInterfaceGetConsumeOfferCaveatsCall
- func (c *MockOfferBakeryInterfaceGetConsumeOfferCaveatsCall) Return(arg0 []checkers.Caveat) *MockOfferBakeryInterfaceGetConsumeOfferCaveatsCall
- type MockOfferBakeryInterfaceInferDeclaredFromMacaroonCall
- func (c *MockOfferBakeryInterfaceInferDeclaredFromMacaroonCall) Do(f func(macaroon.Slice, map[string]string) map[string]string) *MockOfferBakeryInterfaceInferDeclaredFromMacaroonCall
- func (c *MockOfferBakeryInterfaceInferDeclaredFromMacaroonCall) DoAndReturn(f func(macaroon.Slice, map[string]string) map[string]string) *MockOfferBakeryInterfaceInferDeclaredFromMacaroonCall
- func (c *MockOfferBakeryInterfaceInferDeclaredFromMacaroonCall) Return(arg0 map[string]string) *MockOfferBakeryInterfaceInferDeclaredFromMacaroonCall
- type MockOfferBakeryInterfaceMockRecorder
- func (mr *MockOfferBakeryInterfaceMockRecorder) CreateDischargeMacaroon(arg0, arg1, arg2, arg3, arg4, arg5, arg6 any) *MockOfferBakeryInterfaceCreateDischargeMacaroonCall
- func (mr *MockOfferBakeryInterfaceMockRecorder) GetConsumeOfferCaveats(arg0, arg1, arg2 any) *MockOfferBakeryInterfaceGetConsumeOfferCaveatsCall
- func (mr *MockOfferBakeryInterfaceMockRecorder) InferDeclaredFromMacaroon(arg0, arg1 any) *MockOfferBakeryInterfaceInferDeclaredFromMacaroonCall
- func (mr *MockOfferBakeryInterfaceMockRecorder) RefreshDischargeURL(arg0, arg1 any) *MockOfferBakeryInterfaceRefreshDischargeURLCall
- type MockOfferBakeryInterfaceRefreshDischargeURLCall
- func (c *MockOfferBakeryInterfaceRefreshDischargeURLCall) Do(f func(context.Context, string) (string, error)) *MockOfferBakeryInterfaceRefreshDischargeURLCall
- func (c *MockOfferBakeryInterfaceRefreshDischargeURLCall) DoAndReturn(f func(context.Context, string) (string, error)) *MockOfferBakeryInterfaceRefreshDischargeURLCall
- func (c *MockOfferBakeryInterfaceRefreshDischargeURLCall) Return(arg0 string, arg1 error) *MockOfferBakeryInterfaceRefreshDischargeURLCall
- type MockOfferBakeryInterfacegetBakeryCall
- func (c *MockOfferBakeryInterfacegetBakeryCall) Do(f func() authentication.ExpirableStorageBakery) *MockOfferBakeryInterfacegetBakeryCall
- func (c *MockOfferBakeryInterfacegetBakeryCall) DoAndReturn(f func() authentication.ExpirableStorageBakery) *MockOfferBakeryInterfacegetBakeryCall
- func (c *MockOfferBakeryInterfacegetBakeryCall) Return(arg0 authentication.ExpirableStorageBakery) *MockOfferBakeryInterfacegetBakeryCall
- type MockOfferBakeryInterfacegetClockCall
- func (c *MockOfferBakeryInterfacegetClockCall) Do(f func() clock.Clock) *MockOfferBakeryInterfacegetClockCall
- func (c *MockOfferBakeryInterfacegetClockCall) DoAndReturn(f func() clock.Clock) *MockOfferBakeryInterfacegetClockCall
- func (c *MockOfferBakeryInterfacegetClockCall) Return(arg0 clock.Clock) *MockOfferBakeryInterfacegetClockCall
- type MockOfferBakeryInterfacesetClockCall
- func (c *MockOfferBakeryInterfacesetClockCall) Do(f func(clock.Clock)) *MockOfferBakeryInterfacesetClockCall
- func (c *MockOfferBakeryInterfacesetClockCall) DoAndReturn(f func(clock.Clock)) *MockOfferBakeryInterfacesetClockCall
- func (c *MockOfferBakeryInterfacesetClockCall) Return() *MockOfferBakeryInterfacesetClockCall
- type MockRoundTripper
- type MockRoundTripperMockRecorder
- type MockRoundTripperRoundTripCall
- func (c *MockRoundTripperRoundTripCall) Do(f func(*http.Request) (*http.Response, error)) *MockRoundTripperRoundTripCall
- func (c *MockRoundTripperRoundTripCall) DoAndReturn(f func(*http.Request) (*http.Response, error)) *MockRoundTripperRoundTripCall
- func (c *MockRoundTripperRoundTripCall) Return(arg0 *http.Response, arg1 error) *MockRoundTripperRoundTripCall
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockAccessService ¶
type MockAccessService struct {
// contains filtered or unexported fields
}
MockAccessService is a mock of AccessService interface.
func NewMockAccessService ¶
func NewMockAccessService(ctrl *gomock.Controller) *MockAccessService
NewMockAccessService creates a new mock instance.
func (*MockAccessService) EXPECT ¶
func (m *MockAccessService) EXPECT() *MockAccessServiceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockAccessService) ReadUserAccessLevelForTarget ¶
func (m *MockAccessService) ReadUserAccessLevelForTarget(arg0 context.Context, arg1 user.Name, arg2 permission.ID) (permission.Access, error)
ReadUserAccessLevelForTarget mocks base method.
type MockAccessServiceMockRecorder ¶
type MockAccessServiceMockRecorder struct {
// contains filtered or unexported fields
}
MockAccessServiceMockRecorder is the mock recorder for MockAccessService.
func (*MockAccessServiceMockRecorder) ReadUserAccessLevelForTarget ¶
func (mr *MockAccessServiceMockRecorder) ReadUserAccessLevelForTarget(arg0, arg1, arg2 any) *MockAccessServiceReadUserAccessLevelForTargetCall
ReadUserAccessLevelForTarget indicates an expected call of ReadUserAccessLevelForTarget.
type MockAccessServiceReadUserAccessLevelForTargetCall ¶
MockAccessServiceReadUserAccessLevelForTargetCall wrap *gomock.Call
func (*MockAccessServiceReadUserAccessLevelForTargetCall) Do ¶
func (c *MockAccessServiceReadUserAccessLevelForTargetCall) Do(f func(context.Context, user.Name, permission.ID) (permission.Access, error)) *MockAccessServiceReadUserAccessLevelForTargetCall
Do rewrite *gomock.Call.Do
func (*MockAccessServiceReadUserAccessLevelForTargetCall) DoAndReturn ¶
func (c *MockAccessServiceReadUserAccessLevelForTargetCall) DoAndReturn(f func(context.Context, user.Name, permission.ID) (permission.Access, error)) *MockAccessServiceReadUserAccessLevelForTargetCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockAccessServiceReadUserAccessLevelForTargetCall) Return ¶
func (c *MockAccessServiceReadUserAccessLevelForTargetCall) Return(arg0 permission.Access, arg1 error) *MockAccessServiceReadUserAccessLevelForTargetCall
Return rewrite *gomock.Call.Return
type MockApplicationService ¶
type MockApplicationService struct {
// contains filtered or unexported fields
}
MockApplicationService is a mock of ApplicationService interface.
func NewMockApplicationService ¶
func NewMockApplicationService(ctrl *gomock.Controller) *MockApplicationService
NewMockApplicationService creates a new mock instance.
func (*MockApplicationService) EXPECT ¶
func (m *MockApplicationService) EXPECT() *MockApplicationServiceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockApplicationService) GetApplicationDisplayStatus ¶
func (m *MockApplicationService) GetApplicationDisplayStatus(arg0 context.Context, arg1 application.ID) (*status.StatusInfo, error)
GetApplicationDisplayStatus mocks base method.
func (*MockApplicationService) GetApplicationIDByName ¶
func (m *MockApplicationService) GetApplicationIDByName(arg0 context.Context, arg1 string) (application.ID, error)
GetApplicationIDByName mocks base method.
type MockApplicationServiceGetApplicationDisplayStatusCall ¶
MockApplicationServiceGetApplicationDisplayStatusCall wrap *gomock.Call
func (*MockApplicationServiceGetApplicationDisplayStatusCall) Do ¶
func (c *MockApplicationServiceGetApplicationDisplayStatusCall) Do(f func(context.Context, application.ID) (*status.StatusInfo, error)) *MockApplicationServiceGetApplicationDisplayStatusCall
Do rewrite *gomock.Call.Do
func (*MockApplicationServiceGetApplicationDisplayStatusCall) DoAndReturn ¶
func (c *MockApplicationServiceGetApplicationDisplayStatusCall) DoAndReturn(f func(context.Context, application.ID) (*status.StatusInfo, error)) *MockApplicationServiceGetApplicationDisplayStatusCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockApplicationServiceGetApplicationDisplayStatusCall) Return ¶
func (c *MockApplicationServiceGetApplicationDisplayStatusCall) Return(arg0 *status.StatusInfo, arg1 error) *MockApplicationServiceGetApplicationDisplayStatusCall
Return rewrite *gomock.Call.Return
type MockApplicationServiceGetApplicationIDByNameCall ¶
MockApplicationServiceGetApplicationIDByNameCall wrap *gomock.Call
func (*MockApplicationServiceGetApplicationIDByNameCall) Do ¶
func (c *MockApplicationServiceGetApplicationIDByNameCall) Do(f func(context.Context, string) (application.ID, error)) *MockApplicationServiceGetApplicationIDByNameCall
Do rewrite *gomock.Call.Do
func (*MockApplicationServiceGetApplicationIDByNameCall) DoAndReturn ¶
func (c *MockApplicationServiceGetApplicationIDByNameCall) DoAndReturn(f func(context.Context, string) (application.ID, error)) *MockApplicationServiceGetApplicationIDByNameCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockApplicationServiceGetApplicationIDByNameCall) Return ¶
func (c *MockApplicationServiceGetApplicationIDByNameCall) Return(arg0 application.ID, arg1 error) *MockApplicationServiceGetApplicationIDByNameCall
Return rewrite *gomock.Call.Return
type MockApplicationServiceMockRecorder ¶
type MockApplicationServiceMockRecorder struct {
// contains filtered or unexported fields
}
MockApplicationServiceMockRecorder is the mock recorder for MockApplicationService.
func (*MockApplicationServiceMockRecorder) GetApplicationDisplayStatus ¶
func (mr *MockApplicationServiceMockRecorder) GetApplicationDisplayStatus(arg0, arg1 any) *MockApplicationServiceGetApplicationDisplayStatusCall
GetApplicationDisplayStatus indicates an expected call of GetApplicationDisplayStatus.
func (*MockApplicationServiceMockRecorder) GetApplicationIDByName ¶
func (mr *MockApplicationServiceMockRecorder) GetApplicationIDByName(arg0, arg1 any) *MockApplicationServiceGetApplicationIDByNameCall
GetApplicationIDByName indicates an expected call of GetApplicationIDByName.
type MockBackend ¶
type MockBackend struct {
// contains filtered or unexported fields
}
MockBackend is a mock of Backend interface.
func NewMockBackend ¶
func NewMockBackend(ctrl *gomock.Controller) *MockBackend
NewMockBackend creates a new mock instance.
func (*MockBackend) AddRelation ¶
func (m *MockBackend) AddRelation(arg0 ...relation.Endpoint) (crossmodel.Relation, error)
AddRelation mocks base method.
func (*MockBackend) AddRemoteApplication ¶
func (m *MockBackend) AddRemoteApplication(arg0 state.AddRemoteApplicationParams) (crossmodel.RemoteApplication, error)
AddRemoteApplication mocks base method.
func (*MockBackend) AllModelUUIDs ¶
func (m *MockBackend) AllModelUUIDs() ([]string, error)
AllModelUUIDs mocks base method.
func (*MockBackend) Application ¶
func (m *MockBackend) Application(arg0 string) (crossmodel.Application, error)
Application mocks base method.
func (*MockBackend) ApplicationOfferForUUID ¶
func (m *MockBackend) ApplicationOfferForUUID(arg0 string) (*crossmodel0.ApplicationOffer, error)
ApplicationOfferForUUID mocks base method.
func (*MockBackend) ApplyOperation ¶
func (m *MockBackend) ApplyOperation(arg0 state.ModelOperation) error
ApplyOperation mocks base method.
func (*MockBackend) ControllerTag ¶
func (m *MockBackend) ControllerTag() names.ControllerTag
ControllerTag mocks base method.
func (*MockBackend) EXPECT ¶
func (m *MockBackend) EXPECT() *MockBackendMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockBackend) EndpointsRelation ¶
func (m *MockBackend) EndpointsRelation(arg0 ...relation.Endpoint) (crossmodel.Relation, error)
EndpointsRelation mocks base method.
func (*MockBackend) ExportLocalEntity ¶
func (m *MockBackend) ExportLocalEntity(arg0 names.Tag) (string, error)
ExportLocalEntity mocks base method.
func (*MockBackend) GetRemoteEntity ¶
func (m *MockBackend) GetRemoteEntity(arg0 string) (names.Tag, error)
GetRemoteEntity mocks base method.
func (*MockBackend) GetToken ¶
func (m *MockBackend) GetToken(arg0 names.Tag) (string, error)
GetToken mocks base method.
func (*MockBackend) ImportRemoteEntity ¶
func (m *MockBackend) ImportRemoteEntity(arg0 names.Tag, arg1 string) error
ImportRemoteEntity mocks base method.
func (*MockBackend) IngressNetworks ¶
func (m *MockBackend) IngressNetworks(arg0 string) (state.RelationNetworks, error)
IngressNetworks mocks base method.
func (*MockBackend) KeyRelation ¶
func (m *MockBackend) KeyRelation(arg0 string) (crossmodel.Relation, error)
KeyRelation mocks base method.
func (*MockBackend) OfferConnectionForRelation ¶
func (m *MockBackend) OfferConnectionForRelation(arg0 string) (crossmodel.OfferConnection, error)
OfferConnectionForRelation mocks base method.
func (*MockBackend) OfferUUIDForRelation ¶
func (m *MockBackend) OfferUUIDForRelation(arg0 string) (string, error)
OfferUUIDForRelation mocks base method.
func (*MockBackend) RemoteApplication ¶
func (m *MockBackend) RemoteApplication(arg0 string) (crossmodel.RemoteApplication, error)
RemoteApplication mocks base method.
func (*MockBackend) SaveIngressNetworks ¶
func (m *MockBackend) SaveIngressNetworks(arg0 string, arg1 []string) (state.RelationNetworks, error)
SaveIngressNetworks mocks base method.
func (*MockBackend) WatchOffer ¶
func (m *MockBackend) WatchOffer(arg0 string) state.NotifyWatcher
WatchOffer mocks base method.
func (*MockBackend) WatchOfferStatus ¶
func (m *MockBackend) WatchOfferStatus(arg0 string) (state.NotifyWatcher, error)
WatchOfferStatus mocks base method.
type MockBackendAddRelationCall ¶
MockBackendAddRelationCall wrap *gomock.Call
func (*MockBackendAddRelationCall) Do ¶
func (c *MockBackendAddRelationCall) Do(f func(...relation.Endpoint) (crossmodel.Relation, error)) *MockBackendAddRelationCall
Do rewrite *gomock.Call.Do
func (*MockBackendAddRelationCall) DoAndReturn ¶
func (c *MockBackendAddRelationCall) DoAndReturn(f func(...relation.Endpoint) (crossmodel.Relation, error)) *MockBackendAddRelationCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockBackendAddRelationCall) Return ¶
func (c *MockBackendAddRelationCall) Return(arg0 crossmodel.Relation, arg1 error) *MockBackendAddRelationCall
Return rewrite *gomock.Call.Return
type MockBackendAddRemoteApplicationCall ¶
MockBackendAddRemoteApplicationCall wrap *gomock.Call
func (*MockBackendAddRemoteApplicationCall) Do ¶
func (c *MockBackendAddRemoteApplicationCall) Do(f func(state.AddRemoteApplicationParams) (crossmodel.RemoteApplication, error)) *MockBackendAddRemoteApplicationCall
Do rewrite *gomock.Call.Do
func (*MockBackendAddRemoteApplicationCall) DoAndReturn ¶
func (c *MockBackendAddRemoteApplicationCall) DoAndReturn(f func(state.AddRemoteApplicationParams) (crossmodel.RemoteApplication, error)) *MockBackendAddRemoteApplicationCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockBackendAddRemoteApplicationCall) Return ¶
func (c *MockBackendAddRemoteApplicationCall) Return(arg0 crossmodel.RemoteApplication, arg1 error) *MockBackendAddRemoteApplicationCall
Return rewrite *gomock.Call.Return
type MockBackendAllModelUUIDsCall ¶
MockBackendAllModelUUIDsCall wrap *gomock.Call
func (*MockBackendAllModelUUIDsCall) Do ¶
func (c *MockBackendAllModelUUIDsCall) Do(f func() ([]string, error)) *MockBackendAllModelUUIDsCall
Do rewrite *gomock.Call.Do
func (*MockBackendAllModelUUIDsCall) DoAndReturn ¶
func (c *MockBackendAllModelUUIDsCall) DoAndReturn(f func() ([]string, error)) *MockBackendAllModelUUIDsCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockBackendAllModelUUIDsCall) Return ¶
func (c *MockBackendAllModelUUIDsCall) Return(arg0 []string, arg1 error) *MockBackendAllModelUUIDsCall
Return rewrite *gomock.Call.Return
type MockBackendApplicationCall ¶
MockBackendApplicationCall wrap *gomock.Call
func (*MockBackendApplicationCall) Do ¶
func (c *MockBackendApplicationCall) Do(f func(string) (crossmodel.Application, error)) *MockBackendApplicationCall
Do rewrite *gomock.Call.Do
func (*MockBackendApplicationCall) DoAndReturn ¶
func (c *MockBackendApplicationCall) DoAndReturn(f func(string) (crossmodel.Application, error)) *MockBackendApplicationCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockBackendApplicationCall) Return ¶
func (c *MockBackendApplicationCall) Return(arg0 crossmodel.Application, arg1 error) *MockBackendApplicationCall
Return rewrite *gomock.Call.Return
type MockBackendApplicationOfferForUUIDCall ¶
MockBackendApplicationOfferForUUIDCall wrap *gomock.Call
func (*MockBackendApplicationOfferForUUIDCall) Do ¶
func (c *MockBackendApplicationOfferForUUIDCall) Do(f func(string) (*crossmodel0.ApplicationOffer, error)) *MockBackendApplicationOfferForUUIDCall
Do rewrite *gomock.Call.Do
func (*MockBackendApplicationOfferForUUIDCall) DoAndReturn ¶
func (c *MockBackendApplicationOfferForUUIDCall) DoAndReturn(f func(string) (*crossmodel0.ApplicationOffer, error)) *MockBackendApplicationOfferForUUIDCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockBackendApplicationOfferForUUIDCall) Return ¶
func (c *MockBackendApplicationOfferForUUIDCall) Return(arg0 *crossmodel0.ApplicationOffer, arg1 error) *MockBackendApplicationOfferForUUIDCall
Return rewrite *gomock.Call.Return
type MockBackendApplyOperationCall ¶
MockBackendApplyOperationCall wrap *gomock.Call
func (*MockBackendApplyOperationCall) Do ¶
func (c *MockBackendApplyOperationCall) Do(f func(state.ModelOperation) error) *MockBackendApplyOperationCall
Do rewrite *gomock.Call.Do
func (*MockBackendApplyOperationCall) DoAndReturn ¶
func (c *MockBackendApplyOperationCall) DoAndReturn(f func(state.ModelOperation) error) *MockBackendApplyOperationCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockBackendApplyOperationCall) Return ¶
func (c *MockBackendApplyOperationCall) Return(arg0 error) *MockBackendApplyOperationCall
Return rewrite *gomock.Call.Return
type MockBackendControllerTagCall ¶
MockBackendControllerTagCall wrap *gomock.Call
func (*MockBackendControllerTagCall) Do ¶
func (c *MockBackendControllerTagCall) Do(f func() names.ControllerTag) *MockBackendControllerTagCall
Do rewrite *gomock.Call.Do
func (*MockBackendControllerTagCall) DoAndReturn ¶
func (c *MockBackendControllerTagCall) DoAndReturn(f func() names.ControllerTag) *MockBackendControllerTagCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockBackendControllerTagCall) Return ¶
func (c *MockBackendControllerTagCall) Return(arg0 names.ControllerTag) *MockBackendControllerTagCall
Return rewrite *gomock.Call.Return
type MockBackendEndpointsRelationCall ¶
MockBackendEndpointsRelationCall wrap *gomock.Call
func (*MockBackendEndpointsRelationCall) Do ¶
func (c *MockBackendEndpointsRelationCall) Do(f func(...relation.Endpoint) (crossmodel.Relation, error)) *MockBackendEndpointsRelationCall
Do rewrite *gomock.Call.Do
func (*MockBackendEndpointsRelationCall) DoAndReturn ¶
func (c *MockBackendEndpointsRelationCall) DoAndReturn(f func(...relation.Endpoint) (crossmodel.Relation, error)) *MockBackendEndpointsRelationCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockBackendEndpointsRelationCall) Return ¶
func (c *MockBackendEndpointsRelationCall) Return(arg0 crossmodel.Relation, arg1 error) *MockBackendEndpointsRelationCall
Return rewrite *gomock.Call.Return
type MockBackendExportLocalEntityCall ¶
MockBackendExportLocalEntityCall wrap *gomock.Call
func (*MockBackendExportLocalEntityCall) Do ¶
func (c *MockBackendExportLocalEntityCall) Do(f func(names.Tag) (string, error)) *MockBackendExportLocalEntityCall
Do rewrite *gomock.Call.Do
func (*MockBackendExportLocalEntityCall) DoAndReturn ¶
func (c *MockBackendExportLocalEntityCall) DoAndReturn(f func(names.Tag) (string, error)) *MockBackendExportLocalEntityCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockBackendExportLocalEntityCall) Return ¶
func (c *MockBackendExportLocalEntityCall) Return(arg0 string, arg1 error) *MockBackendExportLocalEntityCall
Return rewrite *gomock.Call.Return
type MockBackendGetRemoteEntityCall ¶
MockBackendGetRemoteEntityCall wrap *gomock.Call
func (*MockBackendGetRemoteEntityCall) Do ¶
func (c *MockBackendGetRemoteEntityCall) Do(f func(string) (names.Tag, error)) *MockBackendGetRemoteEntityCall
Do rewrite *gomock.Call.Do
func (*MockBackendGetRemoteEntityCall) DoAndReturn ¶
func (c *MockBackendGetRemoteEntityCall) DoAndReturn(f func(string) (names.Tag, error)) *MockBackendGetRemoteEntityCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockBackendGetRemoteEntityCall) Return ¶
func (c *MockBackendGetRemoteEntityCall) Return(arg0 names.Tag, arg1 error) *MockBackendGetRemoteEntityCall
Return rewrite *gomock.Call.Return
type MockBackendGetTokenCall ¶
MockBackendGetTokenCall wrap *gomock.Call
func (*MockBackendGetTokenCall) Do ¶
func (c *MockBackendGetTokenCall) Do(f func(names.Tag) (string, error)) *MockBackendGetTokenCall
Do rewrite *gomock.Call.Do
func (*MockBackendGetTokenCall) DoAndReturn ¶
func (c *MockBackendGetTokenCall) DoAndReturn(f func(names.Tag) (string, error)) *MockBackendGetTokenCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockBackendGetTokenCall) Return ¶
func (c *MockBackendGetTokenCall) Return(arg0 string, arg1 error) *MockBackendGetTokenCall
Return rewrite *gomock.Call.Return
type MockBackendImportRemoteEntityCall ¶
MockBackendImportRemoteEntityCall wrap *gomock.Call
func (*MockBackendImportRemoteEntityCall) Do ¶
func (c *MockBackendImportRemoteEntityCall) Do(f func(names.Tag, string) error) *MockBackendImportRemoteEntityCall
Do rewrite *gomock.Call.Do
func (*MockBackendImportRemoteEntityCall) DoAndReturn ¶
func (c *MockBackendImportRemoteEntityCall) DoAndReturn(f func(names.Tag, string) error) *MockBackendImportRemoteEntityCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockBackendImportRemoteEntityCall) Return ¶
func (c *MockBackendImportRemoteEntityCall) Return(arg0 error) *MockBackendImportRemoteEntityCall
Return rewrite *gomock.Call.Return
type MockBackendIngressNetworksCall ¶
MockBackendIngressNetworksCall wrap *gomock.Call
func (*MockBackendIngressNetworksCall) Do ¶
func (c *MockBackendIngressNetworksCall) Do(f func(string) (state.RelationNetworks, error)) *MockBackendIngressNetworksCall
Do rewrite *gomock.Call.Do
func (*MockBackendIngressNetworksCall) DoAndReturn ¶
func (c *MockBackendIngressNetworksCall) DoAndReturn(f func(string) (state.RelationNetworks, error)) *MockBackendIngressNetworksCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockBackendIngressNetworksCall) Return ¶
func (c *MockBackendIngressNetworksCall) Return(arg0 state.RelationNetworks, arg1 error) *MockBackendIngressNetworksCall
Return rewrite *gomock.Call.Return
type MockBackendKeyRelationCall ¶
MockBackendKeyRelationCall wrap *gomock.Call
func (*MockBackendKeyRelationCall) Do ¶
func (c *MockBackendKeyRelationCall) Do(f func(string) (crossmodel.Relation, error)) *MockBackendKeyRelationCall
Do rewrite *gomock.Call.Do
func (*MockBackendKeyRelationCall) DoAndReturn ¶
func (c *MockBackendKeyRelationCall) DoAndReturn(f func(string) (crossmodel.Relation, error)) *MockBackendKeyRelationCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockBackendKeyRelationCall) Return ¶
func (c *MockBackendKeyRelationCall) Return(arg0 crossmodel.Relation, arg1 error) *MockBackendKeyRelationCall
Return rewrite *gomock.Call.Return
type MockBackendMockRecorder ¶
type MockBackendMockRecorder struct {
// contains filtered or unexported fields
}
MockBackendMockRecorder is the mock recorder for MockBackend.
func (*MockBackendMockRecorder) AddRelation ¶
func (mr *MockBackendMockRecorder) AddRelation(arg0 ...any) *MockBackendAddRelationCall
AddRelation indicates an expected call of AddRelation.
func (*MockBackendMockRecorder) AddRemoteApplication ¶
func (mr *MockBackendMockRecorder) AddRemoteApplication(arg0 any) *MockBackendAddRemoteApplicationCall
AddRemoteApplication indicates an expected call of AddRemoteApplication.
func (*MockBackendMockRecorder) AllModelUUIDs ¶
func (mr *MockBackendMockRecorder) AllModelUUIDs() *MockBackendAllModelUUIDsCall
AllModelUUIDs indicates an expected call of AllModelUUIDs.
func (*MockBackendMockRecorder) Application ¶
func (mr *MockBackendMockRecorder) Application(arg0 any) *MockBackendApplicationCall
Application indicates an expected call of Application.
func (*MockBackendMockRecorder) ApplicationOfferForUUID ¶
func (mr *MockBackendMockRecorder) ApplicationOfferForUUID(arg0 any) *MockBackendApplicationOfferForUUIDCall
ApplicationOfferForUUID indicates an expected call of ApplicationOfferForUUID.
func (*MockBackendMockRecorder) ApplyOperation ¶
func (mr *MockBackendMockRecorder) ApplyOperation(arg0 any) *MockBackendApplyOperationCall
ApplyOperation indicates an expected call of ApplyOperation.
func (*MockBackendMockRecorder) ControllerTag ¶
func (mr *MockBackendMockRecorder) ControllerTag() *MockBackendControllerTagCall
ControllerTag indicates an expected call of ControllerTag.
func (*MockBackendMockRecorder) EndpointsRelation ¶
func (mr *MockBackendMockRecorder) EndpointsRelation(arg0 ...any) *MockBackendEndpointsRelationCall
EndpointsRelation indicates an expected call of EndpointsRelation.
func (*MockBackendMockRecorder) ExportLocalEntity ¶
func (mr *MockBackendMockRecorder) ExportLocalEntity(arg0 any) *MockBackendExportLocalEntityCall
ExportLocalEntity indicates an expected call of ExportLocalEntity.
func (*MockBackendMockRecorder) GetRemoteEntity ¶
func (mr *MockBackendMockRecorder) GetRemoteEntity(arg0 any) *MockBackendGetRemoteEntityCall
GetRemoteEntity indicates an expected call of GetRemoteEntity.
func (*MockBackendMockRecorder) GetToken ¶
func (mr *MockBackendMockRecorder) GetToken(arg0 any) *MockBackendGetTokenCall
GetToken indicates an expected call of GetToken.
func (*MockBackendMockRecorder) ImportRemoteEntity ¶
func (mr *MockBackendMockRecorder) ImportRemoteEntity(arg0, arg1 any) *MockBackendImportRemoteEntityCall
ImportRemoteEntity indicates an expected call of ImportRemoteEntity.
func (*MockBackendMockRecorder) IngressNetworks ¶
func (mr *MockBackendMockRecorder) IngressNetworks(arg0 any) *MockBackendIngressNetworksCall
IngressNetworks indicates an expected call of IngressNetworks.
func (*MockBackendMockRecorder) KeyRelation ¶
func (mr *MockBackendMockRecorder) KeyRelation(arg0 any) *MockBackendKeyRelationCall
KeyRelation indicates an expected call of KeyRelation.
func (*MockBackendMockRecorder) OfferConnectionForRelation ¶
func (mr *MockBackendMockRecorder) OfferConnectionForRelation(arg0 any) *MockBackendOfferConnectionForRelationCall
OfferConnectionForRelation indicates an expected call of OfferConnectionForRelation.
func (*MockBackendMockRecorder) OfferUUIDForRelation ¶
func (mr *MockBackendMockRecorder) OfferUUIDForRelation(arg0 any) *MockBackendOfferUUIDForRelationCall
OfferUUIDForRelation indicates an expected call of OfferUUIDForRelation.
func (*MockBackendMockRecorder) RemoteApplication ¶
func (mr *MockBackendMockRecorder) RemoteApplication(arg0 any) *MockBackendRemoteApplicationCall
RemoteApplication indicates an expected call of RemoteApplication.
func (*MockBackendMockRecorder) SaveIngressNetworks ¶
func (mr *MockBackendMockRecorder) SaveIngressNetworks(arg0, arg1 any) *MockBackendSaveIngressNetworksCall
SaveIngressNetworks indicates an expected call of SaveIngressNetworks.
func (*MockBackendMockRecorder) WatchOffer ¶
func (mr *MockBackendMockRecorder) WatchOffer(arg0 any) *MockBackendWatchOfferCall
WatchOffer indicates an expected call of WatchOffer.
func (*MockBackendMockRecorder) WatchOfferStatus ¶
func (mr *MockBackendMockRecorder) WatchOfferStatus(arg0 any) *MockBackendWatchOfferStatusCall
WatchOfferStatus indicates an expected call of WatchOfferStatus.
type MockBackendOfferConnectionForRelationCall ¶
MockBackendOfferConnectionForRelationCall wrap *gomock.Call
func (*MockBackendOfferConnectionForRelationCall) Do ¶
func (c *MockBackendOfferConnectionForRelationCall) Do(f func(string) (crossmodel.OfferConnection, error)) *MockBackendOfferConnectionForRelationCall
Do rewrite *gomock.Call.Do
func (*MockBackendOfferConnectionForRelationCall) DoAndReturn ¶
func (c *MockBackendOfferConnectionForRelationCall) DoAndReturn(f func(string) (crossmodel.OfferConnection, error)) *MockBackendOfferConnectionForRelationCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockBackendOfferConnectionForRelationCall) Return ¶
func (c *MockBackendOfferConnectionForRelationCall) Return(arg0 crossmodel.OfferConnection, arg1 error) *MockBackendOfferConnectionForRelationCall
Return rewrite *gomock.Call.Return
type MockBackendOfferUUIDForRelationCall ¶
MockBackendOfferUUIDForRelationCall wrap *gomock.Call
func (*MockBackendOfferUUIDForRelationCall) Do ¶
func (c *MockBackendOfferUUIDForRelationCall) Do(f func(string) (string, error)) *MockBackendOfferUUIDForRelationCall
Do rewrite *gomock.Call.Do
func (*MockBackendOfferUUIDForRelationCall) DoAndReturn ¶
func (c *MockBackendOfferUUIDForRelationCall) DoAndReturn(f func(string) (string, error)) *MockBackendOfferUUIDForRelationCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockBackendOfferUUIDForRelationCall) Return ¶
func (c *MockBackendOfferUUIDForRelationCall) Return(arg0 string, arg1 error) *MockBackendOfferUUIDForRelationCall
Return rewrite *gomock.Call.Return
type MockBackendRemoteApplicationCall ¶
MockBackendRemoteApplicationCall wrap *gomock.Call
func (*MockBackendRemoteApplicationCall) Do ¶
func (c *MockBackendRemoteApplicationCall) Do(f func(string) (crossmodel.RemoteApplication, error)) *MockBackendRemoteApplicationCall
Do rewrite *gomock.Call.Do
func (*MockBackendRemoteApplicationCall) DoAndReturn ¶
func (c *MockBackendRemoteApplicationCall) DoAndReturn(f func(string) (crossmodel.RemoteApplication, error)) *MockBackendRemoteApplicationCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockBackendRemoteApplicationCall) Return ¶
func (c *MockBackendRemoteApplicationCall) Return(arg0 crossmodel.RemoteApplication, arg1 error) *MockBackendRemoteApplicationCall
Return rewrite *gomock.Call.Return
type MockBackendSaveIngressNetworksCall ¶
MockBackendSaveIngressNetworksCall wrap *gomock.Call
func (*MockBackendSaveIngressNetworksCall) Do ¶
func (c *MockBackendSaveIngressNetworksCall) Do(f func(string, []string) (state.RelationNetworks, error)) *MockBackendSaveIngressNetworksCall
Do rewrite *gomock.Call.Do
func (*MockBackendSaveIngressNetworksCall) DoAndReturn ¶
func (c *MockBackendSaveIngressNetworksCall) DoAndReturn(f func(string, []string) (state.RelationNetworks, error)) *MockBackendSaveIngressNetworksCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockBackendSaveIngressNetworksCall) Return ¶
func (c *MockBackendSaveIngressNetworksCall) Return(arg0 state.RelationNetworks, arg1 error) *MockBackendSaveIngressNetworksCall
Return rewrite *gomock.Call.Return
type MockBackendWatchOfferCall ¶
MockBackendWatchOfferCall wrap *gomock.Call
func (*MockBackendWatchOfferCall) Do ¶
func (c *MockBackendWatchOfferCall) Do(f func(string) state.NotifyWatcher) *MockBackendWatchOfferCall
Do rewrite *gomock.Call.Do
func (*MockBackendWatchOfferCall) DoAndReturn ¶
func (c *MockBackendWatchOfferCall) DoAndReturn(f func(string) state.NotifyWatcher) *MockBackendWatchOfferCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockBackendWatchOfferCall) Return ¶
func (c *MockBackendWatchOfferCall) Return(arg0 state.NotifyWatcher) *MockBackendWatchOfferCall
Return rewrite *gomock.Call.Return
type MockBackendWatchOfferStatusCall ¶
MockBackendWatchOfferStatusCall wrap *gomock.Call
func (*MockBackendWatchOfferStatusCall) Do ¶
func (c *MockBackendWatchOfferStatusCall) Do(f func(string) (state.NotifyWatcher, error)) *MockBackendWatchOfferStatusCall
Do rewrite *gomock.Call.Do
func (*MockBackendWatchOfferStatusCall) DoAndReturn ¶
func (c *MockBackendWatchOfferStatusCall) DoAndReturn(f func(string) (state.NotifyWatcher, error)) *MockBackendWatchOfferStatusCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockBackendWatchOfferStatusCall) Return ¶
func (c *MockBackendWatchOfferStatusCall) Return(arg0 state.NotifyWatcher, arg1 error) *MockBackendWatchOfferStatusCall
Return rewrite *gomock.Call.Return
type MockBakeryConfigService ¶
type MockBakeryConfigService struct {
// contains filtered or unexported fields
}
MockBakeryConfigService is a mock of BakeryConfigService interface.
func NewMockBakeryConfigService ¶
func NewMockBakeryConfigService(ctrl *gomock.Controller) *MockBakeryConfigService
NewMockBakeryConfigService creates a new mock instance.
func (*MockBakeryConfigService) EXPECT ¶
func (m *MockBakeryConfigService) EXPECT() *MockBakeryConfigServiceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockBakeryConfigService) GetExternalUsersThirdPartyKey ¶
func (m *MockBakeryConfigService) GetExternalUsersThirdPartyKey(arg0 context.Context) (*bakery.KeyPair, error)
GetExternalUsersThirdPartyKey mocks base method.
type MockBakeryConfigServiceGetExternalUsersThirdPartyKeyCall ¶
MockBakeryConfigServiceGetExternalUsersThirdPartyKeyCall wrap *gomock.Call
func (*MockBakeryConfigServiceGetExternalUsersThirdPartyKeyCall) Do ¶
func (c *MockBakeryConfigServiceGetExternalUsersThirdPartyKeyCall) Do(f func(context.Context) (*bakery.KeyPair, error)) *MockBakeryConfigServiceGetExternalUsersThirdPartyKeyCall
Do rewrite *gomock.Call.Do
func (*MockBakeryConfigServiceGetExternalUsersThirdPartyKeyCall) DoAndReturn ¶
func (c *MockBakeryConfigServiceGetExternalUsersThirdPartyKeyCall) DoAndReturn(f func(context.Context) (*bakery.KeyPair, error)) *MockBakeryConfigServiceGetExternalUsersThirdPartyKeyCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockBakeryConfigServiceGetExternalUsersThirdPartyKeyCall) Return ¶
func (c *MockBakeryConfigServiceGetExternalUsersThirdPartyKeyCall) Return(arg0 *bakery.KeyPair, arg1 error) *MockBakeryConfigServiceGetExternalUsersThirdPartyKeyCall
Return rewrite *gomock.Call.Return
type MockBakeryConfigServiceMockRecorder ¶
type MockBakeryConfigServiceMockRecorder struct {
// contains filtered or unexported fields
}
MockBakeryConfigServiceMockRecorder is the mock recorder for MockBakeryConfigService.
func (*MockBakeryConfigServiceMockRecorder) GetExternalUsersThirdPartyKey ¶
func (mr *MockBakeryConfigServiceMockRecorder) GetExternalUsersThirdPartyKey(arg0 any) *MockBakeryConfigServiceGetExternalUsersThirdPartyKeyCall
GetExternalUsersThirdPartyKey indicates an expected call of GetExternalUsersThirdPartyKey.
type MockExpirableStorage ¶
type MockExpirableStorage struct {
// contains filtered or unexported fields
}
MockExpirableStorage is a mock of ExpirableStorage interface.
func NewMockExpirableStorage ¶
func NewMockExpirableStorage(ctrl *gomock.Controller) *MockExpirableStorage
NewMockExpirableStorage creates a new mock instance.
func (*MockExpirableStorage) EXPECT ¶
func (m *MockExpirableStorage) EXPECT() *MockExpirableStorageMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockExpirableStorage) ExpireAfter ¶
func (m *MockExpirableStorage) ExpireAfter(arg0 time.Duration) macaroon.ExpirableStorage
ExpireAfter mocks base method.
type MockExpirableStorageBakery ¶
type MockExpirableStorageBakery struct {
// contains filtered or unexported fields
}
MockExpirableStorageBakery is a mock of ExpirableStorageBakery interface.
func NewMockExpirableStorageBakery ¶
func NewMockExpirableStorageBakery(ctrl *gomock.Controller) *MockExpirableStorageBakery
NewMockExpirableStorageBakery creates a new mock instance.
func (*MockExpirableStorageBakery) Auth ¶
func (m *MockExpirableStorageBakery) Auth(arg0 context.Context, arg1 ...macaroon.Slice) *bakery.AuthChecker
Auth mocks base method.
func (*MockExpirableStorageBakery) EXPECT ¶
func (m *MockExpirableStorageBakery) EXPECT() *MockExpirableStorageBakeryMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockExpirableStorageBakery) ExpireStorageAfter ¶
func (m *MockExpirableStorageBakery) ExpireStorageAfter(arg0 time.Duration) (authentication.ExpirableStorageBakery, error)
ExpireStorageAfter mocks base method.
type MockExpirableStorageBakeryAuthCall ¶
MockExpirableStorageBakeryAuthCall wrap *gomock.Call
func (*MockExpirableStorageBakeryAuthCall) Do ¶
func (c *MockExpirableStorageBakeryAuthCall) Do(f func(context.Context, ...macaroon.Slice) *bakery.AuthChecker) *MockExpirableStorageBakeryAuthCall
Do rewrite *gomock.Call.Do
func (*MockExpirableStorageBakeryAuthCall) DoAndReturn ¶
func (c *MockExpirableStorageBakeryAuthCall) DoAndReturn(f func(context.Context, ...macaroon.Slice) *bakery.AuthChecker) *MockExpirableStorageBakeryAuthCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockExpirableStorageBakeryAuthCall) Return ¶
func (c *MockExpirableStorageBakeryAuthCall) Return(arg0 *bakery.AuthChecker) *MockExpirableStorageBakeryAuthCall
Return rewrite *gomock.Call.Return
type MockExpirableStorageBakeryExpireStorageAfterCall ¶
MockExpirableStorageBakeryExpireStorageAfterCall wrap *gomock.Call
func (*MockExpirableStorageBakeryExpireStorageAfterCall) Do ¶
func (c *MockExpirableStorageBakeryExpireStorageAfterCall) Do(f func(time.Duration) (authentication.ExpirableStorageBakery, error)) *MockExpirableStorageBakeryExpireStorageAfterCall
Do rewrite *gomock.Call.Do
func (*MockExpirableStorageBakeryExpireStorageAfterCall) DoAndReturn ¶
func (c *MockExpirableStorageBakeryExpireStorageAfterCall) DoAndReturn(f func(time.Duration) (authentication.ExpirableStorageBakery, error)) *MockExpirableStorageBakeryExpireStorageAfterCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockExpirableStorageBakeryExpireStorageAfterCall) Return ¶
func (c *MockExpirableStorageBakeryExpireStorageAfterCall) Return(arg0 authentication.ExpirableStorageBakery, arg1 error) *MockExpirableStorageBakeryExpireStorageAfterCall
Return rewrite *gomock.Call.Return
type MockExpirableStorageBakeryMockRecorder ¶
type MockExpirableStorageBakeryMockRecorder struct {
// contains filtered or unexported fields
}
MockExpirableStorageBakeryMockRecorder is the mock recorder for MockExpirableStorageBakery.
func (*MockExpirableStorageBakeryMockRecorder) Auth ¶
func (mr *MockExpirableStorageBakeryMockRecorder) Auth(arg0 any, arg1 ...any) *MockExpirableStorageBakeryAuthCall
Auth indicates an expected call of Auth.
func (*MockExpirableStorageBakeryMockRecorder) ExpireStorageAfter ¶
func (mr *MockExpirableStorageBakeryMockRecorder) ExpireStorageAfter(arg0 any) *MockExpirableStorageBakeryExpireStorageAfterCall
ExpireStorageAfter indicates an expected call of ExpireStorageAfter.
func (*MockExpirableStorageBakeryMockRecorder) NewMacaroon ¶
func (mr *MockExpirableStorageBakeryMockRecorder) NewMacaroon(arg0, arg1, arg2 any, arg3 ...any) *MockExpirableStorageBakeryNewMacaroonCall
NewMacaroon indicates an expected call of NewMacaroon.
type MockExpirableStorageBakeryNewMacaroonCall ¶
MockExpirableStorageBakeryNewMacaroonCall wrap *gomock.Call
func (*MockExpirableStorageBakeryNewMacaroonCall) Do ¶
func (c *MockExpirableStorageBakeryNewMacaroonCall) Do(f func(context.Context, bakery.Version, []checkers.Caveat, ...bakery.Op) (*bakery.Macaroon, error)) *MockExpirableStorageBakeryNewMacaroonCall
Do rewrite *gomock.Call.Do
func (*MockExpirableStorageBakeryNewMacaroonCall) DoAndReturn ¶
func (c *MockExpirableStorageBakeryNewMacaroonCall) DoAndReturn(f func(context.Context, bakery.Version, []checkers.Caveat, ...bakery.Op) (*bakery.Macaroon, error)) *MockExpirableStorageBakeryNewMacaroonCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockExpirableStorageBakeryNewMacaroonCall) Return ¶
func (c *MockExpirableStorageBakeryNewMacaroonCall) Return(arg0 *bakery.Macaroon, arg1 error) *MockExpirableStorageBakeryNewMacaroonCall
Return rewrite *gomock.Call.Return
type MockExpirableStorageExpireAfterCall ¶
MockExpirableStorageExpireAfterCall wrap *gomock.Call
func (*MockExpirableStorageExpireAfterCall) Do ¶
func (c *MockExpirableStorageExpireAfterCall) Do(f func(time.Duration) macaroon.ExpirableStorage) *MockExpirableStorageExpireAfterCall
Do rewrite *gomock.Call.Do
func (*MockExpirableStorageExpireAfterCall) DoAndReturn ¶
func (c *MockExpirableStorageExpireAfterCall) DoAndReturn(f func(time.Duration) macaroon.ExpirableStorage) *MockExpirableStorageExpireAfterCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockExpirableStorageExpireAfterCall) Return ¶
func (c *MockExpirableStorageExpireAfterCall) Return(arg0 macaroon.ExpirableStorage) *MockExpirableStorageExpireAfterCall
Return rewrite *gomock.Call.Return
type MockExpirableStorageGetCall ¶
MockExpirableStorageGetCall wrap *gomock.Call
func (*MockExpirableStorageGetCall) Do ¶
func (c *MockExpirableStorageGetCall) Do(f func(context.Context, []byte) ([]byte, error)) *MockExpirableStorageGetCall
Do rewrite *gomock.Call.Do
func (*MockExpirableStorageGetCall) DoAndReturn ¶
func (c *MockExpirableStorageGetCall) DoAndReturn(f func(context.Context, []byte) ([]byte, error)) *MockExpirableStorageGetCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockExpirableStorageGetCall) Return ¶
func (c *MockExpirableStorageGetCall) Return(arg0 []byte, arg1 error) *MockExpirableStorageGetCall
Return rewrite *gomock.Call.Return
type MockExpirableStorageMockRecorder ¶
type MockExpirableStorageMockRecorder struct {
// contains filtered or unexported fields
}
MockExpirableStorageMockRecorder is the mock recorder for MockExpirableStorage.
func (*MockExpirableStorageMockRecorder) ExpireAfter ¶
func (mr *MockExpirableStorageMockRecorder) ExpireAfter(arg0 any) *MockExpirableStorageExpireAfterCall
ExpireAfter indicates an expected call of ExpireAfter.
func (*MockExpirableStorageMockRecorder) Get ¶
func (mr *MockExpirableStorageMockRecorder) Get(arg0, arg1 any) *MockExpirableStorageGetCall
Get indicates an expected call of Get.
func (*MockExpirableStorageMockRecorder) RootKey ¶
func (mr *MockExpirableStorageMockRecorder) RootKey(arg0 any) *MockExpirableStorageRootKeyCall
RootKey indicates an expected call of RootKey.
type MockExpirableStorageRootKeyCall ¶
MockExpirableStorageRootKeyCall wrap *gomock.Call
func (*MockExpirableStorageRootKeyCall) Do ¶
func (c *MockExpirableStorageRootKeyCall) Do(f func(context.Context) ([]byte, []byte, error)) *MockExpirableStorageRootKeyCall
Do rewrite *gomock.Call.Do
func (*MockExpirableStorageRootKeyCall) DoAndReturn ¶
func (c *MockExpirableStorageRootKeyCall) DoAndReturn(f func(context.Context) ([]byte, []byte, error)) *MockExpirableStorageRootKeyCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockExpirableStorageRootKeyCall) Return ¶
func (c *MockExpirableStorageRootKeyCall) Return(arg0, arg1 []byte, arg2 error) *MockExpirableStorageRootKeyCall
Return rewrite *gomock.Call.Return
type MockFirstPartyCaveatChecker ¶
type MockFirstPartyCaveatChecker struct {
// contains filtered or unexported fields
}
MockFirstPartyCaveatChecker is a mock of FirstPartyCaveatChecker interface.
func NewMockFirstPartyCaveatChecker ¶
func NewMockFirstPartyCaveatChecker(ctrl *gomock.Controller) *MockFirstPartyCaveatChecker
NewMockFirstPartyCaveatChecker creates a new mock instance.
func (*MockFirstPartyCaveatChecker) CheckFirstPartyCaveat ¶
func (m *MockFirstPartyCaveatChecker) CheckFirstPartyCaveat(arg0 context.Context, arg1 string) error
CheckFirstPartyCaveat mocks base method.
func (*MockFirstPartyCaveatChecker) EXPECT ¶
func (m *MockFirstPartyCaveatChecker) EXPECT() *MockFirstPartyCaveatCheckerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockFirstPartyCaveatChecker) Namespace ¶
func (m *MockFirstPartyCaveatChecker) Namespace() *checkers.Namespace
Namespace mocks base method.
type MockFirstPartyCaveatCheckerCheckFirstPartyCaveatCall ¶
MockFirstPartyCaveatCheckerCheckFirstPartyCaveatCall wrap *gomock.Call
func (*MockFirstPartyCaveatCheckerCheckFirstPartyCaveatCall) Do ¶
func (c *MockFirstPartyCaveatCheckerCheckFirstPartyCaveatCall) Do(f func(context.Context, string) error) *MockFirstPartyCaveatCheckerCheckFirstPartyCaveatCall
Do rewrite *gomock.Call.Do
func (*MockFirstPartyCaveatCheckerCheckFirstPartyCaveatCall) DoAndReturn ¶
func (c *MockFirstPartyCaveatCheckerCheckFirstPartyCaveatCall) DoAndReturn(f func(context.Context, string) error) *MockFirstPartyCaveatCheckerCheckFirstPartyCaveatCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockFirstPartyCaveatCheckerCheckFirstPartyCaveatCall) Return ¶
func (c *MockFirstPartyCaveatCheckerCheckFirstPartyCaveatCall) Return(arg0 error) *MockFirstPartyCaveatCheckerCheckFirstPartyCaveatCall
Return rewrite *gomock.Call.Return
type MockFirstPartyCaveatCheckerMockRecorder ¶
type MockFirstPartyCaveatCheckerMockRecorder struct {
// contains filtered or unexported fields
}
MockFirstPartyCaveatCheckerMockRecorder is the mock recorder for MockFirstPartyCaveatChecker.
func (*MockFirstPartyCaveatCheckerMockRecorder) CheckFirstPartyCaveat ¶
func (mr *MockFirstPartyCaveatCheckerMockRecorder) CheckFirstPartyCaveat(arg0, arg1 any) *MockFirstPartyCaveatCheckerCheckFirstPartyCaveatCall
CheckFirstPartyCaveat indicates an expected call of CheckFirstPartyCaveat.
func (*MockFirstPartyCaveatCheckerMockRecorder) Namespace ¶
func (mr *MockFirstPartyCaveatCheckerMockRecorder) Namespace() *MockFirstPartyCaveatCheckerNamespaceCall
Namespace indicates an expected call of Namespace.
type MockFirstPartyCaveatCheckerNamespaceCall ¶
MockFirstPartyCaveatCheckerNamespaceCall wrap *gomock.Call
func (*MockFirstPartyCaveatCheckerNamespaceCall) Do ¶
func (c *MockFirstPartyCaveatCheckerNamespaceCall) Do(f func() *checkers.Namespace) *MockFirstPartyCaveatCheckerNamespaceCall
Do rewrite *gomock.Call.Do
func (*MockFirstPartyCaveatCheckerNamespaceCall) DoAndReturn ¶
func (c *MockFirstPartyCaveatCheckerNamespaceCall) DoAndReturn(f func() *checkers.Namespace) *MockFirstPartyCaveatCheckerNamespaceCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockFirstPartyCaveatCheckerNamespaceCall) Return ¶
func (c *MockFirstPartyCaveatCheckerNamespaceCall) Return(arg0 *checkers.Namespace) *MockFirstPartyCaveatCheckerNamespaceCall
Return rewrite *gomock.Call.Return
type MockOfferBakeryInterface ¶
type MockOfferBakeryInterface struct {
// contains filtered or unexported fields
}
MockOfferBakeryInterface is a mock of OfferBakeryInterface interface.
func NewMockOfferBakeryInterface ¶
func NewMockOfferBakeryInterface(ctrl *gomock.Controller) *MockOfferBakeryInterface
NewMockOfferBakeryInterface creates a new mock instance.
func (*MockOfferBakeryInterface) CreateDischargeMacaroon ¶
func (m *MockOfferBakeryInterface) CreateDischargeMacaroon(arg0 context.Context, arg1, arg2 string, arg3, arg4 map[string]string, arg5 bakery.Op, arg6 bakery.Version) (*bakery.Macaroon, error)
CreateDischargeMacaroon mocks base method.
func (*MockOfferBakeryInterface) EXPECT ¶
func (m *MockOfferBakeryInterface) EXPECT() *MockOfferBakeryInterfaceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockOfferBakeryInterface) GetConsumeOfferCaveats ¶
func (m *MockOfferBakeryInterface) GetConsumeOfferCaveats(arg0, arg1, arg2 string) []checkers.Caveat
GetConsumeOfferCaveats mocks base method.
func (*MockOfferBakeryInterface) InferDeclaredFromMacaroon ¶
func (m *MockOfferBakeryInterface) InferDeclaredFromMacaroon(arg0 macaroon.Slice, arg1 map[string]string) map[string]string
InferDeclaredFromMacaroon mocks base method.
func (*MockOfferBakeryInterface) RefreshDischargeURL ¶
func (m *MockOfferBakeryInterface) RefreshDischargeURL(arg0 context.Context, arg1 string) (string, error)
RefreshDischargeURL mocks base method.
type MockOfferBakeryInterfaceCreateDischargeMacaroonCall ¶
MockOfferBakeryInterfaceCreateDischargeMacaroonCall wrap *gomock.Call
func (*MockOfferBakeryInterfaceCreateDischargeMacaroonCall) Do ¶
func (c *MockOfferBakeryInterfaceCreateDischargeMacaroonCall) Do(f func(context.Context, string, string, map[string]string, map[string]string, bakery.Op, bakery.Version) (*bakery.Macaroon, error)) *MockOfferBakeryInterfaceCreateDischargeMacaroonCall
Do rewrite *gomock.Call.Do
func (*MockOfferBakeryInterfaceCreateDischargeMacaroonCall) DoAndReturn ¶
func (c *MockOfferBakeryInterfaceCreateDischargeMacaroonCall) DoAndReturn(f func(context.Context, string, string, map[string]string, map[string]string, bakery.Op, bakery.Version) (*bakery.Macaroon, error)) *MockOfferBakeryInterfaceCreateDischargeMacaroonCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockOfferBakeryInterfaceCreateDischargeMacaroonCall) Return ¶
func (c *MockOfferBakeryInterfaceCreateDischargeMacaroonCall) Return(arg0 *bakery.Macaroon, arg1 error) *MockOfferBakeryInterfaceCreateDischargeMacaroonCall
Return rewrite *gomock.Call.Return
type MockOfferBakeryInterfaceGetConsumeOfferCaveatsCall ¶
MockOfferBakeryInterfaceGetConsumeOfferCaveatsCall wrap *gomock.Call
func (*MockOfferBakeryInterfaceGetConsumeOfferCaveatsCall) Do ¶
func (c *MockOfferBakeryInterfaceGetConsumeOfferCaveatsCall) Do(f func(string, string, string) []checkers.Caveat) *MockOfferBakeryInterfaceGetConsumeOfferCaveatsCall
Do rewrite *gomock.Call.Do
func (*MockOfferBakeryInterfaceGetConsumeOfferCaveatsCall) DoAndReturn ¶
func (c *MockOfferBakeryInterfaceGetConsumeOfferCaveatsCall) DoAndReturn(f func(string, string, string) []checkers.Caveat) *MockOfferBakeryInterfaceGetConsumeOfferCaveatsCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockOfferBakeryInterfaceGetConsumeOfferCaveatsCall) Return ¶
func (c *MockOfferBakeryInterfaceGetConsumeOfferCaveatsCall) Return(arg0 []checkers.Caveat) *MockOfferBakeryInterfaceGetConsumeOfferCaveatsCall
Return rewrite *gomock.Call.Return
type MockOfferBakeryInterfaceInferDeclaredFromMacaroonCall ¶
MockOfferBakeryInterfaceInferDeclaredFromMacaroonCall wrap *gomock.Call
func (*MockOfferBakeryInterfaceInferDeclaredFromMacaroonCall) Do ¶
func (c *MockOfferBakeryInterfaceInferDeclaredFromMacaroonCall) Do(f func(macaroon.Slice, map[string]string) map[string]string) *MockOfferBakeryInterfaceInferDeclaredFromMacaroonCall
Do rewrite *gomock.Call.Do
func (*MockOfferBakeryInterfaceInferDeclaredFromMacaroonCall) DoAndReturn ¶
func (c *MockOfferBakeryInterfaceInferDeclaredFromMacaroonCall) DoAndReturn(f func(macaroon.Slice, map[string]string) map[string]string) *MockOfferBakeryInterfaceInferDeclaredFromMacaroonCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockOfferBakeryInterfaceInferDeclaredFromMacaroonCall) Return ¶
func (c *MockOfferBakeryInterfaceInferDeclaredFromMacaroonCall) Return(arg0 map[string]string) *MockOfferBakeryInterfaceInferDeclaredFromMacaroonCall
Return rewrite *gomock.Call.Return
type MockOfferBakeryInterfaceMockRecorder ¶
type MockOfferBakeryInterfaceMockRecorder struct {
// contains filtered or unexported fields
}
MockOfferBakeryInterfaceMockRecorder is the mock recorder for MockOfferBakeryInterface.
func (*MockOfferBakeryInterfaceMockRecorder) CreateDischargeMacaroon ¶
func (mr *MockOfferBakeryInterfaceMockRecorder) CreateDischargeMacaroon(arg0, arg1, arg2, arg3, arg4, arg5, arg6 any) *MockOfferBakeryInterfaceCreateDischargeMacaroonCall
CreateDischargeMacaroon indicates an expected call of CreateDischargeMacaroon.
func (*MockOfferBakeryInterfaceMockRecorder) GetConsumeOfferCaveats ¶
func (mr *MockOfferBakeryInterfaceMockRecorder) GetConsumeOfferCaveats(arg0, arg1, arg2 any) *MockOfferBakeryInterfaceGetConsumeOfferCaveatsCall
GetConsumeOfferCaveats indicates an expected call of GetConsumeOfferCaveats.
func (*MockOfferBakeryInterfaceMockRecorder) InferDeclaredFromMacaroon ¶
func (mr *MockOfferBakeryInterfaceMockRecorder) InferDeclaredFromMacaroon(arg0, arg1 any) *MockOfferBakeryInterfaceInferDeclaredFromMacaroonCall
InferDeclaredFromMacaroon indicates an expected call of InferDeclaredFromMacaroon.
func (*MockOfferBakeryInterfaceMockRecorder) RefreshDischargeURL ¶
func (mr *MockOfferBakeryInterfaceMockRecorder) RefreshDischargeURL(arg0, arg1 any) *MockOfferBakeryInterfaceRefreshDischargeURLCall
RefreshDischargeURL indicates an expected call of RefreshDischargeURL.
type MockOfferBakeryInterfaceRefreshDischargeURLCall ¶
MockOfferBakeryInterfaceRefreshDischargeURLCall wrap *gomock.Call
func (*MockOfferBakeryInterfaceRefreshDischargeURLCall) Do ¶
func (c *MockOfferBakeryInterfaceRefreshDischargeURLCall) Do(f func(context.Context, string) (string, error)) *MockOfferBakeryInterfaceRefreshDischargeURLCall
Do rewrite *gomock.Call.Do
func (*MockOfferBakeryInterfaceRefreshDischargeURLCall) DoAndReturn ¶
func (c *MockOfferBakeryInterfaceRefreshDischargeURLCall) DoAndReturn(f func(context.Context, string) (string, error)) *MockOfferBakeryInterfaceRefreshDischargeURLCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockOfferBakeryInterfaceRefreshDischargeURLCall) Return ¶
func (c *MockOfferBakeryInterfaceRefreshDischargeURLCall) Return(arg0 string, arg1 error) *MockOfferBakeryInterfaceRefreshDischargeURLCall
Return rewrite *gomock.Call.Return
type MockOfferBakeryInterfacegetBakeryCall ¶
MockOfferBakeryInterfacegetBakeryCall wrap *gomock.Call
func (*MockOfferBakeryInterfacegetBakeryCall) Do ¶
func (c *MockOfferBakeryInterfacegetBakeryCall) Do(f func() authentication.ExpirableStorageBakery) *MockOfferBakeryInterfacegetBakeryCall
Do rewrite *gomock.Call.Do
func (*MockOfferBakeryInterfacegetBakeryCall) DoAndReturn ¶
func (c *MockOfferBakeryInterfacegetBakeryCall) DoAndReturn(f func() authentication.ExpirableStorageBakery) *MockOfferBakeryInterfacegetBakeryCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockOfferBakeryInterfacegetBakeryCall) Return ¶
func (c *MockOfferBakeryInterfacegetBakeryCall) Return(arg0 authentication.ExpirableStorageBakery) *MockOfferBakeryInterfacegetBakeryCall
Return rewrite *gomock.Call.Return
type MockOfferBakeryInterfacegetClockCall ¶
MockOfferBakeryInterfacegetClockCall wrap *gomock.Call
func (*MockOfferBakeryInterfacegetClockCall) Do ¶
func (c *MockOfferBakeryInterfacegetClockCall) Do(f func() clock.Clock) *MockOfferBakeryInterfacegetClockCall
Do rewrite *gomock.Call.Do
func (*MockOfferBakeryInterfacegetClockCall) DoAndReturn ¶
func (c *MockOfferBakeryInterfacegetClockCall) DoAndReturn(f func() clock.Clock) *MockOfferBakeryInterfacegetClockCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockOfferBakeryInterfacegetClockCall) Return ¶
func (c *MockOfferBakeryInterfacegetClockCall) Return(arg0 clock.Clock) *MockOfferBakeryInterfacegetClockCall
Return rewrite *gomock.Call.Return
type MockOfferBakeryInterfacesetClockCall ¶
MockOfferBakeryInterfacesetClockCall wrap *gomock.Call
func (*MockOfferBakeryInterfacesetClockCall) Do ¶
func (c *MockOfferBakeryInterfacesetClockCall) Do(f func(clock.Clock)) *MockOfferBakeryInterfacesetClockCall
Do rewrite *gomock.Call.Do
func (*MockOfferBakeryInterfacesetClockCall) DoAndReturn ¶
func (c *MockOfferBakeryInterfacesetClockCall) DoAndReturn(f func(clock.Clock)) *MockOfferBakeryInterfacesetClockCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockOfferBakeryInterfacesetClockCall) Return ¶
func (c *MockOfferBakeryInterfacesetClockCall) Return() *MockOfferBakeryInterfacesetClockCall
Return rewrite *gomock.Call.Return
type MockRoundTripper ¶
type MockRoundTripper struct {
// contains filtered or unexported fields
}
MockRoundTripper is a mock of RoundTripper interface.
func NewMockRoundTripper ¶
func NewMockRoundTripper(ctrl *gomock.Controller) *MockRoundTripper
NewMockRoundTripper creates a new mock instance.
func (*MockRoundTripper) EXPECT ¶
func (m *MockRoundTripper) EXPECT() *MockRoundTripperMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockRoundTripperMockRecorder ¶
type MockRoundTripperMockRecorder struct {
// contains filtered or unexported fields
}
MockRoundTripperMockRecorder is the mock recorder for MockRoundTripper.
func (*MockRoundTripperMockRecorder) RoundTrip ¶
func (mr *MockRoundTripperMockRecorder) RoundTrip(arg0 any) *MockRoundTripperRoundTripCall
RoundTrip indicates an expected call of RoundTrip.
type MockRoundTripperRoundTripCall ¶
MockRoundTripperRoundTripCall wrap *gomock.Call
func (*MockRoundTripperRoundTripCall) Do ¶
func (c *MockRoundTripperRoundTripCall) Do(f func(*http.Request) (*http.Response, error)) *MockRoundTripperRoundTripCall
Do rewrite *gomock.Call.Do
func (*MockRoundTripperRoundTripCall) DoAndReturn ¶
func (c *MockRoundTripperRoundTripCall) DoAndReturn(f func(*http.Request) (*http.Response, error)) *MockRoundTripperRoundTripCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockRoundTripperRoundTripCall) Return ¶
func (c *MockRoundTripperRoundTripCall) Return(arg0 *http.Response, arg1 error) *MockRoundTripperRoundTripCall
Return rewrite *gomock.Call.Return