Documentation
¶
Overview ¶
Package listprocessor contains methods for filtering, sorting, and paginating lists of objects.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseQuery ¶
func ParseQuery(apiOp *types.APIRequest, gvKind string) (sqltypes.ListOptions, error)
ParseQuery parses the query params of a request and returns a ListOptions.
Types ¶
type Cache ¶
type Cache interface {
// ListByOptions returns objects according to the specified list options and partitions.
// Specifically:
// - an unstructured list of resources belonging to any of the specified partitions
// - the total number of resources (returned list might be a subset depending on pagination options in lo)
// - a summary object, containing the possible values for each field specified in a summary= subquery
// - a continue token, if there are more pages after the returned one
// - an error instead of all of the above if anything went wrong
ListByOptions(ctx context.Context, lo *sqltypes.ListOptions, partitions []partition.Partition, namespace string) (*unstructured.UnstructuredList, int, *types.APISummary, string, error)
}
Click to show internal directories.
Click to hide internal directories.