limits

package
v1.18.7 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2026 License: Apache-2.0 Imports: 10 Imported by: 2

Documentation

Index

Constants

View Source
const (
	EC2apiRetryCount   = 2
	EC2apiTimeout      = time.Second * 5
	TriggerMinInterval = time.Minute
)

Variables

This section is empty.

Functions

This section is empty.

Types

type LimitsGetter added in v1.18.0

type LimitsGetter struct {
	lock.RWMutex
	// contains filtered or unexported fields
}

func NewLimitsGetter added in v1.18.0

func NewLimitsGetter(logger *slog.Logger, api ec2API, triggerMinInterval, ec2APITimeout time.Duration, ec2APIRetryCount int) (*LimitsGetter, error)

func (*LimitsGetter) Get added in v1.18.0

func (l *LimitsGetter) Get(instanceType string) (ipamTypes.Limits, bool)

Get returns the instance limits of a particular instance type.

Jump to

Keyboard shortcuts

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