Documentation
¶
Index ¶
- Variables
- func Contains(s []string, e string) bool
- func DerefOr[T any](p *T, defVal T) T
- func DerefOrZero[T any](p *T) T
- func Hash32(in string) (string, error)
- func InstallObjectOrder() func(o runtime.Object) int
- func MergeLabels(labelGroups ...map[string]string) map[string]string
- func NewLogger(name string, out, err io.Writer, level int) logr.Logger
- func ObjectKeyFromObjectMeta(o v1.Object) types.NamespacedName
- func OrderedStringMap(original map[string]string) *orderedmap.OrderedMap
- func UninstallObjectOrder() func(o runtime.Object) int
- type ResourceOrder
- type ResourceScoreFunc
- type RuntimeObjects
Constants ¶
This section is empty.
Variables ¶
View Source
var GlobalLogLevel = 0
Functions ¶
func DerefOrZero ¶ added in v0.38.0
func DerefOrZero[T any](p *T) T
DerefOrZero returns the value referenced by p, or the zero-value of the type
func InstallObjectOrder ¶
func MergeLabels ¶
MergeLabels merge into map[string]string map
func ObjectKeyFromObjectMeta ¶
func ObjectKeyFromObjectMeta(o v1.Object) types.NamespacedName
func OrderedStringMap ¶
func OrderedStringMap(original map[string]string) *orderedmap.OrderedMap
OrderedStringMap
func UninstallObjectOrder ¶
Types ¶
type ResourceOrder ¶
type ResourceOrder string
const ( InstallResourceOrder ResourceOrder = "Install" UninstallResourceOrder ResourceOrder = "Uninstall" )
type ResourceScoreFunc ¶
type RuntimeObjects ¶
func (RuntimeObjects) Sort ¶
func (os RuntimeObjects) Sort(order ResourceOrder)
Click to show internal directories.
Click to hide internal directories.