Documentation ¶
Index ¶
- type Client
- type MockClient
- func (_m *MockClient) GetVirtualMachineScaleSet(ctx context.Context, resourceGroup string, virtualMachineScaleSet string) (armcompute.VirtualMachineScaleSetsClientGetResponse, error)
- func (_m *MockClient) ListVirtualMachineScaleSets(ctx context.Context, resourceGroup string) ([]*armcompute.VirtualMachineScaleSet, error)
- func (_m *MockClient) ListVirtualMachines(ctx context.Context, resourceGroup string, virtualMachineScaleSet string) ([]*armcompute.VirtualMachineScaleSetVM, error)
- type NewMockClientT
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface { ListVirtualMachineScaleSets(ctx context.Context, resourceGroup string) ([]*armcompute.VirtualMachineScaleSet, error) GetVirtualMachineScaleSet(ctx context.Context, resourceGroup, virtualMachineScaleSet string) (armcompute.VirtualMachineScaleSetsClientGetResponse, error) ListVirtualMachines(ctx context.Context, resourceGroup, virtualMachineScaleSet string) ([]*armcompute.VirtualMachineScaleSetVM, error) }
Client is the interface for a client to interact with the Azure virtual machien scale sets api.
func New ¶
func New(subscriptionID string, credentials *azidentity.ClientSecretCredential) (Client, error)
New returns a new client to interact with the kubernetes services API.
type MockClient ¶
MockClient is an autogenerated mock type for the Client type
func NewMockClient ¶
func NewMockClient(t NewMockClientT) *MockClient
NewMockClient creates a new instance of MockClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*MockClient) GetVirtualMachineScaleSet ¶
func (_m *MockClient) GetVirtualMachineScaleSet(ctx context.Context, resourceGroup string, virtualMachineScaleSet string) (armcompute.VirtualMachineScaleSetsClientGetResponse, error)
GetVirtualMachineScaleSet provides a mock function with given fields: ctx, resourceGroup, virtualMachineScaleSet
func (*MockClient) ListVirtualMachineScaleSets ¶
func (_m *MockClient) ListVirtualMachineScaleSets(ctx context.Context, resourceGroup string) ([]*armcompute.VirtualMachineScaleSet, error)
ListVirtualMachineScaleSets provides a mock function with given fields: ctx, resourceGroup
func (*MockClient) ListVirtualMachines ¶
func (_m *MockClient) ListVirtualMachines(ctx context.Context, resourceGroup string, virtualMachineScaleSet string) ([]*armcompute.VirtualMachineScaleSetVM, error)
ListVirtualMachines provides a mock function with given fields: ctx, resourceGroup, virtualMachineScaleSet