utils

package
v0.0.0-...-945ce85 Latest Latest
Warning

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

Go to latest
Published: May 3, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Parent

func Parent(project, location string) string

func ServiceName

func ServiceName(parent, service string) string

Types

type Finalizer

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

Finalizer manages the finalizers for resources in kubernetes

func NewFinalizer

func NewFinalizer(finalizerValue string) *Finalizer

NewFinalizer constructs a new finalizer manager

func (*Finalizer) Add

func (c *Finalizer) Add(resource finalizable)

Add adds a finalizer to an object

func (*Finalizer) IsDeletionCandidate

func (c *Finalizer) IsDeletionCandidate(resource finalizable) bool

IsDeletionCandidate checks if the resource is a candidate for deletion

func (*Finalizer) NeedToAdd

func (c *Finalizer) NeedToAdd(resource finalizable) bool

NeedToAdd checks if the resource should have but does not have the finalizer

func (*Finalizer) Remove

func (c *Finalizer) Remove(resource finalizable)

Remove removes a finalizer from an object

Jump to

Keyboard shortcuts

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