mirror of
https://github.com/Forceu/Gokapi.git
synced 2026-01-07 17:39:34 -06:00
* Initial commit websetup * Added writing cloudstorage credentials * Clean up old configuration generation * Added Oauth2 OpenID Connect support * Bugfixes and fixed tests * Refactoring * Refactoring, added first tests * Added documentation * Refactoring, updated docs * Added tests * Added option to reshow setup for reconfiguring Gokapi instance * Added docs and tests
19 lines
529 B
Go
19 lines
529 B
Go
package models
|
|
|
|
// AwsConfig contains all configuration values / credentials for AWS cloud storage
|
|
type AwsConfig struct {
|
|
Bucket string `yaml:"Bucket"`
|
|
Region string `yaml:"Region"`
|
|
KeyId string `yaml:"KeyId"`
|
|
KeySecret string `yaml:"KeySecret"`
|
|
Endpoint string `yaml:"Endpoint"`
|
|
}
|
|
|
|
// IsAllProvided returns true if all required variables have been set for using AWS S3 / Backblaze
|
|
func (c *AwsConfig) IsAllProvided() bool {
|
|
return c.Bucket != "" &&
|
|
c.Region != "" &&
|
|
c.KeyId != "" &&
|
|
c.KeySecret != ""
|
|
}
|