Documentation ¶
Index ¶
- Variables
- func CopyInto(dst, src runtime.Object) error
- type Backend
- func (c Backend) Create(ctx context.Context, obj kclient.Object, opts ...kclient.CreateOption) error
- func (c Backend) Delete(ctx context.Context, obj kclient.Object, opts ...kclient.DeleteOption) error
- func (c Backend) DeleteAllOf(ctx context.Context, obj kclient.Object, opts ...kclient.DeleteAllOfOption) error
- func (b *Backend) GVKForObject(obj runtime.Object, scheme *runtime.Scheme) (schema.GroupVersionKind, error)
- func (c Backend) Get(ctx context.Context, key kclient.ObjectKey, obj kclient.Object, ...) error
- func (b *Backend) GetInformerForKind(ctx context.Context, gvk schema.GroupVersionKind) (kcache.SharedIndexInformer, error)
- func (b *Backend) GroupVersionKindFor(obj runtime.Object) (schema.GroupVersionKind, error)
- func (b *Backend) IndexField(ctx context.Context, obj kclient.Object, field string, ...) error
- func (b *Backend) IsObjectNamespaced(obj runtime.Object) (bool, error)
- func (c Backend) List(ctx context.Context, list kclient.ObjectList, opts ...kclient.ListOption) error
- func (c Backend) Patch(ctx context.Context, obj kclient.Object, patch kclient.Patch, ...) error
- func (c Backend) RESTMapper() meta.RESTMapper
- func (c Backend) Scheme() *runtime.Scheme
- func (b *Backend) Start(ctx context.Context) (err error)
- func (c Backend) Status() kclient.StatusWriter
- func (c Backend) SubResource(subResource string) kclient.SubResourceClient
- func (b *Backend) Trigger(gvk schema.GroupVersionKind, key string, delay time.Duration) error
- func (c Backend) Update(ctx context.Context, obj kclient.Object, opts ...kclient.UpdateOption) error
- func (c Backend) Watch(ctx context.Context, obj kclient.ObjectList, opts ...kclient.ListOption) (watch.Interface, error)
- func (b *Backend) Watcher(ctx context.Context, gvk schema.GroupVersionKind, name string, ...) error
- type Config
- type Controller
- type Handler
- type HandlerFunc
- type HandlerTransaction
- type Options
- type ResourceVersionGetter
- type Runtime
- func NewRuntime(cfg *rest.Config, scheme *runtime.Scheme) (*Runtime, error)
- func NewRuntimeForNamespace(cfg *rest.Config, namespace string, scheme *runtime.Scheme) (*Runtime, error)
- func NewRuntimeWithConfig(cfg Config, scheme *runtime.Scheme) (*Runtime, error)
- func NewRuntimeWithConfigs(defaultConfig Config, apiGroupConfigs map[string]Config, ...) (*Runtime, error)
- type SharedController
- type SharedControllerFactory
- type SharedControllerFactoryOptions
- type SharedControllerHandler
- type SharedControllerHandlerFunc
- type SharedHandler
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultThreadiness = 50
View Source
var (
ErrIgnore = errors.New("ignore handler error")
)
Functions ¶
Types ¶
type Backend ¶
type Backend struct {
// contains filtered or unexported fields
}
func (Backend) DeleteAllOf ¶
func (*Backend) GVKForObject ¶
func (*Backend) GetInformerForKind ¶
func (b *Backend) GetInformerForKind(ctx context.Context, gvk schema.GroupVersionKind) (kcache.SharedIndexInformer, error)
func (*Backend) GroupVersionKindFor ¶
func (*Backend) IndexField ¶
func (*Backend) IsObjectNamespaced ¶
func (Backend) List ¶
func (c Backend) List(ctx context.Context, list kclient.ObjectList, opts ...kclient.ListOption) error
func (Backend) RESTMapper ¶
func (c Backend) RESTMapper() meta.RESTMapper
func (Backend) Status ¶
func (c Backend) Status() kclient.StatusWriter
func (Backend) SubResource ¶
func (c Backend) SubResource(subResource string) kclient.SubResourceClient
type Controller ¶
type HandlerFunc ¶
type HandlerTransaction ¶
func NewHandlerTransaction ¶
func NewHandlerTransaction(ctx context.Context) *HandlerTransaction
func (*HandlerTransaction) Commit ¶
func (h *HandlerTransaction) Commit()
func (*HandlerTransaction) Rollback ¶
func (h *HandlerTransaction) Rollback()
type Options ¶
type Options struct {
RateLimiter workqueue.RateLimiter
}
type ResourceVersionGetter ¶
type ResourceVersionGetter interface {
GetResourceVersion() string
}
type Runtime ¶
type Runtime struct {
Backend *Backend
}
func NewRuntimeForNamespace ¶
func NewRuntimeWithConfig ¶
type SharedController ¶
type SharedController interface { Controller }
type SharedControllerFactory ¶
type SharedControllerFactory interface {}
func NewSharedControllerFactory ¶
func NewSharedControllerFactory(c kclient.Client, cache cache.Cache, opts *SharedControllerFactoryOptions) SharedControllerFactory
type SharedControllerFactoryOptions ¶
type SharedControllerFactoryOptions struct {}
type SharedControllerHandler ¶
type SharedControllerHandler interface {
}type SharedHandler ¶
type SharedHandler struct {
// contains filtered or unexported fields
}
func (*SharedHandler) OnChange ¶
func (h *SharedHandler) OnChange(key string, obj runtime.Object) error
func (*SharedHandler) Register ¶
func (h *SharedHandler) Register(ctx context.Context, name string, handler SharedControllerHandler)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.