Documentation ¶
Index ¶
Constants ¶
View Source
const DuplicateError = errors.Sentinel("duplicate")
View Source
const RetryableError = errors.Sentinel("retryable")
Variables ¶
View Source
var DefaultBackoff = wait.Backoff{ Steps: 4, Duration: 50 * time.Millisecond, Factor: 5.0, Jitter: 0.1, }
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface {
Metrics() MarketplaceMetrics
}
func NewClient ¶
func NewClient(config *MarketplaceConfig) (Client, error)
type MarketplaceConfig ¶
type MarketplaceMetrics ¶
type MarketplaceUsageResponse ¶
type MarketplaceUsageResponse struct { RequestID string `json:"requestId,omitempty"` CorrelationID string `json:"correlationId,omitempty"` Status MktplStatus `json:"status,omitempty"` Message string `json:"message,omitempty"` ErrorCode string `json:"errorCode,omitempty"` Details *MarketplaceUsageResponseDetails `json:"details,omitempty"` }
type MktplStatus ¶
type MktplStatus string
const ( MktplStatusSuccess MktplStatus = "success" MktplStatusInProgress MktplStatus = "inProgress" MktplStatusFailed MktplStatus = "failed" )
Click to show internal directories.
Click to hide internal directories.