Versions in this module Expand all Collapse all v0 v0.7.5 Nov 26, 2024 v0.7.4 Nov 26, 2024 Changes in this version + type KubectlOutput struct + Err error + Output string + type MockKubectlCmd struct + APIResources []kube.APIResourceInfo + Commands map[string]KubectlOutput + DynamicClient dynamic.Interface + Events chan watch.Event + Version string + func (k *MockKubectlCmd) ConvertToVersion(obj *unstructured.Unstructured, group, version string) (*unstructured.Unstructured, error) + func (k *MockKubectlCmd) CreateResource(ctx context.Context, config *rest.Config, gvk schema.GroupVersionKind, ...) (*unstructured.Unstructured, error) + func (k *MockKubectlCmd) DeleteResource(ctx context.Context, config *rest.Config, gvk schema.GroupVersionKind, ...) error + func (k *MockKubectlCmd) GetAPIResources(config *rest.Config, preferred bool, resourceFilter kube.ResourceFilter) ([]kube.APIResourceInfo, error) + func (k *MockKubectlCmd) GetResource(ctx context.Context, config *rest.Config, gvk schema.GroupVersionKind, ...) (*unstructured.Unstructured, error) + func (k *MockKubectlCmd) GetServerVersion(config *rest.Config) (string, error) + func (k *MockKubectlCmd) LoadOpenAPISchema(config *rest.Config) (openapi.Resources, *managedfields.GvkParser, error) + func (k *MockKubectlCmd) ManageResources(config *rest.Config, openAPISchema openapi.Resources) (kube.ResourceOperations, func(), error) + func (k *MockKubectlCmd) NewDynamicClient(config *rest.Config) (dynamic.Interface, error) + func (k *MockKubectlCmd) PatchResource(ctx context.Context, config *rest.Config, gvk schema.GroupVersionKind, ...) (*unstructured.Unstructured, error) + func (k *MockKubectlCmd) SetOnKubectlRun(onKubectlRun kube.OnKubectlRunFunc) + func (k *MockKubectlCmd) WithConvertToVersionFunc(...) *MockKubectlCmd + func (k *MockKubectlCmd) WithGetResourceFunc(...) *MockKubectlCmd + type MockResourceOps struct + Commands map[string]KubectlOutput + DynamicClient dynamic.Interface + Events chan watch.Event + func (r *MockResourceOps) ApplyResource(ctx context.Context, obj *unstructured.Unstructured, ...) (string, error) + func (r *MockResourceOps) CreateResource(ctx context.Context, obj *unstructured.Unstructured, ...) (string, error) + func (r *MockResourceOps) GetLastForce() bool + func (r *MockResourceOps) GetLastResourceCommand(key kube.ResourceKey) string + func (r *MockResourceOps) GetLastServerSideApply() bool + func (r *MockResourceOps) GetLastServerSideApplyManager() string + func (r *MockResourceOps) GetLastValidate() bool + func (r *MockResourceOps) ReplaceResource(ctx context.Context, obj *unstructured.Unstructured, ...) (string, error) + func (r *MockResourceOps) SetLastForce(force bool) + func (r *MockResourceOps) SetLastResourceCommand(key kube.ResourceKey, cmd string) + func (r *MockResourceOps) SetLastServerSideApply(serverSideApply bool) + func (r *MockResourceOps) SetLastServerSideApplyManager(manager string) + func (r *MockResourceOps) SetLastValidate(validate bool) + func (r *MockResourceOps) UpdateResource(ctx context.Context, obj *unstructured.Unstructured, ...) (*unstructured.Unstructured, error) + func (r *MockResourceOps) WithGetResourceFunc(...) *MockResourceOps