Documentation ¶
Index ¶
- type DeleteOptions
- type Handler
- func (h Handler) Apply(ctx context.Context, obj client.Object) (*komv1alpha1.AppliedResource, error)
- func (h Handler) ApplyAll(ctx context.Context, r komtool.ResourceManager) ([]komv1alpha1.AppliedResource, error)
- func (h *Handler) Delete(ctx context.Context, object *unstructured.Unstructured, opts DeleteOptions) error
- func (h *Handler) DeleteAll(ctx context.Context, resources []*unstructured.Unstructured, ...) error
- func (h Handler) PatchStatus(ctx context.Context, obj client.Object) error
- type Owner
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DeleteOptions ¶
type DeleteOptions struct { // DeletionPropagation decides how the garbage collector will handle the propagation. DeletionPropagation metav1.DeletionPropagation // Inclusions determines which in-cluster objects are subject to deletion // based on the labels. // A nil Inclusions map means all objects are subject to deletion Inclusions map[string]string }
DeleteOptions contains options for delete requests.
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func NewHandler ¶
NewHelper returns an initialized Helper.
func (Handler) Apply ¶
func (h Handler) Apply(ctx context.Context, obj client.Object) (*komv1alpha1.AppliedResource, error)
func (Handler) ApplyAll ¶
func (h Handler) ApplyAll(ctx context.Context, r komtool.ResourceManager) ([]komv1alpha1.AppliedResource, error)
func (*Handler) Delete ¶
func (h *Handler) Delete(ctx context.Context, object *unstructured.Unstructured, opts DeleteOptions) error
Delete deletes the given object (not found errors are ignored).
func (*Handler) DeleteAll ¶
func (h *Handler) DeleteAll(ctx context.Context, resources []*unstructured.Unstructured, opts DeleteOptions) error
Click to show internal directories.
Click to hide internal directories.