v1

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2020 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromSettingsHandlerToHandler

func FromSettingsHandlerToHandler(sync SettingsHandler) generic.Handler

func UpdateSettingsDeepCopyOnChange

func UpdateSettingsDeepCopyOnChange(client SettingsClient, obj *v1.Settings, handler func(obj *v1.Settings) (*v1.Settings, error)) (*v1.Settings, error)

Types

type Interface

type Interface interface {
	Settings() SettingsController
}

func New

func New(controllerManager *generic.ControllerManager, client clientset.GlooV1Interface,
	informers informers.Interface) Interface

type SettingsCache

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

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

type SettingsClient

type SettingsClient interface {
	Create(*v1.Settings) (*v1.Settings, error)
	Update(*v1.Settings) (*v1.Settings, error)

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

type SettingsController

type SettingsController interface {
	generic.ControllerMeta
	SettingsClient

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

	Cache() SettingsCache
}

func NewSettingsController

func NewSettingsController(gvk schema.GroupVersionKind, controllerManager *generic.ControllerManager, clientGetter clientset.SettingsesGetter, informer informers.SettingsInformer) SettingsController

type SettingsHandler

type SettingsHandler func(string, *v1.Settings) (*v1.Settings, error)

type SettingsIndexer

type SettingsIndexer func(obj *v1.Settings) ([]string, error)

Jump to

Keyboard shortcuts

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