model

package
v0.0.0-...-075157f Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package model is a model abstraction of exports.

Index

Constants

This section is empty.

Variables

View Source
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
	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
	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
	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.

Jump to

Keyboard shortcuts

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