util

package
v0.0.0-...-ec00d85 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigMapAsBytes

func ConfigMapAsBytes(cm *corev1.ConfigMap) ([]byte, error)

ConfigMapAsBytes returns given config map as bytes.

func DigestToKeyPrefix

func DigestToKeyPrefix(digest string, newDivider string) (string, error)

DigestToKeyPrefix changes digest to use the provided newDivider in place of ':', {algo}{newDivider}{hash} instead of {algo}:{hash}, because colons are not allowed in various places such as ConfigMap keys.

func ReadConfigMap

func ReadConfigMap(objBytes []byte) (*corev1.ConfigMap, error)

ReadConfigMap reads config map object from bytes. nil is returned if the object cannot be decoded as a config map.

Types

This section is empty.

Jump to

Keyboard shortcuts

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