Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckName ¶
CheckName returns an error when s holds a character no resource id, nor pattern of them, is made of.
func IsExact ¶
IsExact reports whether an expression element names one resource, rather than filtering on a set of them.
A driver group like "sync" and a pattern like "fs#d*" are filters: they say which of the resources an object has to act on, and an object having none is an object with nothing to do. A literal resource id like "fs#1" is a selection: it names a resource, and an object not having it was asked for something it cannot do.
The rules follow Match: an element parsing as a driver group with no index filters on that group, and every other element is matched with fnmatch, so it selects only when it holds no wildcard.
Types ¶
type T ¶
type T struct {
Name string
// contains filtered or unexported fields
}
func (*T) DriverGroup ¶
func (*T) IsIndexed ¶
IsIndexed reports whether the id has the <group>#<index> shape a resource section has.
A section without it, as a bare "node", names no resource, whatever its group: it is a section of another purpose, or of none.