Documentation
¶
Index ¶
- type EntitlementsOnCreate
- type EntitlementsOnDelete
- type EntitlementsOnList
- type MockEcosystemsClients
- type MockEntitlementsClient
- func (m MockEntitlementsClient) Create(_ context.Context, given *ecosystems.CreateEntitlementRequest, ...) (*ecosystems.Entitlement, error)
- func (m MockEntitlementsClient) Delete(_ context.Context, given *ecosystems.DeleteEntitlementRequest, ...) (*emptypb.Empty, error)
- func (m MockEntitlementsClient) List(_ context.Context, given *ecosystems.EntitlementFilter, _ ...grpc.CallOption) (*ecosystems.EntitlementList, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EntitlementsOnCreate ¶
type EntitlementsOnCreate struct { Given *ecosystems.CreateEntitlementRequest Created *ecosystems.Entitlement Error error }
type EntitlementsOnDelete ¶
type EntitlementsOnDelete struct { Given *ecosystems.DeleteEntitlementRequest Error error }
type EntitlementsOnList ¶
type EntitlementsOnList struct { Given *ecosystems.EntitlementFilter List *ecosystems.EntitlementList Error error }
type MockEcosystemsClients ¶
type MockEcosystemsClients struct { EntitlementsClient MockEntitlementsClient OnClose error }
func (MockEcosystemsClients) Close ¶
func (m MockEcosystemsClients) Close() error
func (MockEcosystemsClients) Entitlements ¶
func (m MockEcosystemsClients) Entitlements() ecosystems.EntitlementsClient
type MockEntitlementsClient ¶
type MockEntitlementsClient struct { ecosystems.EntitlementsClient OnCreate []EntitlementsOnCreate OnDelete []EntitlementsOnDelete OnList []EntitlementsOnList }
func (MockEntitlementsClient) Create ¶
func (m MockEntitlementsClient) Create(_ context.Context, given *ecosystems.CreateEntitlementRequest, _ ...grpc.CallOption) (*ecosystems.Entitlement, error)
func (MockEntitlementsClient) Delete ¶
func (m MockEntitlementsClient) Delete(_ context.Context, given *ecosystems.DeleteEntitlementRequest, _ ...grpc.CallOption) (*emptypb.Empty, error)
func (MockEntitlementsClient) List ¶
func (m MockEntitlementsClient) List(_ context.Context, given *ecosystems.EntitlementFilter, _ ...grpc.CallOption) (*ecosystems.EntitlementList, error)
Click to show internal directories.
Click to hide internal directories.