virtualmachinescalesets

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

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

type MockClient struct {
	mock.Mock
}

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

type NewMockClientT

type NewMockClientT interface {
	mock.TestingT
	Cleanup(func())
}

Jump to

Keyboard shortcuts

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