variables

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2020 License: MPL-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 JSONCache

type JSONCache struct {
	JSONStringMap   map[string]string
	JSONVariableMap map[string]string
}

func NewJSONCache

func NewJSONCache() (cache JSONCache)

func (JSONCache) AddJSON

func (cache JSONCache) AddJSON(name string, json string)

func (JSONCache) AddVariable

func (cache JSONCache) AddVariable(jsonName string, name string, value string)

func (JSONCache) GetJSON

func (cache JSONCache) GetJSON(key string) (json string, hasJSON bool)

func (JSONCache) GetVariable

func (cache JSONCache) GetVariable(jsonName string, name string) (value string, hasVariable bool)

type Resolver

type Resolver struct {
	VariableCache JSONCache
}

func NewResolver

func NewResolver() (resolver Resolver)

func (Resolver) ResolveVariableFromJSON

func (resolver Resolver) ResolveVariableFromJSON(filePath string, key string) (value string, err error)

func (Resolver) ResolveVariableFromScript

func (resolver Resolver) ResolveVariableFromScript(executable string, filePath string, key string) (value string, err error)

Jump to

Keyboard shortcuts

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