source

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2018 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Getter

type Getter interface {
	Get() map[string]interface{}
}

Getter is interface for sources.

type Source

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

Source is a simple ValuesSourcer implementation.

func NewFileSource

func NewFileSource(r io.Reader, format string) (*Source, error)

NewFileSource creates new file source.

func NewMultiSourcer

func NewMultiSourcer(vss ...Getter) (*Source, error)

NewMultiSourcer create source that is a collection of value sources.

func NewSource

func NewSource(body map[string]interface{}) *Source

NewSource creates new Source.

func (*Source) Get

func (s *Source) Get() map[string]interface{}

Get returns the values from the source.

Jump to

Keyboard shortcuts

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