Documentation ¶
Index ¶
- func FromClusterConfigHandlerToHandler(sync ClusterConfigHandler) generic.Handler
- func UpdateClusterConfigDeepCopyOnChange(client ClusterConfigClient, obj *v1alpha1.ClusterConfig, ...) (*v1alpha1.ClusterConfig, error)
- type ClusterConfigCache
- type ClusterConfigClient
- type ClusterConfigController
- type ClusterConfigHandler
- type ClusterConfigIndexer
- type Interface
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FromClusterConfigHandlerToHandler ¶
func FromClusterConfigHandlerToHandler(sync ClusterConfigHandler) generic.Handler
func UpdateClusterConfigDeepCopyOnChange ¶
func UpdateClusterConfigDeepCopyOnChange(client ClusterConfigClient, obj *v1alpha1.ClusterConfig, handler func(obj *v1alpha1.ClusterConfig) (*v1alpha1.ClusterConfig, error)) (*v1alpha1.ClusterConfig, error)
Types ¶
type ClusterConfigCache ¶
type ClusterConfigCache interface { Get(name string) (*v1alpha1.ClusterConfig, error) List(selector labels.Selector) ([]*v1alpha1.ClusterConfig, error) AddIndexer(indexName string, indexer ClusterConfigIndexer) GetByIndex(indexName, key string) ([]*v1alpha1.ClusterConfig, error) }
type ClusterConfigClient ¶
type ClusterConfigClient interface { Create(*v1alpha1.ClusterConfig) (*v1alpha1.ClusterConfig, error) Update(*v1alpha1.ClusterConfig) (*v1alpha1.ClusterConfig, error) Delete(name string, options *metav1.DeleteOptions) error Get(name string, options metav1.GetOptions) (*v1alpha1.ClusterConfig, error) List(opts metav1.ListOptions) (*v1alpha1.ClusterConfigList, error) Watch(opts metav1.ListOptions) (watch.Interface, error) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1alpha1.ClusterConfig, err error) }
type ClusterConfigController ¶
type ClusterConfigController interface { generic.ControllerMeta ClusterConfigClient OnChange(ctx context.Context, name string, sync ClusterConfigHandler) OnRemove(ctx context.Context, name string, sync ClusterConfigHandler) Enqueue(name string) EnqueueAfter(name string, duration time.Duration) Cache() ClusterConfigCache }
func NewClusterConfigController ¶
func NewClusterConfigController(gvk schema.GroupVersionKind, resource string, namespaced bool, controller controller.SharedControllerFactory) ClusterConfigController
type ClusterConfigHandler ¶
type ClusterConfigHandler func(string, *v1alpha1.ClusterConfig) (*v1alpha1.ClusterConfig, error)
type ClusterConfigIndexer ¶
type ClusterConfigIndexer func(obj *v1alpha1.ClusterConfig) ([]string, error)
type Interface ¶
type Interface interface {
ClusterConfig() ClusterConfigController
}
func New ¶
func New(controllerFactory controller.SharedControllerFactory) Interface
Click to show internal directories.
Click to hide internal directories.