Versions in this module Expand all Collapse all v1 v1.3.0 Aug 3, 2026 v1.2.0 Aug 3, 2026 Changes in this version + const AddressTypeOperating + const AddressTypeShipping + const AssetStateActive + const AssetTypeCompute + const CapacityTaskStatusCancelled + const CapacityTaskStatusCompleted + const CapacityTaskStatusRequested + const DecommissionStatusBlocked + const DecommissionStatusRequested + const DecommissionStatusSkipped + const HardwareTypeRack + const HardwareTypeServer + const LifeCycleStatusActive + const LifeCycleStatusPendingDecommission + const LineItemStatusCancelled + const LineItemStatusInstalled + const LineItemStatusPreparing + const OrderStatusCancelled + const OrderStatusCompleted + const OrderStatusPreparing + const OrderingRequirementStatusExempt + const OrderingRequirementStatusFail + const OrderingRequirementStatusPass + const OrderingRequirementTypeOutpostActive + const OrderingRequirementTypeOutpostIDMissing + const PaymentOptionAllUpfront + const PaymentOptionNoUpfront + const PaymentOptionPartialUpfront + const PaymentTermFiveYears + const PaymentTermOneYear + const PaymentTermThreeYears + const PricingResultPriced + const PricingResultUnableToPrice + const QuoteCapacityTypeEBS + const QuoteCapacityTypeEC2 + const QuoteCapacityTypeS3 + const QuoteStatusCreated + const QuoteStatusExpired + const QuoteStatusOrderSubmitted + const ResourceTypeOrder + const ResourceTypeOutpost + const SubscriptionStatusActive + const SubscriptionTypeOriginal + const SubscriptionTypeRenewal + var ErrNilAppContext = errors.New("AppContext is required") + type Address struct + AddressLine1 string + AddressLine2 string + AddressLine3 string + City string + ContactName string + ContactPhoneNumber string + CountryCode string + DistrictOrCounty string + Municipality string + PostalCode string + StateOrRegion string + type Asset struct + AssetType string + ComputeAttributes *ComputeAttributes + ID string + OutpostID string + RackElevation float32 + RackID string + type CapacityTask struct + AssetID string + CompletionDate time.Time + CreationDate time.Time + DryRun bool + Failed *CapacityTaskFailure + ID string + InstancesToExclude *InstancesToExclude + LastModifiedDate time.Time + OrderID string + OutpostID string + RequestedInstancePools []InstanceTypeCapacity + Status string + TaskActionOnBlockingInstances string + type CapacityTaskFailure struct + Reason string + Type string + type CatalogItem struct + EC2Capacities []EC2Capacity + ID string + ItemClass string + ItemStatus string + PowerKva float32 + SupportedStorage []string + SupportedUplinkGbps []int32 + WeightLbs int32 + type ComputeAttributes struct + HostID string + InstanceFamilies []string + InstanceTypeCapacities []InstanceTypeCapacity + MaxVcpus int32 + State string + type Connection struct + AllowedIps []string + AssetID string + ClientPublicKey string + ClientTunnelAddress string + ID string + ServerEndpoint string + ServerPublicKey string + ServerTunnelAddress string + UnderlayIPAddress string + type CreateRenewalResult struct + Currency string + MonthlyRecurringPrice float32 + OutpostID string + PaymentOption string + PaymentTerm string + UpfrontPrice float32 + type EC2Capacity struct + Family string + MaxSize string + Quantity string + type Handler struct + AccountID string + Backend *InMemoryBackend + Region string + func NewHandler(backend *InMemoryBackend) *Handler + func (h *Handler) ChaosOperations() []string + func (h *Handler) ChaosRegions() []string + func (h *Handler) ChaosServiceName() string + func (h *Handler) ExtractOperation(c *echo.Context) string + func (h *Handler) ExtractResource(c *echo.Context) string + func (h *Handler) GetSupportedOperations() []string + func (h *Handler) Handler() echo.HandlerFunc + func (h *Handler) MatchPriority() int + func (h *Handler) Name() string + func (h *Handler) Reset() + func (h *Handler) Restore(ctx context.Context, data []byte) error + func (h *Handler) RouteMatcher() service.Matcher + func (h *Handler) Snapshot(ctx context.Context) []byte + type InMemoryBackend struct + func NewInMemoryBackend(ctx context.Context, accountID, region string) *InMemoryBackend + func (b *InMemoryBackend) AccountID() string + func (b *InMemoryBackend) CancelCapacityTask(outpostIdentifier, capacityTaskID string) error + func (b *InMemoryBackend) CancelOrder(id string) error + func (b *InMemoryBackend) Close() + func (b *InMemoryBackend) CreateOrder(req *createOrderRequest) (*Order, error) + func (b *InMemoryBackend) CreateOutpost(req *createOutpostRequest) (*Outpost, error) + func (b *InMemoryBackend) CreateQuote(req *createQuoteRequest) (*Quote, error) + func (b *InMemoryBackend) CreateRenewal(idOrARN string, req *createRenewalRequest) (*CreateRenewalResult, error) + func (b *InMemoryBackend) CreateSite(req *createSiteRequest) (*Site, error) + func (b *InMemoryBackend) DeleteOutpost(idOrARN string) error + func (b *InMemoryBackend) DeleteQuote(id string) error + func (b *InMemoryBackend) DeleteSite(idOrARN string) error + func (b *InMemoryBackend) GetCapacityTask(outpostIdentifier, capacityTaskID string) (*CapacityTask, error) + func (b *InMemoryBackend) GetCatalogItem(id string) (CatalogItem, error) + func (b *InMemoryBackend) GetConnection(id string) (*Connection, error) + func (b *InMemoryBackend) GetOrder(id string) (*Order, error) + func (b *InMemoryBackend) GetOutpost(idOrARN string) (*Outpost, error) + func (b *InMemoryBackend) GetOutpostBillingInformation(idOrARN string) (*Outpost, error) + func (b *InMemoryBackend) GetOutpostInstanceTypes(idOrARN string) (*Outpost, []InstanceTypeCapacity, error) + func (b *InMemoryBackend) GetOutpostSupportedInstanceTypes(idOrARN, assetID, orderID string) ([]OrderableInstanceType, error) + func (b *InMemoryBackend) GetQuote(id string) (*Quote, error) + func (b *InMemoryBackend) GetRenewalPricing(idOrARN string) (string, []PricingOption, error) + func (b *InMemoryBackend) GetSite(idOrARN string) (*Site, error) + func (b *InMemoryBackend) GetSiteAddress(idOrARN, addressType string) (*Address, error) + func (b *InMemoryBackend) ListAssetInstances(outpostIdentifier string) error + func (b *InMemoryBackend) ListAssets(outpostIdentifier string, f assetFilter) ([]*Asset, error) + func (b *InMemoryBackend) ListBlockingInstancesForCapacityTask(outpostIdentifier, capacityTaskID string) error + func (b *InMemoryBackend) ListCapacityTasks(f capacityTaskFilter, token string, limit int) page.Page[*CapacityTask] + func (b *InMemoryBackend) ListCatalogItems(f catalogItemFilter, token string, limit int) page.Page[CatalogItem] + func (b *InMemoryBackend) ListOrderableInstanceTypes(generationFilter, token string, limit int) page.Page[OrderableInstanceType] + func (b *InMemoryBackend) ListOrders(outpostIdentifierFilter, token string, limit int) page.Page[*Order] + func (b *InMemoryBackend) ListOutposts(f listOutpostsFilter, token string, limit int) page.Page[*Outpost] + func (b *InMemoryBackend) ListQuotes(token string, limit int) page.Page[*Quote] + func (b *InMemoryBackend) ListSites(f listSitesFilter, token string, limit int) page.Page[*Site] + func (b *InMemoryBackend) ListTagsForResource(resourceArn string) (map[string]string, error) + func (b *InMemoryBackend) OutpostARN(id string) string + func (b *InMemoryBackend) Region() string + func (b *InMemoryBackend) Reset() + func (b *InMemoryBackend) Restore(ctx context.Context, data []byte) error + func (b *InMemoryBackend) SiteARN(id string) string + func (b *InMemoryBackend) Snapshot(ctx context.Context) []byte + func (b *InMemoryBackend) StartCapacityTask(outpostIdentifier string, req *startCapacityTaskRequest) (*CapacityTask, error) + func (b *InMemoryBackend) StartConnection(req *startConnectionRequest) (*Connection, error) + func (b *InMemoryBackend) StartOutpostDecommission(idOrARN string, validateOnly bool) (string, error) + func (b *InMemoryBackend) TagResource(_ context.Context, resourceArn string, newTags map[string]string) error + func (b *InMemoryBackend) TaggedResources() []TaggedEntry + func (b *InMemoryBackend) UntagResource(_ context.Context, resourceArn string, tagKeys []string) error + func (b *InMemoryBackend) UpdateOutpost(idOrARN string, req *updateOutpostRequest) (*Outpost, error) + func (b *InMemoryBackend) UpdateQuote(id string, req *updateQuoteRequest) (*Quote, error) + func (b *InMemoryBackend) UpdateSite(idOrARN string, req *updateSiteRequest) (*Site, error) + func (b *InMemoryBackend) UpdateSiteAddress(idOrARN, addressType string, addr *Address) (*Address, error) + func (b *InMemoryBackend) UpdateSiteRackPhysicalProperties(idOrARN string, patch *RackPhysicalProperties) (*Site, error) + type InstanceTypeCapacity struct + Count int32 + InstanceType string + type InstancesToExclude struct + AccountIDs []string + Instances []string + Services []string + type LineItem struct + CatalogItemID string + LineItemID string + PreviousLineItemID string + PreviousOrderID string + Quantity int32 + Status string + type Order struct + ID string + LineItems []LineItem + OrderFulfilledDate time.Time + OrderSubmissionDate time.Time + OrderType string + OutpostID string + PaymentOption string + PaymentTerm string + QuoteIdentifier string + QuoteOptionIdentifier string + Status string + type OrderableInstanceType struct + FormFactor string + InstanceType string + MemoryInMib int32 + NetworkPerformance string + OutpostGeneration string + VCPUs int32 + type OrderingRequirement struct + OrderingRequirementType string + Status string + StatusMessage string + type Outpost struct + ARN string + AvailabilityZone string + AvailabilityZoneID string + ContractEndDate time.Time + Description string + ID string + LifeCycleStatus string + Name string + OwnerID string + PaymentOption string + PaymentTerm string + SiteARN string + SiteID string + Subscriptions []Subscription + SupportedHardwareType string + Tags *tags.Tags + type PricingOption struct + Currency string + MonthlyRecurringPrice float32 + PaymentOption string + PaymentTerm string + UpfrontPrice float32 + type Provider struct + func (p *Provider) Init(ctx *service.AppContext) (service.Registerable, error) + func (p *Provider) Name() string + type Quote struct + AccountID string + CountryCode string + CreatedDate time.Time + Description string + ExpirationDate time.Time + ID string + OrderingRequirements []OrderingRequirement + OutpostARN string + OutpostID string + PricingOptions []PricingOption + QuoteOptionID string + RequestedCapacities []QuoteCapacity + RequestedConstraints []QuoteConstraint + RequestedPaymentOptions []string + RequestedPaymentTerms []string + Status string + StatusMessage string + SubmittedOrderID string + type QuoteCapacity struct + Quantity float32 + QuoteCapacityType string + Unit string + type QuoteConstraint struct + QuoteConstraintType string + Value string + type RackPhysicalProperties struct + FiberOpticCableType string + MaximumSupportedWeightLbs string + OpticalStandard string + PowerConnector string + PowerDrawKva string + PowerFeedDrop string + PowerPhase string + UplinkCount string + UplinkGbps string + type Site struct + ARN string + AccountID string + Description string + ID string + Name string + Notes string + OperatingAddress *Address + RackPhysicalProperties *RackPhysicalProperties + ShippingAddress *Address + Tags *tags.Tags + type Subscription struct + BeginDate time.Time + Currency string + EndDate time.Time + MonthlyRecurringPrice float64 + OrderIDs []string + SubscriptionID string + SubscriptionStatus string + SubscriptionType string + UpfrontPrice float64 + type TaggedEntry struct + ARN string + Tags map[string]string