scale

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Scaler

type Scaler struct {
	scaleclient.ScalesGetter
	// contains filtered or unexported fields
}

Scaler is a convenient wrapper of ScalesGetter which provides a helper method to get the scale of any scale target.

func NewScaler

func NewScaler(scalesGetter scaleclient.ScalesGetter, restMapper apimeta.RESTMapper) *Scaler

NewScaler creates a new Scaler with the given scales getter and rest mapper.

func (*Scaler) GetScale

GetScale return the scale as well as the group-resource of the specified scale target.

Jump to

Keyboard shortcuts

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