Documentation ¶
Index ¶
- func DefaultList(objects []runtime.Object, q *query.Query, compareFunc CompareFunc, ...) *api.ListResult
- func DefaultObjectList[T CustomResource](objects []T, q *query.Query, compareFunc CompareFunc, filterFunc FilterFunc, ...) *api.ListResult
- func DefaultObjectMetaCompare(left, right metav1.ObjectMeta, sortBy query.Field) bool
- func DefaultObjectMetaFilter(item metav1.ObjectMeta, filter query.Filter) bool
- type CompareFunc
- type CustomResource
- type ExtraLabelSelectable
- type FilterFunc
- type Interface
- type TransformFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultList ¶
func DefaultList(objects []runtime.Object, q *query.Query, compareFunc CompareFunc, filterFunc FilterFunc, transformFuncs ...TransformFunc) *api.ListResult
func DefaultObjectList ¶
func DefaultObjectList[T CustomResource](objects []T, q *query.Query, compareFunc CompareFunc, filterFunc FilterFunc, transformFuncs ...TransformFunc) *api.ListResult
func DefaultObjectMetaCompare ¶
func DefaultObjectMetaCompare(left, right metav1.ObjectMeta, sortBy query.Field) bool
DefaultObjectMetaCompare return true is left great than right
func DefaultObjectMetaFilter ¶
func DefaultObjectMetaFilter(item metav1.ObjectMeta, filter query.Filter) bool
Default metadata filter
Types ¶
type CompareFunc ¶
CompareFunc return true is left great than right
type ExtraLabelSelectable ¶
type ExtraLabelSelectable interface { Interface WithRequirements(requirements []labels.Requirement) }
ExtraLabelSelectable allows add more label selectors before listing
Click to show internal directories.
Click to hide internal directories.