generator

package
v1.311.0 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2023 License: Apache-2.0 Imports: 14 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 GenerateStageDocumentation added in v1.180.0

func GenerateStageDocumentation(stageMetadataPath, stageTargetPath, relativeStepsPath string, utils piperutils.FileUtils) error

GenerateStepDocumentation generates pipeline stage documentation based on pipeline configuration provided in a yaml file

func GenerateStepDocumentation

func GenerateStepDocumentation(metadataFiles []string, customDefaultFiles []string, docuHelperData DocuHelperData, azure bool) 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