Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Settings ¶
type Settings struct { KubeconfigPath string K8sClient kubernetes.Interface coreV1Client.CoreV1Interface clientConfigV1.ConfigV1Interface clientMachineConfigV1.MachineconfigurationV1Interface networkV1Client.NetworkingV1Interface appsV1Client.AppsV1Interface rbacV1Client.RbacV1Interface ClientSrIov clientSrIov.Interface clientSrIovV1.SriovnetworkV1Interface Config *rest.Config runtimeClient.Client ptpV1.PtpV1Interface v1security.SecurityV1Interface olm.OperatorsV1alpha1Interface clientNetAttDefV1.K8sCniCncfIoV1Interface dynamic.Interface olmv1.OperatorsV1Interface multinetpolicyclientv1.K8sCniCncfIoV1beta1Interface PackageManifestInterface clientPkgManifestV1.OperatorsV1Interface operatorv1alpha1.OperatorV1alpha1Interface grafanaV4V1Alpha1.Grafana LocalVolumeInterface lsoV1alpha1.LocalVolumeSet machinev1beta1client.MachineV1beta1Interface storageV1Client.StorageV1Interface VeleroClient veleroClient.Interface veleroV1Client.VeleroV1Interface ClientCgu clientCgu.Interface clientCguV1.RanV1alpha1Interface }
Settings provides the struct to talk with relevant API.
func GetTestClients ¶
func GetTestClients(tcp TestClientParams) *Settings
GetTestClients returns a fake clientset for testing.
func (*Settings) GetAPIClient ¶
GetAPIClient implements the cluster.APIClientGetter interface.
type TestClientParams ¶
type TestClientParams struct { K8sMockObjects []runtime.Object GVK []schema.GroupVersionKind }
TestClientParams provides the struct to store the parameters for the test client.
Click to show internal directories.
Click to hide internal directories.