Documentation ¶
Index ¶
- Constants
- Variables
- func Factory(ctx context.Context, config rest.Config) (context.Context, controller.Starter, error)
- func Kind(kind string) schema.GroupKind
- func NewHorizontalPodAutoscaler(namespace, name string, obj v2beta2.HorizontalPodAutoscaler) *v2beta2.HorizontalPodAutoscaler
- func Resource(resource string) schema.GroupResource
- type Client
- type Clients
- type HorizontalPodAutoscalerChangeHandlerFunc
- type HorizontalPodAutoscalerClient
- type HorizontalPodAutoscalerClientCache
- type HorizontalPodAutoscalerController
- type HorizontalPodAutoscalerHandlerFunc
- type HorizontalPodAutoscalerIndexer
- type HorizontalPodAutoscalerInterface
- type HorizontalPodAutoscalerLifecycle
- type HorizontalPodAutoscalerList
- type HorizontalPodAutoscalerLister
- type HorizontalPodAutoscalersGetter
- type Interface
Constants ¶
View Source
const ( GroupName = "autoscaling" Version = "v2beta2" )
Variables ¶
View Source
var ( HorizontalPodAutoscalerGroupVersionKind = schema.GroupVersionKind{ Version: Version, Group: GroupName, Kind: "HorizontalPodAutoscaler", } HorizontalPodAutoscalerResource = metav1.APIResource{ Name: "horizontalpodautoscalers", SingularName: "horizontalpodautoscaler", Namespaced: true, Kind: HorizontalPodAutoscalerGroupVersionKind.Kind, } HorizontalPodAutoscalerGroupVersionResource = schema.GroupVersionResource{ Group: GroupName, Version: Version, Resource: "horizontalpodautoscalers", } )
View Source
var ( SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) AddToScheme = SchemeBuilder.AddToScheme )
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: Version}
SchemeGroupVersion is group version used to register these objects
Functions ¶
func NewHorizontalPodAutoscaler ¶
func NewHorizontalPodAutoscaler(namespace, name string, obj v2beta2.HorizontalPodAutoscaler) *v2beta2.HorizontalPodAutoscaler
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource takes an unqualified resource and returns a Group qualified GroupResource
Types ¶
type Client ¶
func (*Client) HorizontalPodAutoscalers ¶
func (c *Client) HorizontalPodAutoscalers(namespace string) HorizontalPodAutoscalerInterface
func (*Client) RESTClient ¶
type Clients ¶
type Clients struct { Interface Interface HorizontalPodAutoscaler HorizontalPodAutoscalerClient }
func ClientsFrom ¶
func NewClientsFromInterface ¶
type HorizontalPodAutoscalerChangeHandlerFunc ¶
type HorizontalPodAutoscalerChangeHandlerFunc func(obj *v2beta2.HorizontalPodAutoscaler) (runtime.Object, error)
type HorizontalPodAutoscalerClient ¶
type HorizontalPodAutoscalerClient interface { Create(*v2beta2.HorizontalPodAutoscaler) (*v2beta2.HorizontalPodAutoscaler, error) Get(namespace, name string, opts metav1.GetOptions) (*v2beta2.HorizontalPodAutoscaler, error) Update(*v2beta2.HorizontalPodAutoscaler) (*v2beta2.HorizontalPodAutoscaler, error) Delete(namespace, name string, options *metav1.DeleteOptions) error List(namespace string, opts metav1.ListOptions) (*HorizontalPodAutoscalerList, error) Watch(opts metav1.ListOptions) (watch.Interface, error) Cache() HorizontalPodAutoscalerClientCache OnCreate(ctx context.Context, name string, sync HorizontalPodAutoscalerChangeHandlerFunc) OnChange(ctx context.Context, name string, sync HorizontalPodAutoscalerChangeHandlerFunc) OnRemove(ctx context.Context, name string, sync HorizontalPodAutoscalerChangeHandlerFunc) Enqueue(namespace, name string) Generic() controller.GenericController ObjectClient() *objectclient.ObjectClient Interface() HorizontalPodAutoscalerInterface }
type HorizontalPodAutoscalerClientCache ¶
type HorizontalPodAutoscalerClientCache interface { Get(namespace, name string) (*v2beta2.HorizontalPodAutoscaler, error) List(namespace string, selector labels.Selector) ([]*v2beta2.HorizontalPodAutoscaler, error) Index(name string, indexer HorizontalPodAutoscalerIndexer) GetIndexed(name, key string) ([]*v2beta2.HorizontalPodAutoscaler, error) }
type HorizontalPodAutoscalerController ¶
type HorizontalPodAutoscalerController interface { Generic() controller.GenericController Informer() cache.SharedIndexInformer Lister() HorizontalPodAutoscalerLister AddHandler(ctx context.Context, name string, handler HorizontalPodAutoscalerHandlerFunc) AddFeatureHandler(ctx context.Context, enabled func() bool, name string, sync HorizontalPodAutoscalerHandlerFunc) AddClusterScopedHandler(ctx context.Context, name, clusterName string, handler HorizontalPodAutoscalerHandlerFunc) AddClusterScopedFeatureHandler(ctx context.Context, enabled func() bool, name, clusterName string, handler HorizontalPodAutoscalerHandlerFunc) Enqueue(namespace, name string) Sync(ctx context.Context) error Start(ctx context.Context, threadiness int) error }
type HorizontalPodAutoscalerHandlerFunc ¶
type HorizontalPodAutoscalerHandlerFunc func(key string, obj *v2beta2.HorizontalPodAutoscaler) (runtime.Object, error)
func NewHorizontalPodAutoscalerLifecycleAdapter ¶
func NewHorizontalPodAutoscalerLifecycleAdapter(name string, clusterScoped bool, client HorizontalPodAutoscalerInterface, l HorizontalPodAutoscalerLifecycle) HorizontalPodAutoscalerHandlerFunc
type HorizontalPodAutoscalerIndexer ¶
type HorizontalPodAutoscalerIndexer func(obj *v2beta2.HorizontalPodAutoscaler) ([]string, error)
type HorizontalPodAutoscalerInterface ¶
type HorizontalPodAutoscalerInterface interface { ObjectClient() *objectclient.ObjectClient Create(*v2beta2.HorizontalPodAutoscaler) (*v2beta2.HorizontalPodAutoscaler, error) GetNamespaced(namespace, name string, opts metav1.GetOptions) (*v2beta2.HorizontalPodAutoscaler, error) Get(name string, opts metav1.GetOptions) (*v2beta2.HorizontalPodAutoscaler, error) Update(*v2beta2.HorizontalPodAutoscaler) (*v2beta2.HorizontalPodAutoscaler, error) Delete(name string, options *metav1.DeleteOptions) error DeleteNamespaced(namespace, name string, options *metav1.DeleteOptions) error List(opts metav1.ListOptions) (*HorizontalPodAutoscalerList, error) Watch(opts metav1.ListOptions) (watch.Interface, error) DeleteCollection(deleteOpts *metav1.DeleteOptions, listOpts metav1.ListOptions) error Controller() HorizontalPodAutoscalerController AddHandler(ctx context.Context, name string, sync HorizontalPodAutoscalerHandlerFunc) AddFeatureHandler(ctx context.Context, enabled func() bool, name string, sync HorizontalPodAutoscalerHandlerFunc) AddLifecycle(ctx context.Context, name string, lifecycle HorizontalPodAutoscalerLifecycle) AddFeatureLifecycle(ctx context.Context, enabled func() bool, name string, lifecycle HorizontalPodAutoscalerLifecycle) AddClusterScopedHandler(ctx context.Context, name, clusterName string, sync HorizontalPodAutoscalerHandlerFunc) AddClusterScopedFeatureHandler(ctx context.Context, enabled func() bool, name, clusterName string, sync HorizontalPodAutoscalerHandlerFunc) AddClusterScopedLifecycle(ctx context.Context, name, clusterName string, lifecycle HorizontalPodAutoscalerLifecycle) AddClusterScopedFeatureLifecycle(ctx context.Context, enabled func() bool, name, clusterName string, lifecycle HorizontalPodAutoscalerLifecycle) }
type HorizontalPodAutoscalerLifecycle ¶
type HorizontalPodAutoscalerLifecycle interface { Create(obj *v2beta2.HorizontalPodAutoscaler) (runtime.Object, error) Remove(obj *v2beta2.HorizontalPodAutoscaler) (runtime.Object, error) Updated(obj *v2beta2.HorizontalPodAutoscaler) (runtime.Object, error) }
type HorizontalPodAutoscalerList ¶
type HorizontalPodAutoscalerList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []v2beta2.HorizontalPodAutoscaler `json:"items"` }
func (*HorizontalPodAutoscalerList) DeepCopy ¶
func (in *HorizontalPodAutoscalerList) DeepCopy() *HorizontalPodAutoscalerList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HorizontalPodAutoscalerList.
func (*HorizontalPodAutoscalerList) DeepCopyInto ¶
func (in *HorizontalPodAutoscalerList) DeepCopyInto(out *HorizontalPodAutoscalerList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*HorizontalPodAutoscalerList) DeepCopyObject ¶
func (in *HorizontalPodAutoscalerList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type HorizontalPodAutoscalerLister ¶
type HorizontalPodAutoscalerLister interface { List(namespace string, selector labels.Selector) (ret []*v2beta2.HorizontalPodAutoscaler, err error) Get(namespace, name string) (*v2beta2.HorizontalPodAutoscaler, error) }
type HorizontalPodAutoscalersGetter ¶
type HorizontalPodAutoscalersGetter interface {
HorizontalPodAutoscalers(namespace string) HorizontalPodAutoscalerInterface
}
Source Files ¶
Click to show internal directories.
Click to hide internal directories.