taints

package
v1.28.1 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Map

type Map map[string]v1.Taint

func (Map) Slice

func (m Map) Slice() Slice

type Slice

type Slice []v1.Taint

func (Slice) ApplyTemplate

func (s Slice) ApplyTemplate(template []v1.Taint, lastApplied []v1.Taint) (Slice, bool)

ApplyTemplate use "template" slice to add new taints and update existin. lastApplied slice is used to delete excess taints.

func (Slice) Array

func (s Slice) Array() []v1.Taint

func (Slice) Equal

func (s Slice) Equal(in []v1.Taint) bool

Equal returns true if all taints in slice are equal to taints in "in" slice.

func (Slice) ExcessKeys

func (s Slice) ExcessKeys(in []v1.Taint) map[string]struct{}

ExcessKeys returns taint keys without equal keys from "in" taints.

func (Slice) HasKey

func (s Slice) HasKey(key string) bool

func (Slice) Merge

func (s Slice) Merge(in []v1.Taint) Slice

Merge returns new merged slice.

func (Slice) WithoutKey

func (s Slice) WithoutKey(key string) Slice

Jump to

Keyboard shortcuts

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