Documentation
¶
Index ¶
- type Client
- type MockClient
- func (_m *MockClient) GetManagedCluster(ctx context.Context, resourceGroup string, managedCluster string) (armcontainerservice.ManagedClustersClientGetResponse, error)
- func (_m *MockClient) ListManagedClusters(ctx context.Context, resourceGroup string) ([]*armcontainerservice.ManagedCluster, error)
- func (_m *MockClient) ListNodePools(ctx context.Context, resourceGroup string, managedCluster string) ([]*armcontainerservice.AgentPool, error)
- type NewMockClientT
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 ¶
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