Documentation ¶
Index ¶
- func Register(ctx context.Context, apply apply.Apply, ...)
- func SetRevisionOwner(obj *v1alpha1.DeviceTemplateRevision, uid types.UID) metav1.OwnerReference
- type Controller
- func (c *Controller) OnChanged(key string, obj *v1alpha1.DeviceTemplateRevision) (*v1alpha1.DeviceTemplateRevision, error)
- func (c *Controller) OnRemoved(key string, obj *v1alpha1.DeviceTemplateRevision) (*v1alpha1.DeviceTemplateRevision, error)
- func (c *Controller) SyncDeviceTemplateDefaultRevision(obj *v1alpha1.DeviceTemplateRevision, deviceTemplate *v1alpha1.DeviceTemplate, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Register ¶
func Register(ctx context.Context, apply apply.Apply, revisionController controllers.DeviceTemplateRevisionController, templateController controllers.DeviceTemplateController)
func SetRevisionOwner ¶
func SetRevisionOwner(obj *v1alpha1.DeviceTemplateRevision, uid types.UID) metav1.OwnerReference
Types ¶
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
func (*Controller) OnChanged ¶
func (c *Controller) OnChanged(key string, obj *v1alpha1.DeviceTemplateRevision) (*v1alpha1.DeviceTemplateRevision, error)
func (*Controller) OnRemoved ¶
func (c *Controller) OnRemoved(key string, obj *v1alpha1.DeviceTemplateRevision) (*v1alpha1.DeviceTemplateRevision, error)
func (*Controller) SyncDeviceTemplateDefaultRevision ¶
func (c *Controller) SyncDeviceTemplateDefaultRevision(obj *v1alpha1.DeviceTemplateRevision, deviceTemplate *v1alpha1.DeviceTemplate, onRemove bool) error
Click to show internal directories.
Click to hide internal directories.