Documentation ¶
Index ¶
Constants ¶
View Source
const (
// DefaultNamespace is the default URN namespace for DigitalOcean resources.
DefaultNamespace = "do"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type URN ¶
type URN struct {
// contains filtered or unexported fields
}
URN is a unique, uniform identifier for a resource. This structure holds an URN parse into its three segments: a namespace, a collection and an identifier.
func ParseURN ¶
ParseURN parses a string representation of an URN and returns its structured representation (*URN).
func (*URN) Collection ¶
Collection returns the collection segment of the URN.
func (*URN) Identifier ¶
Identifier returns the identifier segment of the URN.
Click to show internal directories.
Click to hide internal directories.