Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplyEnvironment ¶
ApplyEnvironment saves values from the environment to the config.
func Open ¶
Open opens the swift backend at a container in region. The container is created if it does not exist yet.
func ParseConfig ¶
ParseConfig parses the string s and extract swift's container name and prefix.
Types ¶
type Config ¶
type Config struct { UserName string Domain string APIKey string AuthURL string Region string Tenant string TenantID string TenantDomain string TrustID string StorageURL string AuthToken string 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
Click to show internal directories.
Click to hide internal directories.