Documentation ¶
Index ¶
Constants ¶
View Source
const IDEncodedMaxLen = 27
IDEncodedMaxLen is the max length of an encoded ID (it can sometimes encode to something shorter).
Variables ¶
View Source
var ( ErrExists = errors.New("resource already exists") ErrNotFound = errors.New("resource not found") )
View Source
var GlobalID = ID{}
GlobalID is the zero value of ID, representing the ID of the abstract top-level "global" entity to which all resources belong.
View Source
var GlobalResource = Resource{}
Functions ¶
This section is empty.
Types ¶
type ID ¶
type ID struct { Kind Kind // contains filtered or unexported fields }
ID is a unique identifier for a pug entity.
type Resource ¶
func (Resource) Ancestors ¶
Ancestors provides a list of successive parents, starting with the direct parents.
func (Resource) HasAncestor ¶
Click to show internal directories.
Click to hide internal directories.