Documentation ¶
Overview ¶
Package config create AWS session and distribute it (alongside other config value) to any package interested.
Index ¶
Constants ¶
View Source
const ( Localstack = "aws.localstack" // Localstack set to true will ignore AwsRegion, AwsKey, and AwsSecret AwsRegion = "aws.region" AwsKey = "aws.key" AwsSecret = "aws.secret" ArchiveDynamodbTable = "archive.dynamodb.table" ArchiveMainBucketName = "archive.main.bucketName" ArchiveCacheBucketName = "archive.cache.bucketName" ArchiveJobsSNSARN = "archive.sns.arn" ArchiveJobsSQSURL = "archive.sqs.url" BackupCacheDirectory = "backup.cache.dir" BackupConcurrencyAnalyser = "backup.concurrency.analyser" BackupConcurrencyCataloguer = "backup.concurrency.cataloguer" BackupConcurrencyUploader = "backup.concurrency.uploader" CatalogDynamodbTable = "catalog.dynamodb.table" LocalHome = "home.dir" Owner = "owner" )
Variables ¶
View Source
var ( ForcedConfigFile string // ForcedConfigFile is the path to the file of the config to use (instead of defaulting to ./dphoto.yml, $HOME/.dphoto/dphoto.yml, ...) Environment string // Environment is used as suffix for the config file name. )
Functions ¶
func BackupOptions ¶ added in v1.6.13
Types ¶
type ViperAWSName ¶ added in v1.5.40
type ViperAWSName struct{}
func (*ViperAWSName) ArchiveCacheBucketName ¶ added in v1.5.40
func (v *ViperAWSName) ArchiveCacheBucketName() string
func (*ViperAWSName) ArchiveJobsSNSARN ¶ added in v1.5.40
func (v *ViperAWSName) ArchiveJobsSNSARN() string
func (*ViperAWSName) ArchiveJobsSQSURL ¶ added in v1.5.40
func (v *ViperAWSName) ArchiveJobsSQSURL() string
func (*ViperAWSName) ArchiveMainBucketName ¶ added in v1.5.40
func (v *ViperAWSName) ArchiveMainBucketName() string
func (*ViperAWSName) DynamoDBName ¶ added in v1.5.40
func (v *ViperAWSName) DynamoDBName() string
Click to show internal directories.
Click to hide internal directories.