Documentation
¶
Index ¶
Constants ¶
View Source
const ( // BillingDateFormat is the layout for parsing the AWS date format of 'yyyymmdd'. BillingDateFormat = "20060102" // ManifestSuffix is the extension of AWS Usage Data manifests. ManifestSuffix = ".json" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AdditionalArtifact ¶
type BillingPeriod ¶
type Manifest ¶
type Manifest struct {
AssemblyID string `json:"assemblyId"`
Account string `json:"account"`
Columns []Column `json:"columns"`
Charset string `json:"charset"`
Compression string `json:"compression"`
ContentType string `json:"contentType"`
ReportID string `json:"reportId"`
ReportName string `json:"reportName"`
BillingPeriod BillingPeriod `json:"billingPeriod"`
Bucket string `json:"bucket"`
ReportKeys []string `json:"reportKeys"`
AdditionalArtifactKeys []AdditionalArtifact `json:"additionalArtifactKeys"`
}
Manifest is a representation of the file AWS provides with metadata for current usage information.
func (Manifest) DataDirectory ¶
Paths returns the directories containing usage data. The result will be free of duplicates.
type ManifestRetriever ¶
func NewManifestRetriever ¶
func NewManifestRetriever(logger log.FieldLogger, region, bucket, prefix string) ManifestRetriever
Click to show internal directories.
Click to hide internal directories.