Documentation
¶
Overview ¶
Package model is a model abstraction of exports.
Index ¶
- Variables
- type ExportBatch
- type ExportConfig
- func (ec *ExportConfig) EffectiveInputRegions() []string
- func (ec *ExportConfig) FormattedFromTime() string
- func (ec *ExportConfig) FormattedThruTime() string
- func (ec *ExportConfig) FromHTMLDate() string
- func (ec *ExportConfig) FromHTMLTime() string
- func (ec *ExportConfig) InputRegionsOnePerLine() string
- func (ec *ExportConfig) ThruHTMLDate() string
- func (ec *ExportConfig) ThruHTMLTime() string
- func (ec *ExportConfig) Validate() error
- type ExportFile
- type SignatureInfo
Constants ¶
This section is empty.
Variables ¶
var ( ExportBatchOpen = "OPEN" ExportBatchPending = "PENDING" ExportBatchComplete = "COMPLETE" ExportBatchDeleted = "DELETED" )
Functions ¶
This section is empty.
Types ¶
type ExportBatch ¶
type ExportBatch struct {
BatchID int64
ConfigID int64
BucketName string
FilenameRoot string
StartTimestamp time.Time
EndTimestamp time.Time
OutputRegion string
InputRegions []string
IncludeTravelers bool
Status string
LeaseExpires time.Time
SignatureInfoIDs []int64
}
func (*ExportBatch) EffectiveInputRegions ¶
func (eb *ExportBatch) EffectiveInputRegions() []string
EffectiveInputRegions either returns `InputRegions` or if that array is empty, the output region (`Region`) is returned (in an array).
type ExportConfig ¶
type ExportConfig struct {
ConfigID int64
BucketName string
FilenameRoot string
Period time.Duration
OutputRegion string
InputRegions []string
IncludeTravelers bool
From time.Time
Thru time.Time
SignatureInfoIDs []int64
}
func (*ExportConfig) EffectiveInputRegions ¶
func (ec *ExportConfig) EffectiveInputRegions() []string
EffectiveInputRegions either returns `InputRegions` or if that array is empty, the output region (`Region`) is returned (in an array).
func (*ExportConfig) FormattedFromTime ¶
func (ec *ExportConfig) FormattedFromTime() string
func (*ExportConfig) FormattedThruTime ¶
func (ec *ExportConfig) FormattedThruTime() string
func (*ExportConfig) FromHTMLDate ¶
func (ec *ExportConfig) FromHTMLDate() string
func (*ExportConfig) FromHTMLTime ¶
func (ec *ExportConfig) FromHTMLTime() string
func (*ExportConfig) InputRegionsOnePerLine ¶
func (ec *ExportConfig) InputRegionsOnePerLine() string
func (*ExportConfig) ThruHTMLDate ¶
func (ec *ExportConfig) ThruHTMLDate() string
func (*ExportConfig) ThruHTMLTime ¶
func (ec *ExportConfig) ThruHTMLTime() string
func (*ExportConfig) Validate ¶
func (ec *ExportConfig) Validate() error
type ExportFile ¶
type ExportFile struct {
BucketName string
Filename string
BatchID int64
OutputRegion string
InputRegions []string
IncludeTravelers bool
BatchNum int
BatchSize int
Status string
}
func (*ExportFile) EffectiveInputRegions ¶
func (ef *ExportFile) EffectiveInputRegions() []string
EffectiveInputRegions either returns `InputRegions` or if that array is empty, the output region (`Region`) is returned (in an array).
type SignatureInfo ¶
type SignatureInfo struct {
ID int64
SigningKey string
SigningKeyVersion string
SigningKeyID string
EndTimestamp time.Time
}
func (*SignatureInfo) FormattedEndTimestamp ¶
func (s *SignatureInfo) FormattedEndTimestamp() string
FormattedEndTimestamp returns the end date for display in the admin console.
func (*SignatureInfo) HTMLEndDate ¶
func (s *SignatureInfo) HTMLEndDate() string
HTMLEndDate returns EndDate in a format for the HTML date input default value.
func (*SignatureInfo) HTMLEndTime ¶
func (s *SignatureInfo) HTMLEndTime() string
HTMLEndTime returns EndDate in a format for the HTML time input default value.