Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrInvalidUID is returned when uid could not be decoded from the query. ErrInvalidUID = errors.New("ErrInvalidUID") // ErrInvalidName is returned when name could not be decoded from the query. ErrInvalidName = errors.New("ErrInvalidName") // ErrInvalidGroup is returned when group could not be decoded from the query. ErrInvalidGroup = errors.New("ErrInvalidGroup") // ErrInvalidVersion is returned when version could not be decoded from query. ErrInvalidVersion = errors.New("ErrInvalidVersion") // ErrInvalidKind is returned when kind could not be decoded from query. ErrInvalidKind = errors.New("ErrInvalidKind") // ErrInvalidNamespace is returned when namespace could not be decoded from the query. ErrInvalidNamespace = errors.New("ErrInvalidNamespace") // ErrInvalidEntity is returned when entity could not be decoded from the query. ErrInvalidEntity = errors.New("ErrInvalidEntity") // ErrNotImplemented is returned when requesting a feature that has not been implemented yet ErrNotImplemented = errors.New("ErrNotImplemented") )
Functions ¶
This section is empty.
Types ¶
type Matcher ¶
type Matcher interface { // Match given value Match(interface{}) bool // Predicate returns matcher Predicate Predicate() Predicate }
Matcher returns query matcher
type Predicate ¶
type Predicate interface { // Type returns predicate type Type() Type // Value returns predicate value Value() interface{} // String implements fmt.Stringer String() string }
Predicate is query predicate
type Query ¶
type Query interface { // Add a new predicate with MatchFunc to Query Add(Predicate, ...MatchFunc) Query // Matcher returns Matcher for given Type Matcher(Type) Matcher // Reset resets Query Reset() Query // String implements fmt.Stringer String() string }
Query is an experimental query interface. This is truly a wild experiment, alas it is used for querying space.Plan and space.Top.
Click to show internal directories.
Click to hide internal directories.