horizontalpodautoscaler

package
v0.18.2-0...-85ee11a Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2015 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Strategy = autoscalerStrategy{api.Scheme, api.SimpleNameGenerator}

Strategy is the default logic that applies when creating and updating HorizontalPodAutoscaler objects via the REST API.

Functions

func MatchAutoscaler

func MatchAutoscaler(label labels.Selector, field fields.Selector) generic.Matcher

MatchAutoscaler returns a generic matcher for a given label and field selector.

Types

type Registry

type Registry interface {
	// ListPersistentVolumes obtains a list of autoscalers having labels which match selector.
	ListHorizontalPodAutoscaler(ctx api.Context, selector labels.Selector) (*expapi.HorizontalPodAutoscalerList, error)
	// Get a specific autoscaler
	GetHorizontalPodAutoscaler(ctx api.Context, autoscalerID string) (*expapi.HorizontalPodAutoscaler, error)
	// Create an autoscaler based on a specification.
	CreateHorizontalPodAutoscaler(ctx api.Context, autoscaler *expapi.HorizontalPodAutoscaler) error
	// Update an existing autoscaler
	UpdateHorizontalPodAutoscaler(ctx api.Context, autoscaler *expapi.HorizontalPodAutoscaler) error
	// Delete an existing autoscaler
	DeleteHorizontalPodAutoscaler(ctx api.Context, autoscalerID string) error
}

Registry is an interface implemented by things that know how to store HorizontalPodAutoscaler objects.

func NewRegistry

func NewRegistry(s rest.StandardStorage) Registry

NewREST returns a new Registry interface for the given Storage. Any mismatched types will panic.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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