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 ¶
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.
Click to show internal directories.
Click to hide internal directories.