deletions

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2019 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Deleter

type Deleter interface {
	// Delete walks all resources in the visitor and attempts to delete them.
	// Optionally, it waits for until the deletion of the resources is complete
	// if the Deleter supports waiting.
	Delete(v resource.Visitor) error
}

Deleter is a resource deleter.

func NewDeleter

func NewDeleter(streams genericclioptions.IOStreams, client dynamic.Interface, printer printers.ContextPrinter, dryRun bool) Deleter

NewDeleter creates a new resource deleter.

func NewSilentDeleter added in v0.0.2

func NewSilentDeleter(streams genericclioptions.IOStreams, client dynamic.Interface, dryRun bool) Deleter

NewSilentDeleter creates a new resource deleter that does not print deleted objects.

type FakeDeleter

type FakeDeleter struct {
	sync.Mutex
	Infos  []*resource.Info
	Called int
}

func NewFakeDeleter

func NewFakeDeleter() *FakeDeleter

func (*FakeDeleter) Delete

func (d *FakeDeleter) Delete(v resource.Visitor) error

Jump to

Keyboard shortcuts

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