Documentation ¶
Index ¶
- func FromSettingHandlerToHandler(sync SettingHandler) generic.Handler
- func FromUserHandlerToHandler(sync UserHandler) generic.Handler
- func RegisterUserGeneratingHandler(ctx context.Context, controller UserController, apply apply.Apply, ...)
- func RegisterUserStatusHandler(ctx context.Context, controller UserController, condition condition.Cond, ...)
- func UpdateSettingDeepCopyOnChange(client SettingClient, obj *v3.Setting, ...) (*v3.Setting, error)
- func UpdateUserDeepCopyOnChange(client UserClient, obj *v3.User, handler func(obj *v3.User) (*v3.User, error)) (*v3.User, error)
- type Interface
- type SettingCache
- type SettingClient
- type SettingController
- type SettingHandler
- type SettingIndexer
- type UserCache
- type UserClient
- type UserController
- type UserGeneratingHandler
- type UserHandler
- type UserIndexer
- type UserStatusHandler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FromSettingHandlerToHandler ¶
func FromSettingHandlerToHandler(sync SettingHandler) generic.Handler
func FromUserHandlerToHandler ¶
func FromUserHandlerToHandler(sync UserHandler) generic.Handler
func RegisterUserGeneratingHandler ¶
func RegisterUserGeneratingHandler(ctx context.Context, controller UserController, apply apply.Apply, condition condition.Cond, name string, handler UserGeneratingHandler, opts *generic.GeneratingHandlerOptions)
func RegisterUserStatusHandler ¶
func RegisterUserStatusHandler(ctx context.Context, controller UserController, condition condition.Cond, name string, handler UserStatusHandler)
Types ¶
type Interface ¶
type Interface interface { Setting() SettingController User() UserController }
func New ¶
func New(controllerManager *generic.ControllerManager, client clientset.ManagementV3Interface, informers informers.Interface) Interface
type SettingCache ¶
type SettingClient ¶
type SettingClient interface { Create(*v3.Setting) (*v3.Setting, error) Update(*v3.Setting) (*v3.Setting, error) Delete(name string, options *metav1.DeleteOptions) error Get(name string, options metav1.GetOptions) (*v3.Setting, error) List(opts metav1.ListOptions) (*v3.SettingList, error) Watch(opts metav1.ListOptions) (watch.Interface, error) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v3.Setting, err error) }
type SettingController ¶
type SettingController interface { generic.ControllerMeta SettingClient OnChange(ctx context.Context, name string, sync SettingHandler) OnRemove(ctx context.Context, name string, sync SettingHandler) Enqueue(name string) EnqueueAfter(name string, duration time.Duration) Cache() SettingCache }
func NewSettingController ¶
func NewSettingController(gvk schema.GroupVersionKind, controllerManager *generic.ControllerManager, clientGetter clientset.SettingsGetter, informer informers.SettingInformer) SettingController
type UserClient ¶
type UserClient interface { Create(*v3.User) (*v3.User, error) Update(*v3.User) (*v3.User, error) UpdateStatus(*v3.User) (*v3.User, error) Delete(name string, options *metav1.DeleteOptions) error Get(name string, options metav1.GetOptions) (*v3.User, error) List(opts metav1.ListOptions) (*v3.UserList, error) Watch(opts metav1.ListOptions) (watch.Interface, error) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v3.User, err error) }
type UserController ¶
type UserController interface { generic.ControllerMeta UserClient OnChange(ctx context.Context, name string, sync UserHandler) OnRemove(ctx context.Context, name string, sync UserHandler) Enqueue(name string) EnqueueAfter(name string, duration time.Duration) Cache() UserCache }
func NewUserController ¶
func NewUserController(gvk schema.GroupVersionKind, controllerManager *generic.ControllerManager, clientGetter clientset.UsersGetter, informer informers.UserInformer) UserController
type UserGeneratingHandler ¶
type UserGeneratingHandler func(obj *v3.User, status v3.UserStatus) ([]runtime.Object, v3.UserStatus, error)
type UserStatusHandler ¶
type UserStatusHandler func(obj *v3.User, status v3.UserStatus) (v3.UserStatus, error)
Click to show internal directories.
Click to hide internal directories.