deleter

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 5, 2022 License: MIT Imports: 9 Imported by: 1

Documentation

Overview

Package deleter provides a kubectl deleter that can be easily imported and used to delete resources. It is similar to the declarative applier package in kubebuilder-declarative-pattern.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

Types

type DirectDeleter

type DirectDeleter struct {
	// contains filtered or unexported fields
}

DirectDeleter deletes a given manifest. It is based on DirectApplier. NOTE: This implementation will change after the upstream deleter package is refactored to be more like the applier.

func NewDirectDeleter

func NewDirectDeleter() *DirectDeleter

NewDirectDeleter returns an instance of a DirectDeleter.

func (*DirectDeleter) Delete

func (d *DirectDeleter) Delete(ctx context.Context, namespace string, manifest string, validate bool, extraArgs ...string) error

Delete deletes the given manifest. NOTE: Some arguments like namespace and extraArgs are no-op at the moment. They exist to be consistent with the kubebuilder-declarative-pattern's Applier interface. They are not part of the DeleteOptions at the moment. This will change as the upstream delete package is refactored in the future.

func (*DirectDeleter) IOStreams

func (d *DirectDeleter) IOStreams(ioStreams genericclioptions.IOStreams) *DirectDeleter

IOStreams sets the IOStreams of the deleter.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL