Versions in this module Expand all Collapse all v0 v0.0.2 Apr 7, 2023 Changes in this version + type Account struct + BillingAccountID string + BillingAccountNumber string + BillingContact BillingContact + GCSLogsBucket string + HashCode string + ID int + MaxDirectSubAccounts int + MaxHCSTenants int + MaxHosts int + NOCContact Contact + Name string + Parent int + ParentHash string + PrimaryContact Contact + Services []Service + Status string + SubAccountCreationEnabled bool + SubAccounts []Account + SupportEmail string + TechnicalContact Contact + type BillingContact struct + BillingAccountNumber string type Client + func (c *Client) FetchAccount(hash string) (Account, error) + func (c *Client) FetchCurrentAccount() (Account, error) + func (c *Client) FetchHosts() ([]Host, error) + func (c *Client) FetchHostsOf(hash string) ([]Host, error) + func (c *Client) FetchOrigins() ([]Origin, error) + func (c *Client) FetchOriginsOf(hash string) ([]Origin, error) + func (c *Client) FetchRawConfiguration(acct, host string, scope int) (map[string]any, error) + func (c *Client) FetchSubAccounts() ([]Account, error) + func (c *Client) FetchSubAccountsOf(hash string) ([]Account, error) + type Contact struct + Email string + Fax string + First string + ID int + Last string + Phone string + type Host struct + CreatedDate string + HashCode string + Name string + Scopes []Scope + Services []Service + Type string + UpdatedDate string + type ListHostsResponse struct + Hosts []Host + type ListOriginsResponse struct + Origins []Origin + type Origin struct + AuthenticationType string + CertificateCN string + CreatedDate string + ErrorCacheTTL int + Hostname string + ID int + MaxRetryCount int + Name string + OriginCacheHeaders string + OriginPullHeaders string + Path string + Port int + RequestTimeout int + SecurePort int + Type string + UpdatedDate string + VerifyCertificate bool + type Scope struct + CreatedDate string + ID int + Path string + Platform string + UpdatedDate string + type Service struct + Description string + ID int + Name string + Type string v0.0.1 Nov 7, 2021 Changes in this version + const Daily + const Hourly + const Monthly + const Weekly + type AnalyticsEntry struct + Rate float64 + Requests int + Transfer float64 + type AnalyticsList struct + Data []AnalyticsEntry + Key string + Type string + type Client struct + func DefaultClient() (*Client, error) + func NewClient(credentials *config.Credentials) (*Client, error) + func (c *Client) FetchPlatforms() ([]PlatformsResponse, error) + func (c *Client) FetchUsageByAccount(from, to time.Time, gran Granularity, plat Platform) ([]AnalyticsList, error) + type Granularity string + func (g Granularity) String() string + type Platform int + const AdobeDynamicStreaming + const AppleiPhoneiPadStreaming + const CDNDeliveryEnduser + const CDNDeliveryOrigin + const CDNEnduserLogStreaming + const CDSIngest + const CDSOriginShielding + const CleartextWebSocket + const CleartextWebSocketIngest + const ContentDeliveryReceipts + const DistributedStorageService + const EdgeEngineCacheAPI + const EdgeEngineIngest + const EdgetoWAF + const EdgetoWAFSecure + const FlashLiveStreaming + const FlashMediaStreaming + const HTTPCaching + const HTTPProxy + const HTTPSCachingSDS + const HTTPStreaming + const InternalOriginService + const MicrosoftSmoothStreaming + const MidTierCache + const MultiProtocolIngest + const OctoshapeLiveStreaming + const PlatformADS + const PlatformAIS + const PlatformCDD + const PlatformCDE + const PlatformCDI + const PlatformCDO + const PlatformCDP + const PlatformCDR + const PlatformCDS + const PlatformCLE + const PlatformCWI + const PlatformCWS + const PlatformDSS + const PlatformEEC + const PlatformEEI + const PlatformFLS + const PlatformFMS + const PlatformIOS + const PlatformMPI + const PlatformMPS + const PlatformMSS + const PlatformMTC + const PlatformOLS + const PlatformSAS + const PlatformSDD + const PlatformSDI + const PlatformSDS + const PlatformSIS + const PlatformSLC + const PlatformSLS + const PlatformSMS + const PlatformSWI + const PlatformSWS + const PlatformWDD + const PlatformWDI + const PlatformWDS + const PlatformWMS + const PlatformWSD + const PlatformWSI + const PlatformWSS + const SecureAdobeDynamicStreaming + const SecureAppleiPhoneiPadStreaming + const SecureIngest + const SecureMicrosoftSmoothStreaming + const SecureOriginShielding + const SecureWebSocket + const SecureWebSocketIngest + const ServerlessCompute + const ServerlessComputeSecure + const WAFHTTPDelivery + const WAFIngest + const WAFSSLDelivery + const WAFSecureIngest + const WindowsMediaStreaming + func PlatformFromCode(s string) Platform + func (p Platform) Code() string + func (p Platform) IsAnalyzable() bool + func (p Platform) IsArchivable() bool + func (p Platform) IsConfigurable() bool + func (p Platform) IsReportable() bool + func (p Platform) String() string + type PlatformsResponse struct + Capabilities []string + Code string + ID int + Name string + type StatusCodeError int + func (s StatusCodeError) Error() string + func (s StatusCodeError) StatusCode() int