diff --git a/lib/config/destination_types.go b/lib/config/destination_types.go index 9b1e692cd..47cd94304 100644 --- a/lib/config/destination_types.go +++ b/lib/config/destination_types.go @@ -2,12 +2,13 @@ package config import "github.com/artie-labs/transfer/lib/config/constants" -type S3Settings struct { - FolderName string `yaml:"folderName"` - Bucket string `yaml:"bucket"` - AwsAccessKeyID string `yaml:"awsAccessKeyID"` - AwsSecretAccessKey string `yaml:"awsSecretAccessKey"` - OutputFormat constants.S3OutputFormat `yaml:"outputFormat"` +type BigQuery struct { + // PathToCredentials is _optional_ if you have GOOGLE_APPLICATION_CREDENTIALS set as an env var + // Links to credentials: https://cloud.google.com/docs/authentication/application-default-credentials#GAC + PathToCredentials string `yaml:"pathToCredentials"` + DefaultDataset string `yaml:"defaultDataset"` + ProjectID string `yaml:"projectID"` + Location string `yaml:"location"` } type MSSQL struct { @@ -18,15 +19,6 @@ type MSSQL struct { Database string `yaml:"database"` } -type BigQuery struct { - // PathToCredentials is _optional_ if you have GOOGLE_APPLICATION_CREDENTIALS set as an env var - // Links to credentials: https://cloud.google.com/docs/authentication/application-default-credentials#GAC - PathToCredentials string `yaml:"pathToCredentials"` - DefaultDataset string `yaml:"defaultDataset"` - ProjectID string `yaml:"projectID"` - Location string `yaml:"location"` -} - type Redshift struct { Host string `yaml:"host"` Port int `yaml:"port"` @@ -39,6 +31,14 @@ type Redshift struct { CredentialsClause string `yaml:"credentialsClause"` } +type S3Settings struct { + FolderName string `yaml:"folderName"` + Bucket string `yaml:"bucket"` + AwsAccessKeyID string `yaml:"awsAccessKeyID"` + AwsSecretAccessKey string `yaml:"awsSecretAccessKey"` + OutputFormat constants.S3OutputFormat `yaml:"outputFormat"` +} + type Snowflake struct { AccountID string `yaml:"account"` Username string `yaml:"username"`