Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CompositeSource ¶ added in v0.4.0
type CompositeSource struct {
Sources []map[string]interface{} `json:"sources"`
}
func (*CompositeSource) Get ¶ added in v0.4.0
func (compositeSource *CompositeSource) Get() (map[string]interface{}, error)
type ConsulSource ¶
type ConsulSource struct {
Address string `json:"address"`
Prefix string `json:"prefix"`
Scheme string `json:"scheme"`
}
func (*ConsulSource) Get ¶
func (consulSource *ConsulSource) Get() (map[string]interface{}, error)
type DynamoDBSource ¶
type DynamoDBSource struct {
Endpoint string `json:"endpoint"`
Region string `json:"region"`
AccessKey string `json:"accessKey"`
SecretKey string `json:"secretKey"`
Table string `json:"table"`
Key string `json:"key"`
}
func (*DynamoDBSource) Get ¶
func (dynamoDBSource *DynamoDBSource) Get() (map[string]interface{}, error)
type EtcdSource ¶
type EtcdSource struct {
Endpoints []string `json:"endpoints"`
Prefix string `json:"prefix"`
KeepPrefix bool `json:"keepPrefix"`
}
func (*EtcdSource) Get ¶
func (etcdSource *EtcdSource) Get() (map[string]interface{}, error)
type FileSource ¶
func (*FileSource) Get ¶
func (fileSource *FileSource) Get() (map[string]interface{}, error)
type HTTPSource ¶
type HTTPSource struct {
URL string `json:"url"`
Format string `json:"format"`
Insecure bool `json:"insecure"`
TLS struct {
Cert string `json:"cert"`
Key string `json:"key"`
} `json:"tls"`
}
func (*HTTPSource) Get ¶
func (httpSource *HTTPSource) Get() (map[string]interface{}, error)
type RedisSource ¶
func (*RedisSource) Get ¶
func (redisSource *RedisSource) Get() (map[string]interface{}, error)
type ShellSource ¶ added in v0.2.0
func (*ShellSource) Get ¶ added in v0.2.0
func (shellSource *ShellSource) Get() (map[string]interface{}, error)
type Source ¶ added in v0.4.0
type Source interface {
// Get resolves a config using the Source's config
Get() (map[string]interface{}, error)
}
Source defines methods a source should implement, to resolve a config
type VaultSource ¶ added in v0.2.0
type VaultSource struct {
Address string `json:"address"`
Token string `json:"token"`
Path string `json:"path"`
}
func (*VaultSource) Get ¶ added in v0.2.0
func (vaultSource *VaultSource) Get() (map[string]interface{}, error)
Click to show internal directories.
Click to hide internal directories.