Documentation ¶
Index ¶
- func DefaultList(objects []runtime.Object, q *query.Query, compareFunc CompareFunc, ...) ([]runtime.Object, *int64)
- func DefaultObjectMetaCompare(left, right metav1.Object, sortBy query.Field) bool
- func DefaultObjectMetaFilter(item metav1.Object, filter query.Filter) bool
- type CompareFunc
- type FilterFunc
- type ResourceManager
- 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) ([]runtime.Object, *int64)
func DefaultObjectMetaCompare ¶
DefaultObjectMetaCompare return true is left greater than right
Types ¶
type CompareFunc ¶
CompareFunc return true is left greater than right
type ResourceManager ¶
type ResourceManager interface { IsServed(schema.GroupVersionResource) (bool, error) CreateObjectFromRawData(gvr schema.GroupVersionResource, rawData []byte) (client.Object, error) CreateResource(ctx context.Context, object client.Object) error UpdateResource(ctx context.Context, object client.Object) error PatchResource(ctx context.Context, object client.Object) error DeleteResource(ctx context.Context, gvr schema.GroupVersionResource, namespace string, name string) error GetResource(ctx context.Context, gvr schema.GroupVersionResource, namespace string, name string) (client.Object, error) ListResources(ctx context.Context, gvr schema.GroupVersionResource, namespace string, query *query.Query) (client.ObjectList, error) Get(ctx context.Context, namespace, name string, object client.Object) error List(ctx context.Context, namespace string, query *query.Query, object client.ObjectList) error Create(ctx context.Context, object client.Object) error Delete(ctx context.Context, object client.Object) error Update(ctx context.Context, old, new client.Object) error Patch(ctx context.Context, old, new client.Object) error }
Click to show internal directories.
Click to hide internal directories.