Documentation ¶
Overview ¶
The config package defines configuration parameters for the charm store.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { // TODO(rog) rename this to MongoAddr - it's not a URL. MongoURL string `yaml:"mongo-url"` AuditLogFile string `yaml:"audit-log-file"` AuditLogMaxSize int `yaml:"audit-log-max-size"` AuditLogMaxAge int `yaml:"audit-log-max-age"` APIAddr string `yaml:"api-addr"` AuthUsername string `yaml:"auth-username"` AuthPassword string `yaml:"auth-password"` ESAddr string `yaml:"elasticsearch-addr"` // elasticsearch is optional IdentityPublicKey *bakery.PublicKey `yaml:"identity-public-key"` IdentityLocation string `yaml:"identity-location"` TermsPublicKey *bakery.PublicKey `yaml:"terms-public-key"` TermsLocation string `yaml:"terms-location"` // The identity API is optional IdentityAPIURL string `yaml:"identity-api-url"` AgentUsername string `yaml:"agent-username"` AgentKey *bakery.KeyPair `yaml:"agent-key"` MaxMgoSessions int `yaml:"max-mgo-sessions"` RequestTimeout DurationString `yaml:"request-timeout"` StatsCacheMaxAge DurationString `yaml:"stats-cache-max-age"` SearchCacheMaxAge DurationString `yaml:"search-cache-max-age"` }
type DurationString ¶
DurationString holds a duration that marshals and unmarshals as a friendly string.
func (*DurationString) UnmarshalText ¶
func (dp *DurationString) UnmarshalText(data []byte) error
Click to show internal directories.
Click to hide internal directories.