utils

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DownwardAPIAnnotation

func DownwardAPIAnnotation(annotation_prefix, name string) string

DownwardAPIAnnotation makes a downward api annotation name from the given name.

func DownwardAPILabel

func DownwardAPILabel(label_prefix, name string) string

DownwardAPILabel makes a downward api label name from the given name.

func PrepareDownwardAPILabels

func PrepareDownwardAPILabels(
	obj interface{},
	downwardAPILabels map[string]string,
	prefix string,
) (map[string]string, error)

Types

type ID

type ID struct {
	Type string
	ID   string
}

func MakeID

func MakeID(typ, id string) ID

func ParseID

func ParseID(s string) (ID, error)

func (*ID) String

func (i *ID) String() string

func (*ID) UnmarshalText

func (i *ID) UnmarshalText(data []byte) error

Jump to

Keyboard shortcuts

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