Documentation ¶
Index ¶
- type KubectlOutput
- type MockKubectlCmd
- func (k *MockKubectlCmd) ApplyResource(config *rest.Config, obj *unstructured.Unstructured, namespace string, ...) (string, error)
- func (k *MockKubectlCmd) ConvertToVersion(obj *unstructured.Unstructured, group, version string) (*unstructured.Unstructured, error)
- func (k *MockKubectlCmd) DeleteResource(config *rest.Config, gvk schema.GroupVersionKind, name string, ...) error
- func (k *MockKubectlCmd) GetAPIGroups(config *rest.Config) ([]metav1.APIGroup, error)
- func (k *MockKubectlCmd) GetAPIResources(config *rest.Config, resourceFilter kube.ResourceFilter) ([]kube.APIResourceInfo, error)
- func (k *MockKubectlCmd) GetResource(config *rest.Config, gvk schema.GroupVersionKind, name string, ...) (*unstructured.Unstructured, error)
- func (k *MockKubectlCmd) GetServerVersion(config *rest.Config) (string, error)
- func (k *MockKubectlCmd) NewDynamicClient(config *rest.Config) (dynamic.Interface, error)
- func (k *MockKubectlCmd) PatchResource(config *rest.Config, gvk schema.GroupVersionKind, name string, ...) (*unstructured.Unstructured, error)
- func (k *MockKubectlCmd) SetOnKubectlRun(onKubectlRun func(command string) (util.Closer, error))
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KubectlOutput ¶
type MockKubectlCmd ¶
type MockKubectlCmd struct { APIResources []kube.APIResourceInfo Commands map[string]KubectlOutput Events chan watch.Event LastValidate bool Version string DynamicClient dynamic.Interface APIGroups []metav1.APIGroup }
func (*MockKubectlCmd) ApplyResource ¶
func (k *MockKubectlCmd) ApplyResource(config *rest.Config, obj *unstructured.Unstructured, namespace string, dryRun, force, validate bool) (string, error)
func (*MockKubectlCmd) ConvertToVersion ¶
func (k *MockKubectlCmd) ConvertToVersion(obj *unstructured.Unstructured, group, version string) (*unstructured.Unstructured, error)
ConvertToVersion converts an unstructured object into the specified group/version
func (*MockKubectlCmd) DeleteResource ¶
func (k *MockKubectlCmd) DeleteResource(config *rest.Config, gvk schema.GroupVersionKind, name string, namespace string, forceDelete bool) error
func (*MockKubectlCmd) GetAPIGroups ¶ added in v1.5.0
func (*MockKubectlCmd) GetAPIResources ¶
func (k *MockKubectlCmd) GetAPIResources(config *rest.Config, resourceFilter kube.ResourceFilter) ([]kube.APIResourceInfo, error)
func (*MockKubectlCmd) GetResource ¶
func (k *MockKubectlCmd) GetResource(config *rest.Config, gvk schema.GroupVersionKind, name string, namespace string) (*unstructured.Unstructured, error)
func (*MockKubectlCmd) GetServerVersion ¶ added in v1.3.0
func (k *MockKubectlCmd) GetServerVersion(config *rest.Config) (string, error)
func (*MockKubectlCmd) NewDynamicClient ¶ added in v1.4.0
func (*MockKubectlCmd) PatchResource ¶ added in v0.12.0
func (k *MockKubectlCmd) PatchResource(config *rest.Config, gvk schema.GroupVersionKind, name string, namespace string, patchType types.PatchType, patchBytes []byte) (*unstructured.Unstructured, error)
func (*MockKubectlCmd) SetOnKubectlRun ¶ added in v1.3.0
func (k *MockKubectlCmd) SetOnKubectlRun(onKubectlRun func(command string) (util.Closer, error))
Click to show internal directories.
Click to hide internal directories.