finalizer

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2018 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Finalizable

type Finalizable interface {
	GetFinalizers() []string
	SetFinalizers([]string)
}

Finalizable exposes function to modify finalizers in kubernetes objects

type Manager

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

Manager provides functions to modify finalizers in kubernetes objects

func NewManager

func NewManager(finalizerName string) *Manager

NewManager returns an instance of Manager configured with given finalizerName

func (*Manager) AddFinalizer

func (m *Manager) AddFinalizer(object Finalizable)

AddFinalizer adds finalizer to the object

func (*Manager) HasFinalizer

func (m *Manager) HasFinalizer(object Finalizable) bool

HasFinalizer returns true if the object has the finalizer specified in Manager

func (*Manager) RemoveFinalizer

func (m *Manager) RemoveFinalizer(object Finalizable)

RemoveFinalizer removes finalizer from the object

Jump to

Keyboard shortcuts

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