Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsAmbiguousError ¶
func IsNonexistentError ¶
Types ¶
type AmbiguousError ¶
type AmbiguousError struct {
// contains filtered or unexported fields
}
func NewAmbiguousError ¶
func NewAmbiguousError(format string, data ...interface{}) *AmbiguousError
type BaseFilter ¶
type BaseFilter interface {
// AmbiguousError specifies what to error if
// a single request returned multiple matches
AmbiguousError() *AmbiguousError
// NonexistentError specifies what to error if
// a single request returned no matches
NonexistentError() *NonexistentError
// SetKind sets the kind for the filter
SetKind(meta.Kind)
}
BaseFilter provides shared functionality for filter types
type Filterer ¶
type Filterer struct {
// contains filtered or unexported fields
}
func NewFilterer ¶
type MetaFilter ¶
type MetaFilter interface {
BaseFilter
// Every Object to be filtered is passed though FilterMeta, which should
// return the Object on match, or nil if it doesn't match. The Objects
// given to FilterMeta are of type meta.APIType, stripped of other contents.
FilterMeta(meta.Object) (meta.Object, error)
}
MetaFilter implementations operate on meta.APIType objects, which are more light weight, but provide only name/UID matching.
type NonexistentError ¶
type NonexistentError struct {
// contains filtered or unexported fields
}
func NewNonexistentError ¶
func NewNonexistentError(format string, data ...interface{}) *NonexistentError
type ObjectFilter ¶
type ObjectFilter interface {
BaseFilter
// Every Object to be filtered is passed though Filter, which should
// return the Object on match, or nil if it doesn't match
Filter(meta.Object) (meta.Object, error)
}
ObjectFilter implementations filter fully loaded meta.Objects
Click to show internal directories.
Click to hide internal directories.