Documentation
¶
Index ¶
- Variables
- func SplitName(scenarioName string) []string
- type InterpolatorParams
- type Library
- type LibraryLoader
- type LibraryRef
- type LoadedLibrary
- func (l *LoadedLibrary) GetAliasedLibrary(lib *Library, alias string) *Library
- func (l *LoadedLibrary) GetPath(lib *Library) string
- func (l *LoadedLibrary) GetScenario(name string) (*Scenario, *Library)
- func (l *LoadedLibrary) GetScenarioFromLib(lib *Library, name string) (*Scenario, *Library)
- func (l *LoadedLibrary) GetScenarioTree(name string) (*ScenarioNode, error)
- type Loader
- type Processor
- type Scenario
- type ScenarioNode
- type ScenarioNodes
- type ScenarioRef
- type Snippet
- type Type
Constants ¶
This section is empty.
Variables ¶
View Source
var (
Types []Type = []Type{OpsFile, Yq} // treat as const
)
Functions ¶
Types ¶
type InterpolatorParams ¶
type InterpolatorParams struct {
Vars map[string]interface{} `yaml:"vars,omitempty"`
VarFiles map[string]string `yaml:"var_files,omitempty"`
VarsFiles []string `yaml:"vars_files,omitempty"`
VarsEnv []string `yaml:"vars_env,omitempty"`
VarsStore string `yaml:"vars_store,omitempty"`
RawArgs []string `yaml:"raw_args,omitempty"`
}
func (InterpolatorParams) IsZero ¶
func (i InterpolatorParams) IsZero() bool
func (InterpolatorParams) Merge ¶
func (ip InterpolatorParams) Merge(other InterpolatorParams) InterpolatorParams
type Library ¶
type Library struct {
Libraries []LibraryRef `yaml:"libraries,omitempty"`
Type Type `yaml:"type,omitempty"`
Scenarios []Scenario `yaml:"scenarios,omitempty"`
}
type LibraryLoader ¶
type LibraryLoader interface {
Load(paths []string) (*LoadedLibrary, error)
}
type LibraryRef ¶
type LoadedLibrary ¶
func (*LoadedLibrary) GetAliasedLibrary ¶
func (l *LoadedLibrary) GetAliasedLibrary(lib *Library, alias string) *Library
func (*LoadedLibrary) GetPath ¶
func (l *LoadedLibrary) GetPath(lib *Library) string
func (*LoadedLibrary) GetScenario ¶
func (l *LoadedLibrary) GetScenario(name string) (*Scenario, *Library)
func (*LoadedLibrary) GetScenarioFromLib ¶
func (l *LoadedLibrary) GetScenarioFromLib(lib *Library, name string) (*Scenario, *Library)
func (*LoadedLibrary) GetScenarioTree ¶
func (l *LoadedLibrary) GetScenarioTree(name string) (*ScenarioNode, error)
type Loader ¶
type Loader struct {
Yaml yaml.YamlAccess
File file.FileAccess
}
type Processor ¶
type Scenario ¶
type Scenario struct {
Name string
Description string `yaml:"description,omitempty"`
GlobalInterpolator InterpolatorParams `yaml:"global_interpolator,omitempty"`
Interpolator InterpolatorParams `yaml:"interpolator,omitempty"`
Snippets []Snippet `yaml:"snippets,omitempty"`
Scenarios []ScenarioRef `yaml:"scenarios,omitempty"`
}
type ScenarioNode ¶
type ScenarioNode struct {
Name string
Description string `yaml:"description,omitempty"`
LibraryPath string `yaml:"library_path,omitempty"`
GlobalInterpolator InterpolatorParams `yaml:"global_interpolator,omitempty"`
RefInterpolator InterpolatorParams `yaml:"ref_interpolator,omitempty"`
Interpolator InterpolatorParams `yaml:"interpolator,omitempty"`
Snippets []Snippet `yaml:"snippets,omitempty"`
Dependencies ScenarioNodes `yaml:"dependencies,omitempty"`
}
func (*ScenarioNode) GetProcessorTypes ¶
func (s *ScenarioNode) GetProcessorTypes() []Type
type ScenarioNodes ¶
type ScenarioNodes []*ScenarioNode
func (ScenarioNodes) GetProcessorTypes ¶
func (n ScenarioNodes) GetProcessorTypes() []Type
type ScenarioRef ¶
type ScenarioRef struct {
Name string
Interpolator InterpolatorParams `yaml:"interpolator,omitempty"`
}
type Snippet ¶
type Snippet struct {
Path string `yaml:"path,omitempty"`
Interpolator InterpolatorParams `yaml:"interpolator,omitempty"`
Processor Processor `yaml:"processor,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.