dictionary

package
v0.0.0-...-9a3fa0c Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2018 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 Action

type Action struct {
	Name        string      `yaml:"name"`
	Handle      string      `yaml:"handle"`
	Description string      `yaml:"description"`
	Expressions []string    `yaml:"expressions"`
	Parameters  []Parameter `yaml:"parameters"`
	Examples    []string    `yaml:"examples"`
}

func (*Action) Expr

func (a *Action) Expr() []string

func (*Action) Param

func (a *Action) Param(name string) *Parameter

type Dictionary

type Dictionary struct {
	ExpressionMap map[string]string `yaml:"expression_map"`
	Resources     Resources         `yaml:"resources"`
}
var (
	Base Dictionary
)

func Retrieve

func Retrieve(filepath string) (*Dictionary, error)

type Option

type Option struct {
	Name        string `yaml:"name"`
	Description string `yaml:"description"`
	Type        string `yaml:"type"`
}

type Parameter

type Parameter struct {
	Name        string `yaml:"name"`
	Description string `yaml:"description"`
	Type        string `yaml:"type"`
}

type Resource

type Resource struct {
	Name        string   `yaml:"name"`
	Group       string   `yaml:"group"`
	Description string   `yaml:"description"`
	Options     []Option `yaml:"options"`
	Actions     []Action `yaml:"actions"`
}

func (*Resource) Action

func (r *Resource) Action(name string) *Action

type Resources

type Resources struct {
	Parameters []Parameter `yaml:"parameters"`
	List       []Resource  `yaml:"list"`
}

func (*Resources) Find

func (r *Resources) Find(name string) *Resource

type Type

type Type struct {
	Expression string `yaml:"expression"`
}

Jump to

Keyboard shortcuts

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