package
0.20.5
Repository: https://github.com/aws/eks-anywhere.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author
No description provided by the author
Package mocks is a generated GoMock package.

# Functions

AContext returns a gomock matchers that evaluates if the receive value can fullfills the context.Context interface.
No description provided by the author
No description provided by the author
Bundle returns a test bundle struct for unit testing.
Bundles returs a test Bundles.
CACertContent returns a test string representing a cacert contents.
CAPICluster returns a capi cluster which can be configured by passing in opts arguments.
Cluster builds a Cluster for tests with some basic defaults.
DevEksaVersion can be used in tests.
EKSARelease returns a test eksaRelease struct for unit testing.
EksdRelease returns a test release struct for unit testing.
EksdReleaseFromTestData returns a test release struct for unit testing from a testdata file.
EksdReleases returns a test release slice for unit testing.
No description provided by the author
KubeadmControlPlane returns a kubeadm controlplane which can be configured by passing in opts arguments.
MachineDeployment returns a machinedeployment which can be configured by passing in opts arguments.
MatchFile returns a gomock matcher that compares []byte input to the content of the given file.
Namespace returns a test namespace struct for unit testing.
No description provided by the author
NewClusterSpecForCluster builds a compliant [cluster.Spec] from a Cluster using a test Bundles and EKS-D Release.
NewClusterSpecForConfig builds a compliant [cluster.Spec] from a [cluster.Config] using a test Bundles and EKS-D Release.
NewFakeKubeClient returns a kubernetes.Client that uses a fake client.Client under the hood.
NewFakeKubeClientAlwaysError returns a kubernetes.Client that will always fail in any operation This is achieved by injecting an empty Scheme, which will make the underlying client.Client incapable of determining the resource type for a particular client.Object.
NewFakeNow sets a dummy value for time.Now in unit tests.
NewFileReader builds a file reader with a proper user-agent.
No description provided by the author
No description provided by the author
NewHTTPSServerForFile creates an HTTPS server that always serves the content of the given file.
NewKubeClient builds a new kubernetes.Client by using client.Client.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
RegistryMirrorConfigFilesInsecureSkipVerify returns cluster-api bootstrap files that configure containerd to use a registry mirror with the insecure_skip_verify flag enabled.
RegistryMirrorConfigFilesInsecureSkipVerifyAndCACert returns cluster-api bootstrap files that configure containerd to use a registry mirror with a cacert file and insecure_skip_verify flag enabled.
RegistryMirrorEndpoint returns the address of the registry mirror configured on the Cluster if any.
RegistryMirrorInsecureSkipVerifyEnabled returns a test RegistryMirrorConfiguration with InsecureSkipVerify enabled.
RegistryMirrorInsecureSkipVerifyEnabledAndCACert returns a test RegistryMirrorConfiguration with a CACert specified and InsecureSkipVerify enabled.
RegistryMirrorPreKubeadmCommands returns a list of commands to writes a config_append.toml file to configure the registry mirror and restart containerd.
RegistryMirrorSudoPreKubeadmCommands returns a list of commands that writes a config_append.toml file to configure the registry mirror and restart containerd with sudo permissions.
RemoveFileIfExists is a helper for ValidateFilename tests.
SanitizePath sanitizes s so its usable as a path name.
No description provided by the author
UseEnvTest sets up the controller-runtime EnvTest framework.
VersionBundle returns a test VersionsBundle struct for unit testing.
VersionsBundlesMap returns a test VersionsBundle map for unit testing.
VSphereClusterSpec builds a complete and valid cluster spec for a vSphere cluster.
VSphereCredentialsSecret builds a new Secret follwoing the format expected for vSphere credentials.
VSphereDatacenter builds a VSphereDatacenterConfig for tests with some basix defaults.
VSphereMachineConfig builds a VSphereMachineConfig with some basic defaults.
WithFakeFile returns a throwaway file in a test-specific directory.
WithFakeFileContents returns a throwaway file containing some data.

# Constants

KubeVipTemplate is the default kube-vip pod template for internal testing.

# Variables

No description provided by the author

# Interfaces

Reader is a commonly used interface in multiple packages We are replicating here just to create a single mock we can use in multiple test packages.

# Type aliases

CAPIClusterOpt represents an function where a capi cluster is passed as an argument.
ClusterOpt allows to customize a Cluster.
No description provided by the author
KubeadmControlPlaneOpt represents an function where a kubeadmcontrolplane is passed as an argument.
MachineDeploymentOpt represents an function where a kubeadmcontrolplane is passed as an argument.
VSphereDatacenterConfigOpt allows to customize a VSphereDatacenterConfig.
VSphereMachineOpt allows to customize a VSphereMachineConfig.