Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewFactory ¶
Types ¶
type Config ¶
type Config struct {
UserName string
UserID string
Domain string
DomainID string
APIKey string
AuthURL string
Region string
Tenant string
TenantID string
TenantDomain string
TenantDomainID string
TrustID string
StorageURL string
AuthToken options.SecretString
// auth v3 only
ApplicationCredentialID string
ApplicationCredentialName string
ApplicationCredentialSecret options.SecretString
Container string
Prefix string
DefaultContainerPolicy string
Connections uint `option:"connections" help:"set a limit for the number of concurrent connections (default: 5)"`
}
Config contains basic configuration needed to specify swift location for a swift server
func NewConfig ¶
func NewConfig() Config
NewConfig returns a new config with the default values filled in.
func ParseConfig ¶
ParseConfig parses the string s and extract swift's container name and prefix.
func (*Config) ApplyEnvironment ¶
ApplyEnvironment saves values from the environment to the config.
Click to show internal directories.
Click to hide internal directories.