Documentation ¶
Index ¶
- func ArbitraryArgs(cmd *cobra.Command, args []string) error
- func EmptyRun(*cobra.Command, []string)
- func EnvVarExists(t *testing.T, env []corev1.EnvVar, name string)
- func EnvVarHasValue(t *testing.T, env []corev1.EnvVar, name string, val string)
- func ExecuteCommand(root *cobra.Command, args ...string) (string, error)
- func ExecuteCommandC(root *cobra.Command, args ...string) (*cobra.Command, string, error)
- func HasVolume(t *testing.T, volumes []corev1.Volume, name string)
- func NewFakeClient(initObjs ...runtime.Object) (client.Client, error)
- type FakeClient
- func (c *FakeClient) CamelV1() camelv1.CamelV1Interface
- func (c *FakeClient) CamelV1alpha1() camelv1alpha1.CamelV1alpha1Interface
- func (c *FakeClient) DisableAPIGroupDiscovery(group string)
- func (c *FakeClient) Discovery() discovery.DiscoveryInterface
- func (c *FakeClient) GetConfig() *rest.Config
- func (c *FakeClient) GetCurrentNamespace(kubeConfig string) (string, error)
- func (c *FakeClient) GetScheme() *runtime.Scheme
- func (c *FakeClient) Patch(ctx context.Context, obj controller.Object, patch controller.Patch, ...) error
- func (c *FakeClient) ScalesClient() (scale.ScalesGetter, error)
- func (c *FakeClient) ServerOrClientSideApplier() client.ServerOrClientSideApplier
- type FakeDiscovery
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EnvVarExists ¶
EnvVarExists --.
func EnvVarHasValue ¶
EnvVarHasValue --.
func ExecuteCommandC ¶
Types ¶
type FakeClient ¶
type FakeClient struct { controller.Client kubernetes.Interface // contains filtered or unexported fields }
FakeClient ---.
func (*FakeClient) CamelV1 ¶ added in v1.3.0
func (c *FakeClient) CamelV1() camelv1.CamelV1Interface
func (*FakeClient) CamelV1alpha1 ¶ added in v1.3.0
func (c *FakeClient) CamelV1alpha1() camelv1alpha1.CamelV1alpha1Interface
func (*FakeClient) DisableAPIGroupDiscovery ¶ added in v1.12.1
func (c *FakeClient) DisableAPIGroupDiscovery(group string)
func (*FakeClient) Discovery ¶ added in v1.4.0
func (c *FakeClient) Discovery() discovery.DiscoveryInterface
func (*FakeClient) GetConfig ¶
func (c *FakeClient) GetConfig() *rest.Config
func (*FakeClient) GetCurrentNamespace ¶
func (c *FakeClient) GetCurrentNamespace(kubeConfig string) (string, error)
func (*FakeClient) Patch ¶ added in v1.5.0
func (c *FakeClient) Patch(ctx context.Context, obj controller.Object, patch controller.Patch, opts ...controller.PatchOption) error
Patch mimicks patch for server-side apply and simply creates the obj.
func (*FakeClient) ScalesClient ¶ added in v1.8.0
func (c *FakeClient) ScalesClient() (scale.ScalesGetter, error)
func (*FakeClient) ServerOrClientSideApplier ¶ added in v1.8.0
func (c *FakeClient) ServerOrClientSideApplier() client.ServerOrClientSideApplier
type FakeDiscovery ¶ added in v1.4.0
type FakeDiscovery struct { discovery.DiscoveryInterface // contains filtered or unexported fields }
func (*FakeDiscovery) ServerResourcesForGroupVersion ¶ added in v1.4.0
func (f *FakeDiscovery) ServerResourcesForGroupVersion(groupVersion string) (*metav1.APIResourceList, error)
Click to show internal directories.
Click to hide internal directories.