sources

package
v0.4.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 25, 2016 License: MIT Imports: 23 Imported by: 0

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

type FileSource struct {
	Path   string `json:"path"`
	Format string `json:"format"`
}

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

type RedisSource struct {
	URI string `json:"uri"`
	Key string `json:"key"`
}

func (*RedisSource) Get

func (redisSource *RedisSource) Get() (map[string]interface{}, error)

type ShellSource added in v0.2.0

type ShellSource struct {
	Command string `json:"command"`
	Format  string `json:"format"`
}

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

func GetSource added in v0.4.0

func GetSource(rawSource map[string]interface{}) (Source, error)

GetSource resolves source from a map. Source must contain at least one property with name "type", which will be used to select proper source implementation.

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL