fetcher

package
v0.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 13, 2023 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FetchReport

func FetchReport(config *state.Config, client *s3.Client, manifest *ReportManifest, logger log.Logger) error

func GetBillingPeriods

func GetBillingPeriods(config *state.Config, client *s3.Client) ([]state.BillingPeriod, error)

Types

type ReportManifest

type ReportManifest struct {
	AssemblyId    string `json:"assemblyId"`
	Compression   string `json:"compression"`
	ContentType   string `json:"contentType"`
	BillingPeriod struct {
		Start string `json:"start"`
		End   string `json:"end"`
	} `json:"billingPeriod"`
	Bucket     string   `json:"bucket"`
	ReportKeys []string `json:"reportKeys"`
}

func GetReportManifest

func GetReportManifest(config *state.Config, client *s3.Client, period *state.BillingPeriod, lastModified *time.Time) (*ReportManifest, error)

type SortRecentFirst

type SortRecentFirst []state.BillingPeriod

func (SortRecentFirst) Len

func (a SortRecentFirst) Len() int

func (SortRecentFirst) Less

func (a SortRecentFirst) Less(i, j int) bool

func (SortRecentFirst) Swap

func (a SortRecentFirst) Swap(i, j int)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL