manifest

package
v0.0.0-...-dcb838f Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2017 License: BSD-3-Clause Imports: 12 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

View Source
var PluginRegestry = &pluginRegestry{}

Functions

This section is empty.

Types

type Manifest

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

func Load

func Load(path string, vars map[string]string) *Manifest

func LoadJSON

func LoadJSON(json string) *Manifest

func (Manifest) ArrayAppend

func (m Manifest) ArrayAppend(path string, value interface{})

func (Manifest) DelTree

func (m Manifest) DelTree(path string) error

func (Manifest) FindPlugins

func (m Manifest) FindPlugins(plugin string) ([]PluginData, error)

func (Manifest) GetArray

func (m Manifest) GetArray(path string) []Manifest

func (Manifest) GetBool

func (m Manifest) GetBool(path string) bool

func (Manifest) GetFloat

func (m Manifest) GetFloat(path string) float64

func (Manifest) GetInt

func (m Manifest) GetInt(path string) int

func (Manifest) GetIntOr

func (m Manifest) GetIntOr(path string, defaultVal int) int

func (Manifest) GetMap

func (m Manifest) GetMap(path string) map[string]Manifest

func (Manifest) GetPluginWithData

func (m Manifest) GetPluginWithData(plugin string) PluginData

func (Manifest) GetString

func (m Manifest) GetString(path string) string

func (Manifest) GetStringOr

func (m Manifest) GetStringOr(path string, defaultVal string) string

func (Manifest) GetTree

func (m Manifest) GetTree(path string) Manifest

func (Manifest) Has

func (m Manifest) Has(path string) bool

func (Manifest) Set

func (m Manifest) Set(path string, value interface{})

func (Manifest) String

func (m Manifest) String() string

func (Manifest) ToEnvMap

func (m Manifest) ToEnvMap(prefix string) map[string]string

func (Manifest) Unwrap

func (m Manifest) Unwrap() interface{}

type Plugin

type Plugin interface {
	Run(data Manifest) error
}

type PluginData

type PluginData struct {
	PluginName string
	Plugin     Plugin
	Data       Manifest
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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