utils

package
v1.4.4 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteTaintsByKey

func DeleteTaintsByKey(taints []v1.Taint, taintKey string) ([]v1.Taint, bool)

DeleteTaintsByKey removes all the taints that have the same key to given taintKey

func TaintKeyExists

func TaintKeyExists(taints []v1.Taint, taintKeyToMatch string) bool

TaintKeyExists checks if the given taint key exists in list of taints. Returns true if exists false otherwise.

Types

type LeaseDelegatedCounter

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

func NewLeaseDelegatedCounter

func NewLeaseDelegatedCounter() *LeaseDelegatedCounter

func (*LeaseDelegatedCounter) Counter

func (dc *LeaseDelegatedCounter) Counter(name string) int

func (*LeaseDelegatedCounter) Dec

func (dc *LeaseDelegatedCounter) Dec(name string)

func (*LeaseDelegatedCounter) Del

func (dc *LeaseDelegatedCounter) Del(name string)

func (*LeaseDelegatedCounter) Inc

func (dc *LeaseDelegatedCounter) Inc(name string)

func (*LeaseDelegatedCounter) Reset

func (dc *LeaseDelegatedCounter) Reset(name string)

Jump to

Keyboard shortcuts

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