fake

package
v0.20.1 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AKSClient

type AKSClient struct {
	MockGetManagedCluster    func(ctx context.Context, ac *v1alpha3.AKSCluster) (containerservice.ManagedCluster, error)
	MockEnsureManagedCluster func(ctx context.Context, ac *v1alpha3.AKSCluster, secret string) error
	MockDeleteManagedCluster func(ctx context.Context, ac *v1alpha3.AKSCluster) error
	MockGetKubeConfig        func(ctx context.Context, ac *v1alpha3.AKSCluster) ([]byte, error)
}

AKSClient is a fake AKS client.

func (AKSClient) DeleteManagedCluster

func (c AKSClient) DeleteManagedCluster(ctx context.Context, ac *v1alpha3.AKSCluster) error

DeleteManagedCluster calls DeleteManagedCluster.

func (AKSClient) EnsureManagedCluster

func (c AKSClient) EnsureManagedCluster(ctx context.Context, ac *v1alpha3.AKSCluster, secret string) error

EnsureManagedCluster calls MockEnsureManagedCluster.

func (AKSClient) GetKubeConfig

func (c AKSClient) GetKubeConfig(ctx context.Context, ac *v1alpha3.AKSCluster) ([]byte, error)

GetKubeConfig calls GetKubeConfig.

func (AKSClient) GetManagedCluster

GetManagedCluster calls MockGetManagedCluster.

Jump to

Keyboard shortcuts

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