Documentation ¶
Overview ¶
Package mock is a generated GoMock package.
Index ¶
- type MockAPI
- func (m *MockAPI) AreMarketplaceImageTermsAccepted(ctx context.Context, publisher, offer, sku string) (bool, error)
- func (m *MockAPI) EXPECT() *MockAPIMockRecorder
- func (m *MockAPI) GetAvailabilityZones(ctx context.Context, region, instanceType string) ([]string, error)
- func (m *MockAPI) GetComputeSubnet(ctx context.Context, resourceGroupName, virtualNetwork, subnet string) (*network.Subnet, error)
- func (m *MockAPI) GetControlPlaneSubnet(ctx context.Context, resourceGroupName, virtualNetwork, subnet string) (*network.Subnet, error)
- func (m *MockAPI) GetDiskEncryptionSet(ctx context.Context, subscriptionID, groupName, diskEncryptionSetName string) (*compute.DiskEncryptionSet, error)
- func (m *MockAPI) GetDiskSkus(ctx context.Context, region string) ([]compute.ResourceSku, error)
- func (m *MockAPI) GetGroup(ctx context.Context, groupName string) (*resources.Group, error)
- func (m *MockAPI) GetHyperVGenerationVersion(ctx context.Context, instanceType, region, imageHyperVGen string) (string, error)
- func (m *MockAPI) GetLocationInfo(ctx context.Context, region, instanceType string) (*compute.ResourceSkuLocationInfo, error)
- func (m *MockAPI) GetMarketplaceImage(ctx context.Context, region, publisher, offer, sku, version string) (compute.VirtualMachineImage, error)
- func (m *MockAPI) GetResourcesProvider(ctx context.Context, resourceProviderNamespace string) (*resources.Provider, error)
- func (m *MockAPI) GetStorageEndpointSuffix(ctx context.Context) (string, error)
- func (m *MockAPI) GetVMCapabilities(ctx context.Context, instanceType, region string) (map[string]string, error)
- func (m *MockAPI) GetVirtualMachineFamily(ctx context.Context, name, region string) (string, error)
- func (m *MockAPI) GetVirtualMachineSku(ctx context.Context, name, region string) (*compute.ResourceSku, error)
- func (m *MockAPI) GetVirtualNetwork(ctx context.Context, resourceGroupName, virtualNetwork string) (*network.VirtualNetwork, error)
- func (m *MockAPI) ListLocations(ctx context.Context) (*[]subscriptions.Location, error)
- func (m *MockAPI) ListResourceIDsByGroup(ctx context.Context, groupName string) ([]string, error)
- type MockAPIMockRecorder
- func (mr *MockAPIMockRecorder) AreMarketplaceImageTermsAccepted(ctx, publisher, offer, sku interface{}) *gomock.Call
- func (mr *MockAPIMockRecorder) GetAvailabilityZones(ctx, region, instanceType interface{}) *gomock.Call
- func (mr *MockAPIMockRecorder) GetComputeSubnet(ctx, resourceGroupName, virtualNetwork, subnet interface{}) *gomock.Call
- func (mr *MockAPIMockRecorder) GetControlPlaneSubnet(ctx, resourceGroupName, virtualNetwork, subnet interface{}) *gomock.Call
- func (mr *MockAPIMockRecorder) GetDiskEncryptionSet(ctx, subscriptionID, groupName, diskEncryptionSetName interface{}) *gomock.Call
- func (mr *MockAPIMockRecorder) GetDiskSkus(ctx, region interface{}) *gomock.Call
- func (mr *MockAPIMockRecorder) GetGroup(ctx, groupName interface{}) *gomock.Call
- func (mr *MockAPIMockRecorder) GetHyperVGenerationVersion(ctx, instanceType, region, imageHyperVGen interface{}) *gomock.Call
- func (mr *MockAPIMockRecorder) GetLocationInfo(ctx, region, instanceType interface{}) *gomock.Call
- func (mr *MockAPIMockRecorder) GetMarketplaceImage(ctx, region, publisher, offer, sku, version interface{}) *gomock.Call
- func (mr *MockAPIMockRecorder) GetResourcesProvider(ctx, resourceProviderNamespace interface{}) *gomock.Call
- func (mr *MockAPIMockRecorder) GetStorageEndpointSuffix(ctx interface{}) *gomock.Call
- func (mr *MockAPIMockRecorder) GetVMCapabilities(ctx, instanceType, region interface{}) *gomock.Call
- func (mr *MockAPIMockRecorder) GetVirtualMachineFamily(ctx, name, region interface{}) *gomock.Call
- func (mr *MockAPIMockRecorder) GetVirtualMachineSku(ctx, name, region interface{}) *gomock.Call
- func (mr *MockAPIMockRecorder) GetVirtualNetwork(ctx, resourceGroupName, virtualNetwork interface{}) *gomock.Call
- func (mr *MockAPIMockRecorder) ListLocations(ctx interface{}) *gomock.Call
- func (mr *MockAPIMockRecorder) ListResourceIDsByGroup(ctx, groupName 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) AreMarketplaceImageTermsAccepted ¶
func (m *MockAPI) AreMarketplaceImageTermsAccepted(ctx context.Context, publisher, offer, sku string) (bool, error)
AreMarketplaceImageTermsAccepted mocks base method.
func (*MockAPI) EXPECT ¶
func (m *MockAPI) EXPECT() *MockAPIMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockAPI) GetAvailabilityZones ¶
func (m *MockAPI) GetAvailabilityZones(ctx context.Context, region, instanceType string) ([]string, error)
GetAvailabilityZones mocks base method.
func (*MockAPI) GetComputeSubnet ¶
func (m *MockAPI) GetComputeSubnet(ctx context.Context, resourceGroupName, virtualNetwork, subnet string) (*network.Subnet, error)
GetComputeSubnet mocks base method.
func (*MockAPI) GetControlPlaneSubnet ¶
func (m *MockAPI) GetControlPlaneSubnet(ctx context.Context, resourceGroupName, virtualNetwork, subnet string) (*network.Subnet, error)
GetControlPlaneSubnet mocks base method.
func (*MockAPI) GetDiskEncryptionSet ¶
func (m *MockAPI) GetDiskEncryptionSet(ctx context.Context, subscriptionID, groupName, diskEncryptionSetName string) (*compute.DiskEncryptionSet, error)
GetDiskEncryptionSet mocks base method.
func (*MockAPI) GetDiskSkus ¶
GetDiskSkus mocks base method.
func (*MockAPI) GetHyperVGenerationVersion ¶
func (m *MockAPI) GetHyperVGenerationVersion(ctx context.Context, instanceType, region, imageHyperVGen string) (string, error)
GetHyperVGenerationVersion mocks base method.
func (*MockAPI) GetLocationInfo ¶
func (m *MockAPI) GetLocationInfo(ctx context.Context, region, instanceType string) (*compute.ResourceSkuLocationInfo, error)
GetLocationInfo mocks base method.
func (*MockAPI) GetMarketplaceImage ¶
func (m *MockAPI) GetMarketplaceImage(ctx context.Context, region, publisher, offer, sku, version string) (compute.VirtualMachineImage, error)
GetMarketplaceImage mocks base method.
func (*MockAPI) GetResourcesProvider ¶
func (m *MockAPI) GetResourcesProvider(ctx context.Context, resourceProviderNamespace string) (*resources.Provider, error)
GetResourcesProvider mocks base method.
func (*MockAPI) GetStorageEndpointSuffix ¶
GetStorageEndpointSuffix mocks base method.
func (*MockAPI) GetVMCapabilities ¶
func (m *MockAPI) GetVMCapabilities(ctx context.Context, instanceType, region string) (map[string]string, error)
GetVMCapabilities mocks base method.
func (*MockAPI) GetVirtualMachineFamily ¶
GetVirtualMachineFamily mocks base method.
func (*MockAPI) GetVirtualMachineSku ¶
func (m *MockAPI) GetVirtualMachineSku(ctx context.Context, name, region string) (*compute.ResourceSku, error)
GetVirtualMachineSku mocks base method.
func (*MockAPI) GetVirtualNetwork ¶
func (m *MockAPI) GetVirtualNetwork(ctx context.Context, resourceGroupName, virtualNetwork string) (*network.VirtualNetwork, error)
GetVirtualNetwork mocks base method.
func (*MockAPI) ListLocations ¶
ListLocations mocks base method.
type MockAPIMockRecorder ¶
type MockAPIMockRecorder struct {
// contains filtered or unexported fields
}
MockAPIMockRecorder is the mock recorder for MockAPI.
func (*MockAPIMockRecorder) AreMarketplaceImageTermsAccepted ¶
func (mr *MockAPIMockRecorder) AreMarketplaceImageTermsAccepted(ctx, publisher, offer, sku interface{}) *gomock.Call
AreMarketplaceImageTermsAccepted indicates an expected call of AreMarketplaceImageTermsAccepted.
func (*MockAPIMockRecorder) GetAvailabilityZones ¶
func (mr *MockAPIMockRecorder) GetAvailabilityZones(ctx, region, instanceType interface{}) *gomock.Call
GetAvailabilityZones indicates an expected call of GetAvailabilityZones.
func (*MockAPIMockRecorder) GetComputeSubnet ¶
func (mr *MockAPIMockRecorder) GetComputeSubnet(ctx, resourceGroupName, virtualNetwork, subnet interface{}) *gomock.Call
GetComputeSubnet indicates an expected call of GetComputeSubnet.
func (*MockAPIMockRecorder) GetControlPlaneSubnet ¶
func (mr *MockAPIMockRecorder) GetControlPlaneSubnet(ctx, resourceGroupName, virtualNetwork, subnet interface{}) *gomock.Call
GetControlPlaneSubnet indicates an expected call of GetControlPlaneSubnet.
func (*MockAPIMockRecorder) GetDiskEncryptionSet ¶
func (mr *MockAPIMockRecorder) GetDiskEncryptionSet(ctx, subscriptionID, groupName, diskEncryptionSetName interface{}) *gomock.Call
GetDiskEncryptionSet indicates an expected call of GetDiskEncryptionSet.
func (*MockAPIMockRecorder) GetDiskSkus ¶
func (mr *MockAPIMockRecorder) GetDiskSkus(ctx, region interface{}) *gomock.Call
GetDiskSkus indicates an expected call of GetDiskSkus.
func (*MockAPIMockRecorder) GetGroup ¶
func (mr *MockAPIMockRecorder) GetGroup(ctx, groupName interface{}) *gomock.Call
GetGroup indicates an expected call of GetGroup.
func (*MockAPIMockRecorder) GetHyperVGenerationVersion ¶
func (mr *MockAPIMockRecorder) GetHyperVGenerationVersion(ctx, instanceType, region, imageHyperVGen interface{}) *gomock.Call
GetHyperVGenerationVersion indicates an expected call of GetHyperVGenerationVersion.
func (*MockAPIMockRecorder) GetLocationInfo ¶
func (mr *MockAPIMockRecorder) GetLocationInfo(ctx, region, instanceType interface{}) *gomock.Call
GetLocationInfo indicates an expected call of GetLocationInfo.
func (*MockAPIMockRecorder) GetMarketplaceImage ¶
func (mr *MockAPIMockRecorder) GetMarketplaceImage(ctx, region, publisher, offer, sku, version interface{}) *gomock.Call
GetMarketplaceImage indicates an expected call of GetMarketplaceImage.
func (*MockAPIMockRecorder) GetResourcesProvider ¶
func (mr *MockAPIMockRecorder) GetResourcesProvider(ctx, resourceProviderNamespace interface{}) *gomock.Call
GetResourcesProvider indicates an expected call of GetResourcesProvider.
func (*MockAPIMockRecorder) GetStorageEndpointSuffix ¶
func (mr *MockAPIMockRecorder) GetStorageEndpointSuffix(ctx interface{}) *gomock.Call
GetStorageEndpointSuffix indicates an expected call of GetStorageEndpointSuffix.
func (*MockAPIMockRecorder) GetVMCapabilities ¶
func (mr *MockAPIMockRecorder) GetVMCapabilities(ctx, instanceType, region interface{}) *gomock.Call
GetVMCapabilities indicates an expected call of GetVMCapabilities.
func (*MockAPIMockRecorder) GetVirtualMachineFamily ¶
func (mr *MockAPIMockRecorder) GetVirtualMachineFamily(ctx, name, region interface{}) *gomock.Call
GetVirtualMachineFamily indicates an expected call of GetVirtualMachineFamily.
func (*MockAPIMockRecorder) GetVirtualMachineSku ¶
func (mr *MockAPIMockRecorder) GetVirtualMachineSku(ctx, name, region interface{}) *gomock.Call
GetVirtualMachineSku indicates an expected call of GetVirtualMachineSku.
func (*MockAPIMockRecorder) GetVirtualNetwork ¶
func (mr *MockAPIMockRecorder) GetVirtualNetwork(ctx, resourceGroupName, virtualNetwork interface{}) *gomock.Call
GetVirtualNetwork indicates an expected call of GetVirtualNetwork.
func (*MockAPIMockRecorder) ListLocations ¶
func (mr *MockAPIMockRecorder) ListLocations(ctx interface{}) *gomock.Call
ListLocations indicates an expected call of ListLocations.
func (*MockAPIMockRecorder) ListResourceIDsByGroup ¶
func (mr *MockAPIMockRecorder) ListResourceIDsByGroup(ctx, groupName interface{}) *gomock.Call
ListResourceIDsByGroup indicates an expected call of ListResourceIDsByGroup.