generator

package
v1.101.0 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2020 License: Apache-2.0 Imports: 10 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CustomLibrarySteps = []CustomLibrary{}

CustomLibrarySteps holds a list of libraries with it's custom steps.

Functions

func GenerateStepDocumentation

func GenerateStepDocumentation(metadataFiles []string, customDefaultFiles []string, docuHelperData DocuHelperData) error

GenerateStepDocumentation generates step coding based on step configuration provided in yaml files

Types

type CustomLibrary added in v1.88.0

type CustomLibrary struct {
	Name        string   `yaml: "name,omitempty"`
	BinaryName  string   `yaml: "binaryName,omitempty"`
	LibraryName string   `yaml: "libraryName,omitempty"`
	Steps       []string `yaml: "steps,omitempty"`
}

CustomLibrary represents a custom library with it's custom step names, binary name and library name.

type DocuHelperData

type DocuHelperData struct {
	DocTemplatePath     string
	OpenDocTemplateFile func(d string) (io.ReadCloser, error)
	DocFileWriter       func(f string, d []byte, p os.FileMode) error
	OpenFile            func(s string) (io.ReadCloser, error)
}

DocuHelperData is used to transport the needed parameters and functions from the step generator to the docu generation.

Jump to

Keyboard shortcuts

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