utils

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetNodeClassHash

func GetNodeClassHash(nodeClass *v1alpha1.CCENodeClass) string

func PrettySlice

func PrettySlice[T any](s []T, maxItems int) string

PrettySlice truncates a slice after a certain number of max items to ensure that the Slice isn't too long

Types

type OfferingAvailabilityCache added in v0.1.1

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

func NewOfferingAvailabilityCache added in v0.1.1

func NewOfferingAvailabilityCache(ttl, cleanupInterval time.Duration) *OfferingAvailabilityCache

func (*OfferingAvailabilityCache) IsUnavailable added in v0.1.1

func (c *OfferingAvailabilityCache) IsUnavailable(capacityType string, instanceType sdk.InstanceType, zone string) bool

func (*OfferingAvailabilityCache) MarkUnavailable added in v0.1.1

func (c *OfferingAvailabilityCache) MarkUnavailable(capacityType string, instanceType sdk.InstanceType, zone string)

func (*OfferingAvailabilityCache) TTL added in v0.1.1

Jump to

Keyboard shortcuts

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