processor

package
v2.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PathBuilder

type PathBuilder interface {
	Root() string
	Append() string
	Index(index string) string
	Delimiter() string
	Safe() string
	Marshal(path string, value interface{}) interface{}
}

type Processor

type Processor interface {
	ValidateSnippet(path string) (SnippetHint, error)
	ParsePassthroughFlags(args []string) (*library.ScenarioNode, []string, error)
	ProcessTemplate(template *file.TaggedBytes, snippet *file.TaggedBytes, options map[string]interface{}) ([]byte, error)
}

type SnippetGenerator

type SnippetGenerator interface {
	GenerateSnippets(schema *yaml.SchemaNode) ([]*file.TaggedBytes, error)
}

func NewSnippetGenerator

func NewSnippetGenerator(y yaml.YamlAccess, builder PathBuilder) SnippetGenerator

type SnippetHint added in v2.0.1

type SnippetHint struct {
	Valid   bool
	Element string
	Action  string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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