Help us shape the future of Go! Take the 2026 Go Developer Survey

limits

package
v1.20.4 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

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

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

func NewLimitsGetter

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

func (*LimitsGetter) Get

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