export

package
v2.0.0-alpha.15 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2022 License: MIT Imports: 8 Imported by: 10

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Exporter

type Exporter struct {
	// contains filtered or unexported fields
}

Exporter ...

func NewExporter

func NewExporter(cmdFactory command.Factory) Exporter

NewExporter ...

func (*Exporter) ExportOutput

func (e *Exporter) ExportOutput(key, value string) error

ExportOutput is used for exposing values for other steps. Regular env vars are isolated between steps, so instead of calling `os.Setenv()`, use this to explicitly expose a value for subsequent steps.

func (*Exporter) ExportOutputFile

func (e *Exporter) ExportOutputFile(key, sourcePath, destinationPath string) error

ExportOutputFile is a convenience method for copying sourcePath to destinationPath and then exporting the absolute destination path with ExportOutput()

func (*Exporter) ExportOutputFilesZip

func (e *Exporter) ExportOutputFilesZip(key string, sourcePaths []string, zipPath string) error

ExportOutputFilesZip is a convenience method for creating a ZIP archive from sourcePaths at zipPath and then exporting the absolute path of the ZIP with ExportOutput()

Jump to

Keyboard shortcuts

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