Documentation ¶
Index ¶
Constants ¶
View Source
const (
)Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type UnavailableOfferings ¶
type UnavailableOfferings struct {
// contains filtered or unexported fields
}
UnavailableOfferings stores any offerings that return ICE (insufficient capacity errors) when attempting to launch the capacity. These offerings are ignored as long as they are in the cache on GetInstanceTypes responses
func NewUnavailableOfferings ¶
func NewUnavailableOfferings(c *cache.Cache) *UnavailableOfferings
func (*UnavailableOfferings) IsUnavailable ¶
func (u *UnavailableOfferings) IsUnavailable(instanceType, zone, capacityType string) bool
IsUnavailable returns true if the offering appears in the cache
func (*UnavailableOfferings) MarkUnavailable ¶
func (u *UnavailableOfferings) MarkUnavailable(ctx context.Context, unavailableReason, instanceType, zone, capacityType string)
MarkUnavailable communicates recently observed temporary capacity shortages in the provided offerings
func (*UnavailableOfferings) MarkUnavailableForFleetErr ¶
func (u *UnavailableOfferings) MarkUnavailableForFleetErr(ctx context.Context, fleetErr *ec2.CreateFleetError, capacityType string)
Click to show internal directories.
Click to hide internal directories.