Documentation
¶
Index ¶
- func FromProfileHandlerToHandler(sync ProfileHandler) generic.Handler
- func FromSecretHandlerToHandler(sync SecretHandler) generic.Handler
- func RegisterSecretGeneratingHandler(ctx context.Context, controller SecretController, apply apply.Apply, ...)
- func RegisterSecretStatusHandler(ctx context.Context, controller SecretController, condition condition.Cond, ...)
- func UpdateProfileDeepCopyOnChange(client ProfileClient, obj *v1alpha2.Profile, ...) (*v1alpha2.Profile, error)
- func UpdateSecretDeepCopyOnChange(client SecretClient, obj *v1alpha2.Secret, ...) (*v1alpha2.Secret, error)
- type Interface
- type ProfileCache
- type ProfileClient
- type ProfileController
- type ProfileHandler
- type ProfileIndexer
- type SecretCache
- type SecretClient
- type SecretController
- type SecretGeneratingHandler
- type SecretHandler
- type SecretIndexer
- type SecretStatusHandler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FromProfileHandlerToHandler ¶
func FromProfileHandlerToHandler(sync ProfileHandler) generic.Handler
func FromSecretHandlerToHandler ¶
func FromSecretHandlerToHandler(sync SecretHandler) generic.Handler
func RegisterSecretGeneratingHandler ¶
func RegisterSecretGeneratingHandler(ctx context.Context, controller SecretController, apply apply.Apply, condition condition.Cond, name string, handler SecretGeneratingHandler, opts *generic.GeneratingHandlerOptions)
func RegisterSecretStatusHandler ¶
func RegisterSecretStatusHandler(ctx context.Context, controller SecretController, condition condition.Cond, name string, handler SecretStatusHandler)
Types ¶
type Interface ¶
type Interface interface {
Profile() ProfileController
Secret() SecretController
}
func New ¶
func New(controllerFactory controller.SharedControllerFactory) Interface
type ProfileCache ¶
type ProfileClient ¶
type ProfileClient interface {
Create(*v1alpha2.Profile) (*v1alpha2.Profile, error)
Update(*v1alpha2.Profile) (*v1alpha2.Profile, error)
Delete(namespace, name string, options *metav1.DeleteOptions) error
Get(namespace, name string, options metav1.GetOptions) (*v1alpha2.Profile, error)
List(namespace string, opts metav1.ListOptions) (*v1alpha2.ProfileList, error)
Watch(namespace string, opts metav1.ListOptions) (watch.Interface, error)
Patch(namespace, name string, pt types.PatchType, data []byte, subresources ...string) (result *v1alpha2.Profile, err error)
}
type ProfileController ¶
type ProfileController interface {
generic.ControllerMeta
ProfileClient
OnChange(ctx context.Context, name string, sync ProfileHandler)
OnRemove(ctx context.Context, name string, sync ProfileHandler)
Enqueue(namespace, name string)
EnqueueAfter(namespace, name string, duration time.Duration)
Cache() ProfileCache
}
func NewProfileController ¶
func NewProfileController(gvk schema.GroupVersionKind, resource string, namespaced bool, controller controller.SharedControllerFactory) ProfileController
type ProfileHandler ¶
type SecretCache ¶
type SecretClient ¶
type SecretClient interface {
Create(*v1alpha2.Secret) (*v1alpha2.Secret, error)
Update(*v1alpha2.Secret) (*v1alpha2.Secret, error)
UpdateStatus(*v1alpha2.Secret) (*v1alpha2.Secret, error)
Delete(namespace, name string, options *metav1.DeleteOptions) error
Get(namespace, name string, options metav1.GetOptions) (*v1alpha2.Secret, error)
List(namespace string, opts metav1.ListOptions) (*v1alpha2.SecretList, error)
Watch(namespace string, opts metav1.ListOptions) (watch.Interface, error)
Patch(namespace, name string, pt types.PatchType, data []byte, subresources ...string) (result *v1alpha2.Secret, err error)
}
type SecretController ¶
type SecretController interface {
generic.ControllerMeta
SecretClient
OnChange(ctx context.Context, name string, sync SecretHandler)
OnRemove(ctx context.Context, name string, sync SecretHandler)
Enqueue(namespace, name string)
EnqueueAfter(namespace, name string, duration time.Duration)
Cache() SecretCache
}
func NewSecretController ¶
func NewSecretController(gvk schema.GroupVersionKind, resource string, namespaced bool, controller controller.SharedControllerFactory) SecretController
type SecretGeneratingHandler ¶
type SecretGeneratingHandler func(obj *v1alpha2.Secret, status v1alpha2.SecretStatus) ([]runtime.Object, v1alpha2.SecretStatus, error)
type SecretStatusHandler ¶
type SecretStatusHandler func(obj *v1alpha2.Secret, status v1alpha2.SecretStatus) (v1alpha2.SecretStatus, error)
Click to show internal directories.
Click to hide internal directories.