kubernetesservices

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 {
	ListManagedClusters(ctx context.Context, resourceGroup string) ([]*armcontainerservice.ManagedCluster, error)
	GetManagedCluster(ctx context.Context, resourceGroup, managedCluster string) (armcontainerservice.ManagedClustersClientGetResponse, error)
	ListNodePools(ctx context.Context, resourceGroup, managedCluster string) ([]*armcontainerservice.AgentPool, error)
}

Client is the interface for a client to interact with the Azure Kubernetes services 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) GetManagedCluster

func (_m *MockClient) GetManagedCluster(ctx context.Context, resourceGroup string, managedCluster string) (armcontainerservice.ManagedClustersClientGetResponse, error)

GetManagedCluster provides a mock function with given fields: ctx, resourceGroup, managedCluster

func (*MockClient) ListManagedClusters

func (_m *MockClient) ListManagedClusters(ctx context.Context, resourceGroup string) ([]*armcontainerservice.ManagedCluster, error)

ListManagedClusters provides a mock function with given fields: ctx, resourceGroup

func (*MockClient) ListNodePools

func (_m *MockClient) ListNodePools(ctx context.Context, resourceGroup string, managedCluster string) ([]*armcontainerservice.AgentPool, error)

ListNodePools provides a mock function with given fields: ctx, resourceGroup, managedCluster

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