v1alpha1

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2019 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromPodAutoscalerHandlerToHandler

func FromPodAutoscalerHandlerToHandler(sync PodAutoscalerHandler) generic.Handler

Types

type Interface

type Interface interface {
	PodAutoscaler() PodAutoscalerController
}

func New

type PodAutoscalerCache

type PodAutoscalerCache interface {
	Get(namespace, name string) (*v1alpha1.PodAutoscaler, error)
	List(namespace string, selector labels.Selector) ([]*v1alpha1.PodAutoscaler, error)

	AddIndexer(indexName string, indexer PodAutoscalerIndexer)
	GetByIndex(indexName, key string) ([]*v1alpha1.PodAutoscaler, error)
}

type PodAutoscalerClient

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

type PodAutoscalerController

type PodAutoscalerController interface {
	PodAutoscalerClient

	OnChange(ctx context.Context, name string, sync PodAutoscalerHandler)
	OnRemove(ctx context.Context, name string, sync PodAutoscalerHandler)
	Enqueue(namespace, name string)

	Cache() PodAutoscalerCache

	Informer() cache.SharedIndexInformer
	GroupVersionKind() schema.GroupVersionKind

	AddGenericHandler(ctx context.Context, name string, handler generic.Handler)
	AddGenericRemoveHandler(ctx context.Context, name string, handler generic.Handler)
	Updater() generic.Updater
}

type PodAutoscalerHandler

type PodAutoscalerHandler func(string, *v1alpha1.PodAutoscaler) (*v1alpha1.PodAutoscaler, error)

func UpdatePodAutoscalerOnChange

func UpdatePodAutoscalerOnChange(updater generic.Updater, handler PodAutoscalerHandler) PodAutoscalerHandler

type PodAutoscalerIndexer

type PodAutoscalerIndexer func(obj *v1alpha1.PodAutoscaler) ([]string, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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