Documentation ¶
Overview ¶
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.
Index ¶
- type MockAPI
- func (m *MockAPI) EXPECT() *MockAPIMockRecorder
- func (m *MockAPI) GetAPIKey() string
- func (m *MockAPI) GetAuthenticatorAPIKeyDetails(ctx context.Context) (*iamidentityv1.APIKey, error)
- func (m *MockAPI) GetDNSInstancePermittedNetworks(ctx context.Context, dnsID, dnsZone string) ([]string, error)
- func (m *MockAPI) GetDNSRecordsByName(ctx context.Context, crnstr, zoneID, recordName string, ...) ([]powervs.DNSRecordResponse, error)
- func (m *MockAPI) GetDNSZoneIDByName(ctx context.Context, name string, publish types.PublishingStrategy) (string, error)
- func (m *MockAPI) GetDNSZones(ctx context.Context, publish types.PublishingStrategy) ([]powervs.DNSZoneResponse, error)
- func (m *MockAPI) GetPublicGatewayByVPC(ctx context.Context, vpcName string) (*vpcv1.PublicGateway, error)
- func (m *MockAPI) GetSubnetByName(ctx context.Context, subnetName, region string) (*vpcv1.Subnet, error)
- func (m *MockAPI) GetVPCByName(ctx context.Context, vpcName string) (*vpcv1.VPC, error)
- func (m *MockAPI) GetVPCs(ctx context.Context, region string) ([]vpcv1.VPC, error)
- func (m *MockAPI) ListResourceGroups(ctx context.Context) (*resourcemanagerv2.ResourceGroupList, error)
- func (m *MockAPI) ListServiceInstances(ctx context.Context) ([]string, error)
- func (m *MockAPI) SetVPCServiceURLForRegion(ctx context.Context, region string) error
- type MockAPIMockRecorder
- func (mr *MockAPIMockRecorder) GetAPIKey() *gomock.Call
- func (mr *MockAPIMockRecorder) GetAuthenticatorAPIKeyDetails(ctx interface{}) *gomock.Call
- func (mr *MockAPIMockRecorder) GetDNSInstancePermittedNetworks(ctx, dnsID, dnsZone interface{}) *gomock.Call
- func (mr *MockAPIMockRecorder) GetDNSRecordsByName(ctx, crnstr, zoneID, recordName, publish interface{}) *gomock.Call
- func (mr *MockAPIMockRecorder) GetDNSZoneIDByName(ctx, name, publish interface{}) *gomock.Call
- func (mr *MockAPIMockRecorder) GetDNSZones(ctx, publish interface{}) *gomock.Call
- func (mr *MockAPIMockRecorder) GetPublicGatewayByVPC(ctx, vpcName interface{}) *gomock.Call
- func (mr *MockAPIMockRecorder) GetSubnetByName(ctx, subnetName, region interface{}) *gomock.Call
- func (mr *MockAPIMockRecorder) GetVPCByName(ctx, vpcName interface{}) *gomock.Call
- func (mr *MockAPIMockRecorder) GetVPCs(ctx, region interface{}) *gomock.Call
- func (mr *MockAPIMockRecorder) ListResourceGroups(ctx interface{}) *gomock.Call
- func (mr *MockAPIMockRecorder) ListServiceInstances(ctx interface{}) *gomock.Call
- func (mr *MockAPIMockRecorder) SetVPCServiceURLForRegion(ctx, region interface{}) *gomock.Call
- type MockMetadataAPI
- func (m *MockMetadataAPI) APIKey(ctx context.Context) (string, error)
- func (m *MockMetadataAPI) AccountID(ctx context.Context) (string, error)
- func (m *MockMetadataAPI) CISInstanceCRN(ctx context.Context) (string, error)
- func (m *MockMetadataAPI) DNSInstanceCRN(ctx context.Context) (string, error)
- func (m *MockMetadataAPI) EXPECT() *MockMetadataAPIMockRecorder
- type MockMetadataAPIMockRecorder
- func (mr *MockMetadataAPIMockRecorder) APIKey(ctx interface{}) *gomock.Call
- func (mr *MockMetadataAPIMockRecorder) AccountID(ctx interface{}) *gomock.Call
- func (mr *MockMetadataAPIMockRecorder) CISInstanceCRN(ctx interface{}) *gomock.Call
- func (mr *MockMetadataAPIMockRecorder) DNSInstanceCRN(ctx interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockAPI ¶
type MockAPI struct {
// contains filtered or unexported fields
}
MockAPI is a mock of API interface.
func NewMockAPI ¶
func NewMockAPI(ctrl *gomock.Controller) *MockAPI
NewMockAPI creates a new mock instance.
func (*MockAPI) EXPECT ¶
func (m *MockAPI) EXPECT() *MockAPIMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockAPI) GetAuthenticatorAPIKeyDetails ¶
GetAuthenticatorAPIKeyDetails mocks base method.
func (*MockAPI) GetDNSInstancePermittedNetworks ¶
func (m *MockAPI) GetDNSInstancePermittedNetworks(ctx context.Context, dnsID, dnsZone string) ([]string, error)
GetDNSInstancePermittedNetworks mocks base method.
func (*MockAPI) GetDNSRecordsByName ¶
func (m *MockAPI) GetDNSRecordsByName(ctx context.Context, crnstr, zoneID, recordName string, publish types.PublishingStrategy) ([]powervs.DNSRecordResponse, error)
GetDNSRecordsByName mocks base method.
func (*MockAPI) GetDNSZoneIDByName ¶
func (m *MockAPI) GetDNSZoneIDByName(ctx context.Context, name string, publish types.PublishingStrategy) (string, error)
GetDNSZoneIDByName mocks base method.
func (*MockAPI) GetDNSZones ¶
func (m *MockAPI) GetDNSZones(ctx context.Context, publish types.PublishingStrategy) ([]powervs.DNSZoneResponse, error)
GetDNSZones mocks base method.
func (*MockAPI) GetPublicGatewayByVPC ¶
func (m *MockAPI) GetPublicGatewayByVPC(ctx context.Context, vpcName string) (*vpcv1.PublicGateway, error)
GetPublicGatewayByVPC mocks base method.
func (*MockAPI) GetSubnetByName ¶
func (m *MockAPI) GetSubnetByName(ctx context.Context, subnetName, region string) (*vpcv1.Subnet, error)
GetSubnetByName mocks base method.
func (*MockAPI) GetVPCByName ¶
GetVPCByName mocks base method.
func (*MockAPI) ListResourceGroups ¶
func (m *MockAPI) ListResourceGroups(ctx context.Context) (*resourcemanagerv2.ResourceGroupList, error)
ListResourceGroups mocks base method.
func (*MockAPI) ListServiceInstances ¶
ListServiceInstances mocks base method.
type MockAPIMockRecorder ¶
type MockAPIMockRecorder struct {
// contains filtered or unexported fields
}
MockAPIMockRecorder is the mock recorder for MockAPI.
func (*MockAPIMockRecorder) GetAPIKey ¶
func (mr *MockAPIMockRecorder) GetAPIKey() *gomock.Call
GetAPIKey indicates an expected call of GetAPIKey.
func (*MockAPIMockRecorder) GetAuthenticatorAPIKeyDetails ¶
func (mr *MockAPIMockRecorder) GetAuthenticatorAPIKeyDetails(ctx interface{}) *gomock.Call
GetAuthenticatorAPIKeyDetails indicates an expected call of GetAuthenticatorAPIKeyDetails.
func (*MockAPIMockRecorder) GetDNSInstancePermittedNetworks ¶
func (mr *MockAPIMockRecorder) GetDNSInstancePermittedNetworks(ctx, dnsID, dnsZone interface{}) *gomock.Call
GetDNSInstancePermittedNetworks indicates an expected call of GetDNSInstancePermittedNetworks.
func (*MockAPIMockRecorder) GetDNSRecordsByName ¶
func (mr *MockAPIMockRecorder) GetDNSRecordsByName(ctx, crnstr, zoneID, recordName, publish interface{}) *gomock.Call
GetDNSRecordsByName indicates an expected call of GetDNSRecordsByName.
func (*MockAPIMockRecorder) GetDNSZoneIDByName ¶
func (mr *MockAPIMockRecorder) GetDNSZoneIDByName(ctx, name, publish interface{}) *gomock.Call
GetDNSZoneIDByName indicates an expected call of GetDNSZoneIDByName.
func (*MockAPIMockRecorder) GetDNSZones ¶
func (mr *MockAPIMockRecorder) GetDNSZones(ctx, publish interface{}) *gomock.Call
GetDNSZones indicates an expected call of GetDNSZones.
func (*MockAPIMockRecorder) GetPublicGatewayByVPC ¶
func (mr *MockAPIMockRecorder) GetPublicGatewayByVPC(ctx, vpcName interface{}) *gomock.Call
GetPublicGatewayByVPC indicates an expected call of GetPublicGatewayByVPC.
func (*MockAPIMockRecorder) GetSubnetByName ¶
func (mr *MockAPIMockRecorder) GetSubnetByName(ctx, subnetName, region interface{}) *gomock.Call
GetSubnetByName indicates an expected call of GetSubnetByName.
func (*MockAPIMockRecorder) GetVPCByName ¶
func (mr *MockAPIMockRecorder) GetVPCByName(ctx, vpcName interface{}) *gomock.Call
GetVPCByName indicates an expected call of GetVPCByName.
func (*MockAPIMockRecorder) GetVPCs ¶
func (mr *MockAPIMockRecorder) GetVPCs(ctx, region interface{}) *gomock.Call
GetVPCs indicates an expected call of GetVPCs.
func (*MockAPIMockRecorder) ListResourceGroups ¶
func (mr *MockAPIMockRecorder) ListResourceGroups(ctx interface{}) *gomock.Call
ListResourceGroups indicates an expected call of ListResourceGroups.
func (*MockAPIMockRecorder) ListServiceInstances ¶
func (mr *MockAPIMockRecorder) ListServiceInstances(ctx interface{}) *gomock.Call
ListServiceInstances indicates an expected call of ListServiceInstances.
func (*MockAPIMockRecorder) SetVPCServiceURLForRegion ¶
func (mr *MockAPIMockRecorder) SetVPCServiceURLForRegion(ctx, region interface{}) *gomock.Call
SetVPCServiceURLForRegion indicates an expected call of SetVPCServiceURLForRegion.
type MockMetadataAPI ¶
type MockMetadataAPI struct {
// contains filtered or unexported fields
}
MockMetadataAPI is a mock of MetadataAPI interface.
func NewMockMetadataAPI ¶
func NewMockMetadataAPI(ctrl *gomock.Controller) *MockMetadataAPI
NewMockMetadataAPI creates a new mock instance.
func (*MockMetadataAPI) APIKey ¶
func (m *MockMetadataAPI) APIKey(ctx context.Context) (string, error)
APIKey mocks base method.
func (*MockMetadataAPI) AccountID ¶
func (m *MockMetadataAPI) AccountID(ctx context.Context) (string, error)
AccountID mocks base method.
func (*MockMetadataAPI) CISInstanceCRN ¶
func (m *MockMetadataAPI) CISInstanceCRN(ctx context.Context) (string, error)
CISInstanceCRN mocks base method.
func (*MockMetadataAPI) DNSInstanceCRN ¶
func (m *MockMetadataAPI) DNSInstanceCRN(ctx context.Context) (string, error)
DNSInstanceCRN mocks base method.
func (*MockMetadataAPI) EXPECT ¶
func (m *MockMetadataAPI) EXPECT() *MockMetadataAPIMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockMetadataAPIMockRecorder ¶
type MockMetadataAPIMockRecorder struct {
// contains filtered or unexported fields
}
MockMetadataAPIMockRecorder is the mock recorder for MockMetadataAPI.
func (*MockMetadataAPIMockRecorder) APIKey ¶
func (mr *MockMetadataAPIMockRecorder) APIKey(ctx interface{}) *gomock.Call
APIKey indicates an expected call of APIKey.
func (*MockMetadataAPIMockRecorder) AccountID ¶
func (mr *MockMetadataAPIMockRecorder) AccountID(ctx interface{}) *gomock.Call
AccountID indicates an expected call of AccountID.
func (*MockMetadataAPIMockRecorder) CISInstanceCRN ¶
func (mr *MockMetadataAPIMockRecorder) CISInstanceCRN(ctx interface{}) *gomock.Call
CISInstanceCRN indicates an expected call of CISInstanceCRN.
func (*MockMetadataAPIMockRecorder) DNSInstanceCRN ¶
func (mr *MockMetadataAPIMockRecorder) DNSInstanceCRN(ctx interface{}) *gomock.Call
DNSInstanceCRN indicates an expected call of DNSInstanceCRN.