manifest

package
v1.6.190 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2022 License: BSD-3-Clause Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var PluginRegestry = &pluginRegestry{}

Functions

This section is empty.

Types

type Hooks added in v1.6.170

type Hooks struct {
	Manifest *Manifest
	DryRun   bool
}

func (*Hooks) Run added in v1.6.170

func (h *Hooks) Run(hookName string) error

type Manifest

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

func Load

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

func LoadJSON

func LoadJSON(path string) *Manifest

func ParseJSON added in v1.6.66

func ParseJSON(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) GetArrayForce

func (m Manifest) GetArrayForce(path string) []interface{}

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