helper

package
v0.9.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// InvalidDNS1123Regexp not alphanumeric
	InvalidDNS1123Regexp = regexp.MustCompile(`[^0-9A-Za-z-]`)
)

Functions

func DNS1123Name added in v0.5.1

func DNS1123Name(in string) string

func GetEnvVar

func GetEnvVar(key, def string) string

func Int32Ptr added in v0.9.0

func Int32Ptr(i int32) *int32

func MapKeys added in v0.8.0

func MapKeys[M ~map[K]V, K comparable, V any](m M) []K

func MeteringLabels added in v0.6.0

func MeteringLabels(componentType ComponentType) map[string]string

Types

type ComponentType added in v0.6.0

type ComponentType string
const (
	ApplicationType    ComponentType = "application"
	InfrastructureType ComponentType = "infrastructure"
)

Jump to

Keyboard shortcuts

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