factory

package
v0.0.0-...-eeb2ccb Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2024 License: Apache-2.0 Imports: 15 Imported by: 22

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Factory

type Factory struct {
	// contains filtered or unexported fields
}

Factory can create expander.Strategy based on provided expander names.

func NewFactory

func NewFactory() *Factory

NewFactory returns a new Factory.

func (*Factory) Build

func (f *Factory) Build(names []string) (expander.Strategy, errors.AutoscalerError)

Build creates a new expander.Strategy based on a list of expander.Filter names.

func (*Factory) RegisterDefaultExpanders

func (f *Factory) RegisterDefaultExpanders(cloudProvider cloudprovider.CloudProvider, autoscalingKubeClients *context.AutoscalingKubeClients, kubeClient kube_client.Interface, configNamespace string, GRPCExpanderCert string, GRPCExpanderURL string)

RegisterDefaultExpanders is a convenience function, registering all known expanders in the Factory.

func (*Factory) RegisterFilter

func (f *Factory) RegisterFilter(name string, createFunc func() expander.Filter)

RegisterFilter registers a function that can provision a new expander.Filter under the specified name.

Jump to

Keyboard shortcuts

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