exposure-notifications-server: github.com/google/exposure-notifications-server/internal/export/model Index | Files

package model

import "github.com/google/exposure-notifications-server/internal/export/model"

Package model is a model abstraction of exports.

Index

Package Files

export_model.go

Variables

var (
    ExportBatchOpen     = "OPEN"
    ExportBatchPending  = "PENDING"
    ExportBatchComplete = "COMPLETE"
    ExportBatchDeleted  = "DELETED"
)

type EFGSUploadConfig Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

func (ec *ExportConfig) ExcludeRegionsOnePerLine() string

func (*ExportConfig) InputRegionsOnePerLine Uses

func (ec *ExportConfig) InputRegionsOnePerLine() string

func (*ExportConfig) Validate Uses

func (ec *ExportConfig) Validate() error

type ExportFile Uses

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 Uses

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 Uses

type SignatureInfo struct {
    ID                int64
    SigningKey        string
    SigningKeyVersion string
    SigningKeyID      string
    EndTimestamp      time.Time
}

func (*SignatureInfo) FormattedEndTimestamp Uses

func (s *SignatureInfo) FormattedEndTimestamp() string

FormattedEndTimestamp returns the end date for display in the admin console.

func (*SignatureInfo) HTMLEndDate Uses

func (s *SignatureInfo) HTMLEndDate() string

HTMLEndDate returns EndDate in a format for the HTML date input default value.

func (*SignatureInfo) HTMLEndTime Uses

func (s *SignatureInfo) HTMLEndTime() string

HTMLEndTime returns EndDate in a format for the HTML time input default value.

Package model imports 3 packages (graph) and is imported by 6 packages. Updated 2020-10-28. Refresh now. Tools for package owners.