uniqname

package
v0.41.2 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const Separator = "@"

Separator is a separator between release Name and Namespace.

Variables

View Source
var (
	NamespaceRegexp   = regexp.MustCompile("^[a-z0-9]([-a-z0-9]*[a-z0-9])?$")
	KubecontextRegexp = regexp.MustCompile("^[a-z0-9]([-_.:/a-z0-9]*[a-z0-9])?$")
	ReleaseRegexp     = regexp.MustCompile("^[a-z0-9]([-a-z0-9]*[a-z0-9])?$")
)

Functions

This section is empty.

Types

type UniqName

type UniqName struct {
	Name      string
	Namespace string
	Context   string
}

UniqName is a unique identificator for release.

func New added in v0.38.0

func New(name, namespace, context string) (UniqName, error)

New returns uniqname for provided release Name and Namespace.

func NewFromString added in v0.38.0

func NewFromString(line string) (UniqName, error)

func (UniqName) Empty added in v0.38.0

func (n UniqName) Empty() bool

func (UniqName) Equal added in v0.20.0

func (n UniqName) Equal(a UniqName) bool

Equal checks whether uniqnames are equal.

func (UniqName) Error added in v0.38.0

func (n UniqName) Error(part string) error

func (UniqName) String added in v0.24.0

func (n UniqName) String() string

func (UniqName) Validate added in v0.16.1

func (n UniqName) Validate() error

Validate validates this object.

Jump to

Keyboard shortcuts

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