jx: github.com/jenkins-x/jx/pkg/kube/naming Index | Files

package naming

import "github.com/jenkins-x/jx/pkg/kube/naming"

Index

Package Files

names.go

func EmailToK8sID Uses

func EmailToK8sID(email string) string

EmailToK8sID converts the provided email address to a valid Kubernetes resource name, converting the @ to a .

func ToValidImageName Uses

func ToValidImageName(name string) string

ToValidImageName converts the given string into a valid docker image name

func ToValidImageVersion Uses

func ToValidImageVersion(version string) string

ToValidImageVersion converts the given string into a valid docker image version string

func ToValidName Uses

func ToValidName(name string) string

ToValidName converts the given string into a valid Kubernetes resource name

func ToValidNameTruncated Uses

func ToValidNameTruncated(name string, maxLength int) string

ToValidNameTruncated converts the given string into a valid Kubernetes resource name, truncating the result if it is more than maxLength characters.

func ToValidNameWithDots Uses

func ToValidNameWithDots(name string) string

ToValidNameWithDots converts the given string into a valid Kubernetes resource name

Package naming imports 5 packages (graph) and is imported by 27 packages. Updated 2019-08-14. Refresh now. Tools for package owners.