uniqname

package
v0.21.1 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2022 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 (
	// ErrValidate is an error for failed uniqname validation.
	ErrValidate = errors.New("failed to validate uniqname")
)

Functions

This section is empty.

Types

type UniqName

type UniqName string

UniqName is an alias for string.

func Generate added in v0.17.0

func Generate(name, namespace string) (UniqName, error)

Generate returns uniqname for provided release name and namespace.

func GenerateWithDefaultNamespace added in v0.21.1

func GenerateWithDefaultNamespace(line, namespace string) (UniqName, error)

GenerateWithDefaultNamespace parses uniqname out of provided line. If there is no namespace in line default namespace will be used.

func (UniqName) Equal added in v0.20.0

func (n UniqName) Equal(a UniqName) bool

Equal checks whether uniqnames are equal.

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