source

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2017 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

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 a source of type file

func NewMultiSourcer

func NewMultiSourcer(vss ...ValuesSourcer) (*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

type ValuesSourcer

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

ValuesSourcer is interface for sources

Jump to

Keyboard shortcuts

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