Documentation ¶
Overview ¶
Package model is a model abstraction of exports.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( ExportBatchOpen = "OPEN" ExportBatchPending = "PENDING" ExportBatchComplete = "COMPLETE" ExportBatchDeleted = "DELETED" )
Functions ¶
This section is empty.
Types ¶
type EFGSUploadConfig ¶ added in v0.13.0
type EFGSUploadConfig struct { Enabled bool UploadHost string MTLSCertSecret string MTLSKeySecret string SigningCertSecret string SigningKeySecret string }
EFGSUploadConfig ties a specific export config to EFGS Upload Config
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 OnlyNonTravelers bool ExcludeRegions []string 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 ExcludeRegions []string IncludeTravelers bool OnlyNonTravelers bool From time.Time Thru time.Time SignatureInfoIDs []int64 // Data related to EFGS EFGSConfig EFGSUploadConfig }
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) ExcludeRegionsOnePerLine ¶ added in v0.12.0
func (ec *ExportConfig) ExcludeRegionsOnePerLine() string
func (*ExportConfig) InputRegionsOnePerLine ¶
func (ec *ExportConfig) InputRegionsOnePerLine() 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 OnlyNonTravelers bool ExcludeRegions []string 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.