Documentation
¶
Index ¶
Constants ¶
View Source
const (
InvalidUnitName = errors.ConstError("invalid unit name")
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Name ¶
type Name string
Name represents a units name, used as a human-readable unique identifier.
func NewName ¶
NewName returns a new Name. If the name is invalid, an InvalidUnitName error will be returned.
func NewNameFromParts ¶
NewNameFromParts returns a new Name from the application and number parts. If the name is invalid, an InvalidUnitName error will be returned.
type UUID ¶
type UUID string
UUID represents a unit unique identifier.
func ParseID ¶
ParseID returns a new UUID from the given string. If the string is not a valid uuid an error satisfying errors.NotValid will be returned.
func (UUID) Validate ¶
Validate ensures the consistency of the UUID. If the uuid is invalid an error satisfying errors.NotValid will be returned.
Click to show internal directories.
Click to hide internal directories.