Documentation ¶
Index ¶
- Constants
- func AddAnnotation(obj metav1.Object, annotation string, value string)
- func Base64(src string, length int) string
- func ContainersToMap(containers []corev1.Container) map[string]corev1.Container
- func GetAnnotation(obj metav1.Object, annotation string) (string, bool)
- func HasAnnotation(obj metav1.Object, annotation string) bool
- func RemoveAnnotation(obj metav1.Object, annotation string)
- func SetContainer(containers []corev1.Container, container *corev1.Container)
- func ToDNSName(prefix string, name string, suffix string) string
Constants ¶
View Source
const (
// ResourceNameLengthLimit stores maximum allowed Length for a ResourceName
ResourceNameLengthLimit = 63
)
Variables ¶
This section is empty.
Functions ¶
func AddAnnotation ¶
AddAnnotation creates or updates an annotation on an object meta. The Annotations map is initialized if nil
func Base64 ¶
Base64 returns the n first characters of a base64 encoding of src. It returns the full base64 if length equals 0
func ContainersToMap ¶
ContainersToMap maps an array of containers indexed by the container name
func GetAnnotation ¶
GetAnnotation safely returns an annotation value if it exists
func HasAnnotation ¶
HasAnnotation safely checks if an annotation exists
func RemoveAnnotation ¶
RemoveAnnotation removes an annotation on an object meta
func SetContainer ¶
SetContainer replace a container in an array by finding it by its name
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.