Documentation ¶
Index ¶
- func ClusterUID(client dynamic.Interface) (string, error)
- func CreateOrPatch(ctx context.Context, c dynamic.Interface, gvr schema.GroupVersionResource, ...) (*unstructured.Unstructured, kutil.VerbType, error)
- func DetectWorkload(ctx context.Context, config *rest.Config, resource schema.GroupVersionResource, ...) (*unstructured.Unstructured, schema.GroupVersionResource, error)
- func EnsureOwnerReferenceForItems(ctx context.Context, c dynamic.Interface, gvr schema.GroupVersionResource, ...) error
- func EnsureOwnerReferenceForSelector(ctx context.Context, c dynamic.Interface, gvr schema.GroupVersionResource, ...) error
- func Patch(ctx context.Context, c dynamic.Interface, gvr schema.GroupVersionResource, ...) (*unstructured.Unstructured, kutil.VerbType, error)
- func PatchObject(ctx context.Context, c dynamic.Interface, gvr schema.GroupVersionResource, ...) (*unstructured.Unstructured, kutil.VerbType, error)
- func RemoveOwnerReferenceForItems(ctx context.Context, c dynamic.Interface, gvr schema.GroupVersionResource, ...) error
- func RemoveOwnerReferenceForSelector(ctx context.Context, c dynamic.Interface, gvr schema.GroupVersionResource, ...) error
- func ResourceExists(ctx context.Context, c dynamic.Interface, gvr schema.GroupVersionResource, ...) (bool, error)
- func ResourcesExists(c dynamic.Interface, gvr schema.GroupVersionResource, namespace string, ...) (bool, error)
- func ResourcesNotExists(c dynamic.Interface, gvr schema.GroupVersionResource, namespace string, ...) (bool, error)
- func TryUpdate(ctx context.Context, c dynamic.Interface, gvr schema.GroupVersionResource, ...) (result *unstructured.Unstructured, err error)
- func UntilHasAnnotation(config *rest.Config, gvk schema.GroupVersionKind, namespace, name string, ...) (out string, err error)
- func UntilHasLabel(config *rest.Config, gvk schema.GroupVersionKind, namespace, name string, ...) (out string, err error)
- func UpdateStatus(ctx context.Context, c dynamic.Interface, gvr schema.GroupVersionResource, ...) (result *unstructured.Unstructured, err error)
- func WaitUntilDeleted(ri dynamic.ResourceInterface, stopCh <-chan struct{}, name string, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateOrPatch ¶
func CreateOrPatch( ctx context.Context, c dynamic.Interface, gvr schema.GroupVersionResource, meta metav1.ObjectMeta, transform func(*unstructured.Unstructured) *unstructured.Unstructured, opts metav1.PatchOptions, ) (*unstructured.Unstructured, kutil.VerbType, error)
func DetectWorkload ¶
func DetectWorkload(ctx context.Context, config *rest.Config, resource schema.GroupVersionResource, namespace, name string) (*unstructured.Unstructured, schema.GroupVersionResource, error)
func Patch ¶
func Patch( ctx context.Context, c dynamic.Interface, gvr schema.GroupVersionResource, cur *unstructured.Unstructured, transform func(*unstructured.Unstructured) *unstructured.Unstructured, opts metav1.PatchOptions, ) (*unstructured.Unstructured, kutil.VerbType, error)
func PatchObject ¶
func PatchObject( ctx context.Context, c dynamic.Interface, gvr schema.GroupVersionResource, cur, mod *unstructured.Unstructured, opts metav1.PatchOptions, ) (*unstructured.Unstructured, kutil.VerbType, error)
func ResourceExists ¶
func ResourcesExists ¶
func ResourcesNotExists ¶
func TryUpdate ¶
func TryUpdate( ctx context.Context, c dynamic.Interface, gvr schema.GroupVersionResource, meta metav1.ObjectMeta, transform func(*unstructured.Unstructured) *unstructured.Unstructured, opts metav1.UpdateOptions, ) (result *unstructured.Unstructured, err error)
func UntilHasAnnotation ¶
func UntilHasLabel ¶
func UpdateStatus ¶
func UpdateStatus( ctx context.Context, c dynamic.Interface, gvr schema.GroupVersionResource, in *unstructured.Unstructured, transform func(*unstructured.Unstructured) *unstructured.Unstructured, opts metav1.UpdateOptions, ) (result *unstructured.Unstructured, err error)
func WaitUntilDeleted ¶
func WaitUntilDeleted(ri dynamic.ResourceInterface, stopCh <-chan struct{}, name string, subresources ...string) error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.