-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
168 additions
and
197 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
package config | ||
|
||
import "github.com/artie-labs/transfer/lib/config/constants" | ||
|
||
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 { | ||
Host string `yaml:"host"` | ||
Port int `yaml:"port"` | ||
Username string `yaml:"username"` | ||
Password string `yaml:"password"` | ||
Database string `yaml:"database"` | ||
} | ||
|
||
type Redshift struct { | ||
Host string `yaml:"host"` | ||
Port int `yaml:"port"` | ||
Database string `yaml:"database"` | ||
Username string `yaml:"username"` | ||
Password string `yaml:"password"` | ||
Bucket string `yaml:"bucket"` | ||
OptionalS3Prefix string `yaml:"optionalS3Prefix"` | ||
// https://docs.aws.amazon.com/redshift/latest/dg/copy-parameters-authorization.html | ||
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"` | ||
// If pathToPrivateKey is specified, the password field will be ignored | ||
PathToPrivateKey string `yaml:"pathToPrivateKey,omitempty"` | ||
Password string `yaml:"password,omitempty"` | ||
|
||
Warehouse string `yaml:"warehouse"` | ||
Region string `yaml:"region"` | ||
Host string `yaml:"host"` | ||
Application string `yaml:"application"` | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.