Documentation
¶
Index ¶
- Variables
- func GetAttrs(obj runtime.Object) (labels.Set, fields.Set, error)
- func MatchTask(label labels.Selector, fd fields.Selector) apistorage.SelectionPredicate
- func NameTriggerFunc(obj runtime.Object) string
- func NewStorage(optsGetter apigeneric.RESTOptionsGetter) (proxy.ResourceStorage, error)
- func OwnerPlaybookIndexFunc(obj any) ([]string, error)
- func ToSelectableFields(task *kkcorev1alpha1.Task) fields.Set
- type REST
- type StatusREST
- func (r *StatusREST) ConvertToTable(ctx context.Context, object runtime.Object, tableOptions runtime.Object) (*metav1.Table, error)
- func (r *StatusREST) Destroy()
- func (r *StatusREST) Get(ctx context.Context, name string, options *metav1.GetOptions) (runtime.Object, error)
- func (r *StatusREST) NamespaceScoped() bool
- func (r *StatusREST) New() runtime.Object
- func (r *StatusREST) Update(ctx context.Context, name string, objInfo apirest.UpdatedObjectInfo, ...) (runtime.Object, bool, error)
Constants ¶
This section is empty.
Variables ¶
var Strategy = taskStrategy{_const.Scheme, apinames.SimpleNameGenerator}
Strategy is the default logic that applies when creating and updating Pod objects via the REST API.
Functions ¶
func MatchTask ¶
func MatchTask(label labels.Selector, fd fields.Selector) apistorage.SelectionPredicate
MatchTask returns a generic matcher for a given label and field selector.
func NameTriggerFunc ¶
NameTriggerFunc returns value metadata.namespace of given object.
func NewStorage ¶
func NewStorage(optsGetter apigeneric.RESTOptionsGetter) (proxy.ResourceStorage, error)
NewStorage creates the storage for Task resource
func OwnerPlaybookIndexFunc ¶
OwnerPlaybookIndexFunc return value ownerReference.object is playbook.
func ToSelectableFields ¶
func ToSelectableFields(task *kkcorev1alpha1.Task) fields.Set
ToSelectableFields returns a field set that represents the object
Types ¶
type REST ¶
type REST struct {
*apiregistry.Store
}
REST is the REST storage wrapper for Task main resource
type StatusREST ¶
type StatusREST struct {
// contains filtered or unexported fields
}
StatusREST is the REST storage implementation for Task status subresource
func (*StatusREST) ConvertToTable ¶
func (r *StatusREST) ConvertToTable(ctx context.Context, object runtime.Object, tableOptions runtime.Object) (*metav1.Table, error)
ConvertToTable converts the object to table format
func (*StatusREST) Destroy ¶
func (r *StatusREST) Destroy()
Destroy cleans up resources Since the underlying store is shared with REST, it is not explicitly destroyed here
func (*StatusREST) Get ¶
func (r *StatusREST) Get(ctx context.Context, name string, options *metav1.GetOptions) (runtime.Object, error)
Get retrieves the object (used to support Patch operation)
func (*StatusREST) NamespaceScoped ¶
func (r *StatusREST) NamespaceScoped() bool
NamespaceScoped returns true, Task is a namespace-scoped resource
func (*StatusREST) Update ¶
func (r *StatusREST) Update( ctx context.Context, name string, objInfo apirest.UpdatedObjectInfo, createValidation apirest.ValidateObjectFunc, updateValidation apirest.ValidateObjectUpdateFunc, _ bool, options *metav1.UpdateOptions, ) (runtime.Object, bool, error)
Update updates the status subresource of an object