inputs

package
v0.4.6 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2019 License: Apache-2.0 Imports: 11 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetRegisteredNames

func GetRegisteredNames() []model.InputType

func Process

func Process(defs []model.VariableDef) ([]model.Variable, error)

func Register

func Register(inputType model.InputType, input Input) error

Types

type Consul

type Consul struct {
	// contains filtered or unexported fields
}

func (*Consul) Fetch

func (c *Consul) Fetch(variable model.VariableDef) (*model.Variable, error)

type Input

type Input interface {
	Fetch(variable model.VariableDef) (*model.Variable, error)
}

func Get

func Get(source model.InputType) Input

type LayeredConsul added in v0.3.0

type LayeredConsul struct {
	// contains filtered or unexported fields
}

func (*LayeredConsul) Fetch added in v0.3.0

func (c *LayeredConsul) Fetch(variable model.VariableDef) (*model.Variable, error)

type Reference added in v0.3.0

type Reference struct{}

func (*Reference) Fetch added in v0.3.0

func (i *Reference) Fetch(variable model.VariableDef) (*model.Variable, error)

type Simple

type Simple struct{}

func (*Simple) Fetch

func (i *Simple) Fetch(variable model.VariableDef) (*model.Variable, error)

type Vault

type Vault struct {
	// contains filtered or unexported fields
}

func (*Vault) Fetch

func (v *Vault) Fetch(variable model.VariableDef) (*model.Variable, error)

Jump to

Keyboard shortcuts

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