collection

package
v0.0.0-...-bc898c7 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AnnotationsPatch

func AnnotationsPatch(mode api.LabelsMode, expected map[string]string, actual map[string]string, ignored ...string) patch.Patch

func Compare

func Compare(a, b map[string]string) bool

func LabelsPatch

func LabelsPatch(mode api.LabelsMode, expected map[string]string, actual map[string]string, ignored ...string) patch.Patch

func MergeAnnotations

func MergeAnnotations(annotations ...map[string]string) map[string]string

MergeAnnotations into one annotations map

Types

type RestrictedList

type RestrictedList []string

func NewRestrictedList

func NewRestrictedList(param ...string) RestrictedList

func ReservedLabels

func ReservedLabels() RestrictedList

func (RestrictedList) Filter

func (r RestrictedList) Filter(m map[string]string) map[string]string

func (RestrictedList) IsRestricted

func (r RestrictedList) IsRestricted(s string) bool

Jump to

Keyboard shortcuts

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