Documentation ¶
Index ¶
- func FromHelmChartHandlerToHandler(sync HelmChartHandler) generic.Handler
- func RegisterHelmChartGeneratingHandler(ctx context.Context, controller HelmChartController, apply apply.Apply, ...)
- func RegisterHelmChartStatusHandler(ctx context.Context, controller HelmChartController, condition condition.Cond, ...)
- type HelmChartCache
- type HelmChartClient
- type HelmChartConfigCache
- type HelmChartConfigClient
- type HelmChartConfigController
- type HelmChartConfigGenericCache
- type HelmChartConfigGenericController
- func (c *HelmChartConfigGenericController) Cache() HelmChartConfigCache
- func (c *HelmChartConfigGenericController) OnChange(ctx context.Context, name string, sync HelmChartConfigHandler)
- func (c *HelmChartConfigGenericController) OnRemove(ctx context.Context, name string, sync HelmChartConfigHandler)
- type HelmChartConfigHandler
- type HelmChartConfigIndexer
- type HelmChartController
- type HelmChartGeneratingHandler
- type HelmChartGenericCache
- type HelmChartGenericController
- type HelmChartHandler
- type HelmChartIndexer
- type HelmChartStatusHandler
- type Interface
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FromHelmChartHandlerToHandler ¶
func FromHelmChartHandlerToHandler(sync HelmChartHandler) generic.Handler
func RegisterHelmChartGeneratingHandler ¶
func RegisterHelmChartGeneratingHandler(ctx context.Context, controller HelmChartController, apply apply.Apply, condition condition.Cond, name string, handler HelmChartGeneratingHandler, opts *generic.GeneratingHandlerOptions)
func RegisterHelmChartStatusHandler ¶
func RegisterHelmChartStatusHandler(ctx context.Context, controller HelmChartController, condition condition.Cond, name string, handler HelmChartStatusHandler)
Types ¶
type HelmChartCache ¶
type HelmChartCache interface { // Get returns the resources with the specified name from the cache. Get(namespace, name string) (*v1.HelmChart, error) // List will attempt to find resources from the Cache. List(namespace string, selector labels.Selector) ([]*v1.HelmChart, error) // AddIndexer adds a new Indexer to the cache with the provided name. // If you call this after you already have data in the store, the results are undefined. AddIndexer(indexName string, indexer HelmChartIndexer) // GetByIndex returns the stored objects whose set of indexed values // for the named index includes the given indexed value. GetByIndex(indexName, key string) ([]*v1.HelmChart, error) }
HelmChartCache interface for retrieving HelmChart resources in memory.
type HelmChartClient ¶
type HelmChartClient interface { // Create creates a new object and return the newly created Object or an error. Create(*v1.HelmChart) (*v1.HelmChart, error) // Update updates the object and return the newly updated Object or an error. Update(*v1.HelmChart) (*v1.HelmChart, error) // UpdateStatus updates the Status field of a the object and return the newly updated Object or an error. // Will always return an error if the object does not have a status field. UpdateStatus(*v1.HelmChart) (*v1.HelmChart, error) // Delete deletes the Object in the given name. Delete(namespace, name string, options *metav1.DeleteOptions) error // Get will attempt to retrieve the resource with the specified name. Get(namespace, name string, options metav1.GetOptions) (*v1.HelmChart, error) // List will attempt to find multiple resources. List(namespace string, opts metav1.ListOptions) (*v1.HelmChartList, error) // Watch will start watching resources. Watch(namespace string, opts metav1.ListOptions) (watch.Interface, error) // Patch will patch the resource with the matching name. Patch(namespace, name string, pt types.PatchType, data []byte, subresources ...string) (result *v1.HelmChart, err error) }
HelmChartClient interface for managing HelmChart resources in Kubernetes.
type HelmChartConfigCache ¶
type HelmChartConfigCache interface { // Get returns the resources with the specified name from the cache. Get(namespace, name string) (*v1.HelmChartConfig, error) // List will attempt to find resources from the Cache. List(namespace string, selector labels.Selector) ([]*v1.HelmChartConfig, error) // AddIndexer adds a new Indexer to the cache with the provided name. // If you call this after you already have data in the store, the results are undefined. AddIndexer(indexName string, indexer HelmChartConfigIndexer) // GetByIndex returns the stored objects whose set of indexed values // for the named index includes the given indexed value. GetByIndex(indexName, key string) ([]*v1.HelmChartConfig, error) }
HelmChartConfigCache interface for retrieving HelmChartConfig resources in memory.
type HelmChartConfigClient ¶
type HelmChartConfigClient interface { // Create creates a new object and return the newly created Object or an error. Create(*v1.HelmChartConfig) (*v1.HelmChartConfig, error) // Update updates the object and return the newly updated Object or an error. Update(*v1.HelmChartConfig) (*v1.HelmChartConfig, error) // Delete deletes the Object in the given name. Delete(namespace, name string, options *metav1.DeleteOptions) error // Get will attempt to retrieve the resource with the specified name. Get(namespace, name string, options metav1.GetOptions) (*v1.HelmChartConfig, error) // List will attempt to find multiple resources. List(namespace string, opts metav1.ListOptions) (*v1.HelmChartConfigList, error) // Watch will start watching resources. Watch(namespace string, opts metav1.ListOptions) (watch.Interface, error) // Patch will patch the resource with the matching name. Patch(namespace, name string, pt types.PatchType, data []byte, subresources ...string) (result *v1.HelmChartConfig, err error) }
HelmChartConfigClient interface for managing HelmChartConfig resources in Kubernetes.
type HelmChartConfigController ¶
type HelmChartConfigController interface { generic.ControllerMeta HelmChartConfigClient // OnChange runs the given handler when the controller detects a resource was changed. OnChange(ctx context.Context, name string, sync HelmChartConfigHandler) // OnRemove runs the given handler when the controller detects a resource was changed. OnRemove(ctx context.Context, name string, sync HelmChartConfigHandler) // Enqueue adds the resource with the given name to the worker queue of the controller. Enqueue(namespace, name string) // EnqueueAfter runs Enqueue after the provided duration. EnqueueAfter(namespace, name string, duration time.Duration) // Cache returns a cache for the resource type T. Cache() HelmChartConfigCache }
HelmChartConfigController interface for managing HelmChartConfig resources.
type HelmChartConfigGenericCache ¶ added in v0.15.3
type HelmChartConfigGenericCache struct { generic.CacheInterface[*v1.HelmChartConfig] }
HelmChartConfigGenericCache wraps wrangler/pkg/generic.Cache so the function definitions adhere to HelmChartConfigCache interface.
func (HelmChartConfigGenericCache) AddIndexer ¶ added in v0.15.3
func (c HelmChartConfigGenericCache) AddIndexer(indexName string, indexer HelmChartConfigIndexer)
AddIndexer adds a new Indexer to the cache with the provided name. If you call this after you already have data in the store, the results are undefined.
type HelmChartConfigGenericController ¶ added in v0.15.3
type HelmChartConfigGenericController struct { generic.ControllerInterface[*v1.HelmChartConfig, *v1.HelmChartConfigList] }
HelmChartConfigGenericController wraps wrangler/pkg/generic.Controller so that the function definitions adhere to HelmChartConfigController interface.
func (*HelmChartConfigGenericController) Cache ¶ added in v0.15.3
func (c *HelmChartConfigGenericController) Cache() HelmChartConfigCache
Cache returns a cache of resources in memory.
func (*HelmChartConfigGenericController) OnChange ¶ added in v0.15.3
func (c *HelmChartConfigGenericController) OnChange(ctx context.Context, name string, sync HelmChartConfigHandler)
OnChange runs the given resource handler when the controller detects a resource was changed.
func (*HelmChartConfigGenericController) OnRemove ¶ added in v0.15.3
func (c *HelmChartConfigGenericController) OnRemove(ctx context.Context, name string, sync HelmChartConfigHandler)
OnRemove runs the given object handler when the controller detects a resource was changed.
type HelmChartConfigHandler ¶
type HelmChartConfigHandler func(string, *v1.HelmChartConfig) (*v1.HelmChartConfig, error)
HelmChartConfigHandler is function for performing any potential modifications to a HelmChartConfig resource.
type HelmChartConfigIndexer ¶
type HelmChartConfigIndexer func(obj *v1.HelmChartConfig) ([]string, error)
HelmChartConfigIndexer computes a set of indexed values for the provided object.
type HelmChartController ¶
type HelmChartController interface { generic.ControllerMeta HelmChartClient // OnChange runs the given handler when the controller detects a resource was changed. OnChange(ctx context.Context, name string, sync HelmChartHandler) // OnRemove runs the given handler when the controller detects a resource was changed. OnRemove(ctx context.Context, name string, sync HelmChartHandler) // Enqueue adds the resource with the given name to the worker queue of the controller. Enqueue(namespace, name string) // EnqueueAfter runs Enqueue after the provided duration. EnqueueAfter(namespace, name string, duration time.Duration) // Cache returns a cache for the resource type T. Cache() HelmChartCache }
HelmChartController interface for managing HelmChart resources.
type HelmChartGeneratingHandler ¶
type HelmChartGeneratingHandler func(obj *v1.HelmChart, status v1.HelmChartStatus) ([]runtime.Object, v1.HelmChartStatus, error)
type HelmChartGenericCache ¶ added in v0.15.3
type HelmChartGenericCache struct { generic.CacheInterface[*v1.HelmChart] }
HelmChartGenericCache wraps wrangler/pkg/generic.Cache so the function definitions adhere to HelmChartCache interface.
func (HelmChartGenericCache) AddIndexer ¶ added in v0.15.3
func (c HelmChartGenericCache) AddIndexer(indexName string, indexer HelmChartIndexer)
AddIndexer adds a new Indexer to the cache with the provided name. If you call this after you already have data in the store, the results are undefined.
type HelmChartGenericController ¶ added in v0.15.3
type HelmChartGenericController struct { generic.ControllerInterface[*v1.HelmChart, *v1.HelmChartList] }
HelmChartGenericController wraps wrangler/pkg/generic.Controller so that the function definitions adhere to HelmChartController interface.
func (*HelmChartGenericController) Cache ¶ added in v0.15.3
func (c *HelmChartGenericController) Cache() HelmChartCache
Cache returns a cache of resources in memory.
func (*HelmChartGenericController) OnChange ¶ added in v0.15.3
func (c *HelmChartGenericController) OnChange(ctx context.Context, name string, sync HelmChartHandler)
OnChange runs the given resource handler when the controller detects a resource was changed.
func (*HelmChartGenericController) OnRemove ¶ added in v0.15.3
func (c *HelmChartGenericController) OnRemove(ctx context.Context, name string, sync HelmChartHandler)
OnRemove runs the given object handler when the controller detects a resource was changed.
type HelmChartHandler ¶
HelmChartHandler is function for performing any potential modifications to a HelmChart resource.
type HelmChartIndexer ¶
HelmChartIndexer computes a set of indexed values for the provided object.
type HelmChartStatusHandler ¶
type HelmChartStatusHandler func(obj *v1.HelmChart, status v1.HelmChartStatus) (v1.HelmChartStatus, error)
type Interface ¶
type Interface interface { HelmChart() HelmChartController HelmChartConfig() HelmChartConfigController }
func New ¶
func New(controllerFactory controller.SharedControllerFactory) Interface