v1alpha1

package
v0.1.20 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2023 License: MIT Imports: 17 Imported by: 0

Documentation

Index

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

Jump to

Keyboard shortcuts

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