library

package
v1.0.8 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SplitName

func SplitName(scenarioName string) []string

Types

type Library

type Library struct {
	Libraries []LibraryRef
	Type      Type
	Scenarios []Scenario
}

type LibraryLoader

type LibraryLoader interface {
	Load(paths []string) (*LoadedLibrary, error)
}

type LibraryRef

type LibraryRef struct {
	Alias string
	Path  string
}

type LoadedLibrary

type LoadedLibrary struct {
	TopLibraries []*Library
	Libraries    map[string]*Library
}

func (*LoadedLibrary) GetAliasedLibrary added in v1.0.3

func (l *LoadedLibrary) GetAliasedLibrary(lib *Library, alias string) *Library

func (*LoadedLibrary) GetPath added in v1.0.3

func (l *LoadedLibrary) GetPath(lib *Library) string

func (*LoadedLibrary) GetScenario added in v1.0.3

func (l *LoadedLibrary) GetScenario(name string) (*Scenario, *Library)

func (*LoadedLibrary) GetScenarioFromLib added in v1.0.3

func (l *LoadedLibrary) GetScenarioFromLib(lib *Library, name string) (*Scenario, *Library)

func (*LoadedLibrary) GetScenarioTree added in v1.0.3

func (l *LoadedLibrary) GetScenarioTree(name string) (*ScenarioNode, error)

type Loader

type Loader struct {
	Yaml yaml.YamlAccess
	File file.FileAccess
}

func (*Loader) Load

func (l *Loader) Load(paths []string) (*LoadedLibrary, error)

type Scenario

type Scenario struct {
	Name        string
	Description string
	GlobalArgs  []string `yaml:"global_args"`
	Args        []string
	Snippets    []Snippet
	Scenarios   []ScenarioRef
}

type ScenarioNode added in v1.0.3

type ScenarioNode struct {
	Name         string
	Description  string
	LibraryPath  string
	Type         string
	GlobalArgs   []string
	RefArgs      []string
	Args         []string
	Snippets     []Snippet
	Dependencies []*ScenarioNode
}

type ScenarioRef

type ScenarioRef struct {
	Name string
	Args []string
}

type Snippet

type Snippet struct {
	Path string
	Args []string
}

type Type

type Type string
const (
	OpsFile Type = "opsfile"
)

Jump to

Keyboard shortcuts

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