mocks

package
v0.0.0-...-f88c608 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2025 License: AGPL-3.0 Imports: 20 Imported by: 0

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

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

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

type MockAccessServiceReadUserAccessLevelForTargetCall struct {
	*gomock.Call
}

MockAccessServiceReadUserAccessLevelForTargetCall wrap *gomock.Call

func (*MockAccessServiceReadUserAccessLevelForTargetCall) Do

Do rewrite *gomock.Call.Do

func (*MockAccessServiceReadUserAccessLevelForTargetCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockAccessServiceReadUserAccessLevelForTargetCall) Return

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

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

type MockApplicationServiceGetApplicationDisplayStatusCall struct {
	*gomock.Call
}

MockApplicationServiceGetApplicationDisplayStatusCall wrap *gomock.Call

func (*MockApplicationServiceGetApplicationDisplayStatusCall) Do

Do rewrite *gomock.Call.Do

func (*MockApplicationServiceGetApplicationDisplayStatusCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockApplicationServiceGetApplicationDisplayStatusCall) Return

Return rewrite *gomock.Call.Return

type MockApplicationServiceGetApplicationIDByNameCall

type MockApplicationServiceGetApplicationIDByNameCall struct {
	*gomock.Call
}

MockApplicationServiceGetApplicationIDByNameCall wrap *gomock.Call

func (*MockApplicationServiceGetApplicationIDByNameCall) Do

Do rewrite *gomock.Call.Do

func (*MockApplicationServiceGetApplicationIDByNameCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockApplicationServiceGetApplicationIDByNameCall) Return

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

GetApplicationDisplayStatus indicates an expected call of GetApplicationDisplayStatus.

func (*MockApplicationServiceMockRecorder) GetApplicationIDByName

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

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

type MockBackendAddRelationCall struct {
	*gomock.Call
}

MockBackendAddRelationCall wrap *gomock.Call

func (*MockBackendAddRelationCall) Do

Do rewrite *gomock.Call.Do

func (*MockBackendAddRelationCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockBackendAddRelationCall) Return

Return rewrite *gomock.Call.Return

type MockBackendAddRemoteApplicationCall

type MockBackendAddRemoteApplicationCall struct {
	*gomock.Call
}

MockBackendAddRemoteApplicationCall wrap *gomock.Call

func (*MockBackendAddRemoteApplicationCall) Do

Do rewrite *gomock.Call.Do

func (*MockBackendAddRemoteApplicationCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockBackendAddRemoteApplicationCall) Return

Return rewrite *gomock.Call.Return

type MockBackendAllModelUUIDsCall

type MockBackendAllModelUUIDsCall struct {
	*gomock.Call
}

MockBackendAllModelUUIDsCall wrap *gomock.Call

func (*MockBackendAllModelUUIDsCall) Do

Do rewrite *gomock.Call.Do

func (*MockBackendAllModelUUIDsCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockBackendAllModelUUIDsCall) Return

Return rewrite *gomock.Call.Return

type MockBackendApplicationCall

type MockBackendApplicationCall struct {
	*gomock.Call
}

MockBackendApplicationCall wrap *gomock.Call

func (*MockBackendApplicationCall) Do

Do rewrite *gomock.Call.Do

func (*MockBackendApplicationCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockBackendApplicationCall) Return

Return rewrite *gomock.Call.Return

type MockBackendApplicationOfferForUUIDCall

type MockBackendApplicationOfferForUUIDCall struct {
	*gomock.Call
}

MockBackendApplicationOfferForUUIDCall wrap *gomock.Call

func (*MockBackendApplicationOfferForUUIDCall) Do

Do rewrite *gomock.Call.Do

func (*MockBackendApplicationOfferForUUIDCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockBackendApplicationOfferForUUIDCall) Return

Return rewrite *gomock.Call.Return

type MockBackendApplyOperationCall

type MockBackendApplyOperationCall struct {
	*gomock.Call
}

MockBackendApplyOperationCall wrap *gomock.Call

func (*MockBackendApplyOperationCall) Do

Do rewrite *gomock.Call.Do

func (*MockBackendApplyOperationCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockBackendApplyOperationCall) Return

Return rewrite *gomock.Call.Return

type MockBackendControllerTagCall

type MockBackendControllerTagCall struct {
	*gomock.Call
}

MockBackendControllerTagCall wrap *gomock.Call

func (*MockBackendControllerTagCall) Do

Do rewrite *gomock.Call.Do

func (*MockBackendControllerTagCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockBackendControllerTagCall) Return

Return rewrite *gomock.Call.Return

type MockBackendEndpointsRelationCall

type MockBackendEndpointsRelationCall struct {
	*gomock.Call
}

MockBackendEndpointsRelationCall wrap *gomock.Call

func (*MockBackendEndpointsRelationCall) Do

Do rewrite *gomock.Call.Do

func (*MockBackendEndpointsRelationCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockBackendEndpointsRelationCall) Return

Return rewrite *gomock.Call.Return

type MockBackendExportLocalEntityCall

type MockBackendExportLocalEntityCall struct {
	*gomock.Call
}

MockBackendExportLocalEntityCall wrap *gomock.Call

func (*MockBackendExportLocalEntityCall) Do

Do rewrite *gomock.Call.Do

func (*MockBackendExportLocalEntityCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockBackendExportLocalEntityCall) Return

Return rewrite *gomock.Call.Return

type MockBackendGetRemoteEntityCall

type MockBackendGetRemoteEntityCall struct {
	*gomock.Call
}

MockBackendGetRemoteEntityCall wrap *gomock.Call

func (*MockBackendGetRemoteEntityCall) Do

Do rewrite *gomock.Call.Do

func (*MockBackendGetRemoteEntityCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockBackendGetRemoteEntityCall) Return

Return rewrite *gomock.Call.Return

type MockBackendGetTokenCall

type MockBackendGetTokenCall struct {
	*gomock.Call
}

MockBackendGetTokenCall wrap *gomock.Call

func (*MockBackendGetTokenCall) Do

Do rewrite *gomock.Call.Do

func (*MockBackendGetTokenCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockBackendGetTokenCall) Return

Return rewrite *gomock.Call.Return

type MockBackendImportRemoteEntityCall

type MockBackendImportRemoteEntityCall struct {
	*gomock.Call
}

MockBackendImportRemoteEntityCall wrap *gomock.Call

func (*MockBackendImportRemoteEntityCall) Do

Do rewrite *gomock.Call.Do

func (*MockBackendImportRemoteEntityCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockBackendImportRemoteEntityCall) Return

Return rewrite *gomock.Call.Return

type MockBackendIngressNetworksCall

type MockBackendIngressNetworksCall struct {
	*gomock.Call
}

MockBackendIngressNetworksCall wrap *gomock.Call

func (*MockBackendIngressNetworksCall) Do

Do rewrite *gomock.Call.Do

func (*MockBackendIngressNetworksCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockBackendIngressNetworksCall) Return

Return rewrite *gomock.Call.Return

type MockBackendKeyRelationCall

type MockBackendKeyRelationCall struct {
	*gomock.Call
}

MockBackendKeyRelationCall wrap *gomock.Call

func (*MockBackendKeyRelationCall) Do

Do rewrite *gomock.Call.Do

func (*MockBackendKeyRelationCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockBackendKeyRelationCall) Return

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

AllModelUUIDs indicates an expected call of AllModelUUIDs.

func (*MockBackendMockRecorder) Application

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

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

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

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

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

type MockBackendOfferConnectionForRelationCall struct {
	*gomock.Call
}

MockBackendOfferConnectionForRelationCall wrap *gomock.Call

func (*MockBackendOfferConnectionForRelationCall) Do

Do rewrite *gomock.Call.Do

func (*MockBackendOfferConnectionForRelationCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockBackendOfferConnectionForRelationCall) Return

Return rewrite *gomock.Call.Return

type MockBackendOfferUUIDForRelationCall

type MockBackendOfferUUIDForRelationCall struct {
	*gomock.Call
}

MockBackendOfferUUIDForRelationCall wrap *gomock.Call

func (*MockBackendOfferUUIDForRelationCall) Do

Do rewrite *gomock.Call.Do

func (*MockBackendOfferUUIDForRelationCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockBackendOfferUUIDForRelationCall) Return

Return rewrite *gomock.Call.Return

type MockBackendRemoteApplicationCall

type MockBackendRemoteApplicationCall struct {
	*gomock.Call
}

MockBackendRemoteApplicationCall wrap *gomock.Call

func (*MockBackendRemoteApplicationCall) Do

Do rewrite *gomock.Call.Do

func (*MockBackendRemoteApplicationCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockBackendRemoteApplicationCall) Return

Return rewrite *gomock.Call.Return

type MockBackendSaveIngressNetworksCall

type MockBackendSaveIngressNetworksCall struct {
	*gomock.Call
}

MockBackendSaveIngressNetworksCall wrap *gomock.Call

func (*MockBackendSaveIngressNetworksCall) Do

Do rewrite *gomock.Call.Do

func (*MockBackendSaveIngressNetworksCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockBackendSaveIngressNetworksCall) Return

Return rewrite *gomock.Call.Return

type MockBackendWatchOfferCall

type MockBackendWatchOfferCall struct {
	*gomock.Call
}

MockBackendWatchOfferCall wrap *gomock.Call

func (*MockBackendWatchOfferCall) Do

Do rewrite *gomock.Call.Do

func (*MockBackendWatchOfferCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockBackendWatchOfferCall) Return

Return rewrite *gomock.Call.Return

type MockBackendWatchOfferStatusCall

type MockBackendWatchOfferStatusCall struct {
	*gomock.Call
}

MockBackendWatchOfferStatusCall wrap *gomock.Call

func (*MockBackendWatchOfferStatusCall) Do

Do rewrite *gomock.Call.Do

func (*MockBackendWatchOfferStatusCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockBackendWatchOfferStatusCall) Return

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

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

type MockBakeryConfigServiceGetExternalUsersThirdPartyKeyCall struct {
	*gomock.Call
}

MockBakeryConfigServiceGetExternalUsersThirdPartyKeyCall wrap *gomock.Call

func (*MockBakeryConfigServiceGetExternalUsersThirdPartyKeyCall) Do

Do rewrite *gomock.Call.Do

func (*MockBakeryConfigServiceGetExternalUsersThirdPartyKeyCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockBakeryConfigServiceGetExternalUsersThirdPartyKeyCall) Return

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

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

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

func (*MockExpirableStorage) ExpireAfter

ExpireAfter mocks base method.

func (*MockExpirableStorage) Get

func (m *MockExpirableStorage) Get(arg0 context.Context, arg1 []byte) ([]byte, error)

Get mocks base method.

func (*MockExpirableStorage) RootKey

func (m *MockExpirableStorage) RootKey(arg0 context.Context) ([]byte, []byte, error)

RootKey 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

Auth mocks base method.

func (*MockExpirableStorageBakery) EXPECT

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

func (*MockExpirableStorageBakery) ExpireStorageAfter

ExpireStorageAfter mocks base method.

func (*MockExpirableStorageBakery) NewMacaroon

func (m *MockExpirableStorageBakery) NewMacaroon(arg0 context.Context, arg1 bakery.Version, arg2 []checkers.Caveat, arg3 ...bakery.Op) (*bakery.Macaroon, error)

NewMacaroon mocks base method.

type MockExpirableStorageBakeryAuthCall

type MockExpirableStorageBakeryAuthCall struct {
	*gomock.Call
}

MockExpirableStorageBakeryAuthCall wrap *gomock.Call

func (*MockExpirableStorageBakeryAuthCall) Do

Do rewrite *gomock.Call.Do

func (*MockExpirableStorageBakeryAuthCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockExpirableStorageBakeryAuthCall) Return

Return rewrite *gomock.Call.Return

type MockExpirableStorageBakeryExpireStorageAfterCall

type MockExpirableStorageBakeryExpireStorageAfterCall struct {
	*gomock.Call
}

MockExpirableStorageBakeryExpireStorageAfterCall wrap *gomock.Call

func (*MockExpirableStorageBakeryExpireStorageAfterCall) Do

Do rewrite *gomock.Call.Do

func (*MockExpirableStorageBakeryExpireStorageAfterCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockExpirableStorageBakeryExpireStorageAfterCall) Return

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

Auth indicates an expected call of Auth.

func (*MockExpirableStorageBakeryMockRecorder) ExpireStorageAfter

ExpireStorageAfter indicates an expected call of ExpireStorageAfter.

func (*MockExpirableStorageBakeryMockRecorder) NewMacaroon

NewMacaroon indicates an expected call of NewMacaroon.

type MockExpirableStorageBakeryNewMacaroonCall

type MockExpirableStorageBakeryNewMacaroonCall struct {
	*gomock.Call
}

MockExpirableStorageBakeryNewMacaroonCall wrap *gomock.Call

func (*MockExpirableStorageBakeryNewMacaroonCall) Do

Do rewrite *gomock.Call.Do

func (*MockExpirableStorageBakeryNewMacaroonCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockExpirableStorageBakeryNewMacaroonCall) Return

Return rewrite *gomock.Call.Return

type MockExpirableStorageExpireAfterCall

type MockExpirableStorageExpireAfterCall struct {
	*gomock.Call
}

MockExpirableStorageExpireAfterCall wrap *gomock.Call

func (*MockExpirableStorageExpireAfterCall) Do

Do rewrite *gomock.Call.Do

func (*MockExpirableStorageExpireAfterCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockExpirableStorageExpireAfterCall) Return

Return rewrite *gomock.Call.Return

type MockExpirableStorageGetCall

type MockExpirableStorageGetCall struct {
	*gomock.Call
}

MockExpirableStorageGetCall wrap *gomock.Call

func (*MockExpirableStorageGetCall) Do

Do rewrite *gomock.Call.Do

func (*MockExpirableStorageGetCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockExpirableStorageGetCall) Return

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

ExpireAfter indicates an expected call of ExpireAfter.

func (*MockExpirableStorageMockRecorder) Get

Get indicates an expected call of Get.

func (*MockExpirableStorageMockRecorder) RootKey

RootKey indicates an expected call of RootKey.

type MockExpirableStorageRootKeyCall

type MockExpirableStorageRootKeyCall struct {
	*gomock.Call
}

MockExpirableStorageRootKeyCall wrap *gomock.Call

func (*MockExpirableStorageRootKeyCall) Do

Do rewrite *gomock.Call.Do

func (*MockExpirableStorageRootKeyCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockExpirableStorageRootKeyCall) Return

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

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

func (*MockFirstPartyCaveatChecker) Namespace

Namespace mocks base method.

type MockFirstPartyCaveatCheckerCheckFirstPartyCaveatCall

type MockFirstPartyCaveatCheckerCheckFirstPartyCaveatCall struct {
	*gomock.Call
}

MockFirstPartyCaveatCheckerCheckFirstPartyCaveatCall wrap *gomock.Call

func (*MockFirstPartyCaveatCheckerCheckFirstPartyCaveatCall) Do

Do rewrite *gomock.Call.Do

func (*MockFirstPartyCaveatCheckerCheckFirstPartyCaveatCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockFirstPartyCaveatCheckerCheckFirstPartyCaveatCall) Return

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

CheckFirstPartyCaveat indicates an expected call of CheckFirstPartyCaveat.

func (*MockFirstPartyCaveatCheckerMockRecorder) Namespace

Namespace indicates an expected call of Namespace.

type MockFirstPartyCaveatCheckerNamespaceCall

type MockFirstPartyCaveatCheckerNamespaceCall struct {
	*gomock.Call
}

MockFirstPartyCaveatCheckerNamespaceCall wrap *gomock.Call

func (*MockFirstPartyCaveatCheckerNamespaceCall) Do

Do rewrite *gomock.Call.Do

func (*MockFirstPartyCaveatCheckerNamespaceCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockFirstPartyCaveatCheckerNamespaceCall) Return

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

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

type MockOfferBakeryInterfaceCreateDischargeMacaroonCall struct {
	*gomock.Call
}

MockOfferBakeryInterfaceCreateDischargeMacaroonCall wrap *gomock.Call

func (*MockOfferBakeryInterfaceCreateDischargeMacaroonCall) Do

Do rewrite *gomock.Call.Do

func (*MockOfferBakeryInterfaceCreateDischargeMacaroonCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockOfferBakeryInterfaceCreateDischargeMacaroonCall) Return

Return rewrite *gomock.Call.Return

type MockOfferBakeryInterfaceGetConsumeOfferCaveatsCall

type MockOfferBakeryInterfaceGetConsumeOfferCaveatsCall struct {
	*gomock.Call
}

MockOfferBakeryInterfaceGetConsumeOfferCaveatsCall wrap *gomock.Call

func (*MockOfferBakeryInterfaceGetConsumeOfferCaveatsCall) Do

Do rewrite *gomock.Call.Do

func (*MockOfferBakeryInterfaceGetConsumeOfferCaveatsCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockOfferBakeryInterfaceGetConsumeOfferCaveatsCall) Return

Return rewrite *gomock.Call.Return

type MockOfferBakeryInterfaceInferDeclaredFromMacaroonCall

type MockOfferBakeryInterfaceInferDeclaredFromMacaroonCall struct {
	*gomock.Call
}

MockOfferBakeryInterfaceInferDeclaredFromMacaroonCall wrap *gomock.Call

func (*MockOfferBakeryInterfaceInferDeclaredFromMacaroonCall) Do

Do rewrite *gomock.Call.Do

func (*MockOfferBakeryInterfaceInferDeclaredFromMacaroonCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockOfferBakeryInterfaceInferDeclaredFromMacaroonCall) Return

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

GetConsumeOfferCaveats indicates an expected call of GetConsumeOfferCaveats.

func (*MockOfferBakeryInterfaceMockRecorder) InferDeclaredFromMacaroon

InferDeclaredFromMacaroon indicates an expected call of InferDeclaredFromMacaroon.

func (*MockOfferBakeryInterfaceMockRecorder) RefreshDischargeURL

RefreshDischargeURL indicates an expected call of RefreshDischargeURL.

type MockOfferBakeryInterfaceRefreshDischargeURLCall

type MockOfferBakeryInterfaceRefreshDischargeURLCall struct {
	*gomock.Call
}

MockOfferBakeryInterfaceRefreshDischargeURLCall wrap *gomock.Call

func (*MockOfferBakeryInterfaceRefreshDischargeURLCall) Do

Do rewrite *gomock.Call.Do

func (*MockOfferBakeryInterfaceRefreshDischargeURLCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockOfferBakeryInterfaceRefreshDischargeURLCall) Return

Return rewrite *gomock.Call.Return

type MockOfferBakeryInterfacegetBakeryCall

type MockOfferBakeryInterfacegetBakeryCall struct {
	*gomock.Call
}

MockOfferBakeryInterfacegetBakeryCall wrap *gomock.Call

func (*MockOfferBakeryInterfacegetBakeryCall) Do

Do rewrite *gomock.Call.Do

func (*MockOfferBakeryInterfacegetBakeryCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockOfferBakeryInterfacegetBakeryCall) Return

Return rewrite *gomock.Call.Return

type MockOfferBakeryInterfacegetClockCall

type MockOfferBakeryInterfacegetClockCall struct {
	*gomock.Call
}

MockOfferBakeryInterfacegetClockCall wrap *gomock.Call

func (*MockOfferBakeryInterfacegetClockCall) Do

Do rewrite *gomock.Call.Do

func (*MockOfferBakeryInterfacegetClockCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockOfferBakeryInterfacegetClockCall) Return

Return rewrite *gomock.Call.Return

type MockOfferBakeryInterfacesetClockCall

type MockOfferBakeryInterfacesetClockCall struct {
	*gomock.Call
}

MockOfferBakeryInterfacesetClockCall wrap *gomock.Call

func (*MockOfferBakeryInterfacesetClockCall) Do

Do rewrite *gomock.Call.Do

func (*MockOfferBakeryInterfacesetClockCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockOfferBakeryInterfacesetClockCall) Return

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

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

func (*MockRoundTripper) RoundTrip

func (m *MockRoundTripper) RoundTrip(arg0 *http.Request) (*http.Response, error)

RoundTrip mocks base method.

type MockRoundTripperMockRecorder

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

MockRoundTripperMockRecorder is the mock recorder for MockRoundTripper.

func (*MockRoundTripperMockRecorder) RoundTrip

RoundTrip indicates an expected call of RoundTrip.

type MockRoundTripperRoundTripCall

type MockRoundTripperRoundTripCall struct {
	*gomock.Call
}

MockRoundTripperRoundTripCall wrap *gomock.Call

func (*MockRoundTripperRoundTripCall) Do

Do rewrite *gomock.Call.Do

func (*MockRoundTripperRoundTripCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockRoundTripperRoundTripCall) Return

Return rewrite *gomock.Call.Return

Jump to

Keyboard shortcuts

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