util

package
v1.20.1 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2025 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MapCopy

func MapCopy(src map[string]string) map[string]string

MapCopy makes (shallow) copy of src map

func MapEqual

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

MapEqual compares maps for equality

func MapFilterByKeys

func MapFilterByKeys(m map[string]string, keys []string) map[string]string

MapFilterByKeys returns a new map that contains keys from the keys array existing in the m map.

func MapMerge

func MapMerge(ms ...map[string]string) map[string]string

MapMerge merges maps ms from left to right with overwriting existing keys

Types

type ApplyStatus added in v1.16.0

type ApplyStatus string
const (
	ApplyStatusCreated   ApplyStatus = "created"
	ApplyStatusUpdated   ApplyStatus = "updated"
	ApplyStatusUnchanged ApplyStatus = "unchanged"
)

func Apply added in v1.16.0

func Apply(ctx context.Context, cl client.Client, obj client.Object) (ApplyStatus, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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