Documentation ¶
Overview ¶
Package urnx is a package for creating and parsing Infratographer based URNs in the format of urn:<namespace>:<resource type>:<resource id> which are used to identify resources in the Infratographer ecosystem.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ErrInvalidURN = errors.New("invalid urn: expected 'urn:<namespace>:<resource type>:<resource id>")
ErrInvalidURN is returned when the URN is invalid
var ErrInvalidURNNamespace = errors.New("invalid urn namespace: expected string consisting of [A-za-z0-9-]{1,30}")
ErrInvalidURNNamespace is returned when the URN namespace is invalid and does not match the regex [A-za-z0-9-]{1,30}
var ErrInvalidURNPrefix = errors.New("invalid urn prefix: expected '" + prefix + "'")
ErrInvalidURNPrefix is returned when the URN prefix is invalid
var ErrInvalidURNResourceID = errors.New("invalid urn resource id: expected valid uuid")
ErrInvalidURNResourceID is returned when the URN resource ID is invalid and not a valid UUID
var ErrInvalidURNResourceType = errors.New("invalid urn resource type: expected string consisting of [A-za-z0-9-]{1,255}")
ErrInvalidURNResourceType is returned when the URN resource type is invalid and does not match the regex [A-za-z0-9-]{1,}
Functions ¶
This section is empty.