v1

package
v0.8.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 25, 2021 License: Apache-2.0 Imports: 20 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromHelmChartConfigHandlerToHandler

func FromHelmChartConfigHandlerToHandler(sync HelmChartConfigHandler) generic.Handler

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)

func UpdateHelmChartConfigDeepCopyOnChange

func UpdateHelmChartConfigDeepCopyOnChange(client HelmChartConfigClient, obj *v1.HelmChartConfig, handler func(obj *v1.HelmChartConfig) (*v1.HelmChartConfig, error)) (*v1.HelmChartConfig, error)

func UpdateHelmChartDeepCopyOnChange

func UpdateHelmChartDeepCopyOnChange(client HelmChartClient, obj *v1.HelmChart, handler func(obj *v1.HelmChart) (*v1.HelmChart, error)) (*v1.HelmChart, error)

Types

type HelmChartCache

type HelmChartCache interface {
	Get(namespace, name string) (*v1.HelmChart, error)
	List(namespace string, selector labels.Selector) ([]*v1.HelmChart, error)

	AddIndexer(indexName string, indexer HelmChartIndexer)
	GetByIndex(indexName, key string) ([]*v1.HelmChart, error)
}

type HelmChartClient

type HelmChartClient interface {
	Create(*v1.HelmChart) (*v1.HelmChart, error)
	Update(*v1.HelmChart) (*v1.HelmChart, error)
	UpdateStatus(*v1.HelmChart) (*v1.HelmChart, error)
	Delete(namespace, name string, options *metav1.DeleteOptions) error
	Get(namespace, name string, options metav1.GetOptions) (*v1.HelmChart, error)
	List(namespace string, opts metav1.ListOptions) (*v1.HelmChartList, error)
	Watch(namespace string, opts metav1.ListOptions) (watch.Interface, error)
	Patch(namespace, name string, pt types.PatchType, data []byte, subresources ...string) (result *v1.HelmChart, err error)
}

type HelmChartConfigCache

type HelmChartConfigCache interface {
	Get(namespace, name string) (*v1.HelmChartConfig, error)
	List(namespace string, selector labels.Selector) ([]*v1.HelmChartConfig, error)

	AddIndexer(indexName string, indexer HelmChartConfigIndexer)
	GetByIndex(indexName, key string) ([]*v1.HelmChartConfig, error)
}

type HelmChartConfigClient

type HelmChartConfigClient interface {
	Create(*v1.HelmChartConfig) (*v1.HelmChartConfig, error)
	Update(*v1.HelmChartConfig) (*v1.HelmChartConfig, error)

	Delete(namespace, name string, options *metav1.DeleteOptions) error
	Get(namespace, name string, options metav1.GetOptions) (*v1.HelmChartConfig, error)
	List(namespace string, opts metav1.ListOptions) (*v1.HelmChartConfigList, error)
	Watch(namespace string, opts metav1.ListOptions) (watch.Interface, error)
	Patch(namespace, name string, pt types.PatchType, data []byte, subresources ...string) (result *v1.HelmChartConfig, err error)
}

type HelmChartConfigController

type HelmChartConfigController interface {
	generic.ControllerMeta
	HelmChartConfigClient

	OnChange(ctx context.Context, name string, sync HelmChartConfigHandler)
	OnRemove(ctx context.Context, name string, sync HelmChartConfigHandler)
	Enqueue(namespace, name string)
	EnqueueAfter(namespace, name string, duration time.Duration)

	Cache() HelmChartConfigCache
}

type HelmChartConfigHandler

type HelmChartConfigHandler func(string, *v1.HelmChartConfig) (*v1.HelmChartConfig, error)

type HelmChartConfigIndexer

type HelmChartConfigIndexer func(obj *v1.HelmChartConfig) ([]string, error)

type HelmChartController

type HelmChartController interface {
	generic.ControllerMeta
	HelmChartClient

	OnChange(ctx context.Context, name string, sync HelmChartHandler)
	OnRemove(ctx context.Context, name string, sync HelmChartHandler)
	Enqueue(namespace, name string)
	EnqueueAfter(namespace, name string, duration time.Duration)

	Cache() HelmChartCache
}

func NewHelmChartController

func NewHelmChartController(gvk schema.GroupVersionKind, controllerManager *generic.ControllerManager, clientGetter clientset.HelmChartsGetter, informer informers.HelmChartInformer) HelmChartController

type HelmChartGeneratingHandler

type HelmChartGeneratingHandler func(obj *v1.HelmChart, status v1.HelmChartStatus) ([]runtime.Object, v1.HelmChartStatus, error)

type HelmChartHandler

type HelmChartHandler func(string, *v1.HelmChart) (*v1.HelmChart, error)

type HelmChartIndexer

type HelmChartIndexer func(obj *v1.HelmChart) ([]string, error)

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(controllerManager *generic.ControllerManager, client clientset.HelmV1Interface,
	informers informers.Interface) Interface

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL