uniqname

package
v0.35.2 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const Separator = "@"

Separator is a separator between release name and namespace.

Variables

This section is empty.

Functions

func NewValidationError added in v0.31.0

func NewValidationError(uniq string) error

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) 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.

type ValidationError added in v0.30.2

type ValidationError struct {
	Uniq string
}

func (ValidationError) Error added in v0.30.2

func (err ValidationError) Error() string

Jump to

Keyboard shortcuts

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