artifacts

package
v1.2.27 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2023 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// PackFailedOnArchMsg - message raised when packaging fails during archiving the module
	PackFailedOnArchMsg = `could not package the "%s" module when archiving`

	// UnsupportedPhaseMsg - message raised when phase of mta project build is wrong
	UnsupportedPhaseMsg = `the "%s" phase of MTA project build is invalid; supported phases: "pre", "post"`
)
View Source
const (

	// MaxMakeParallel - Maximum number of parallel makefile jobs if the parameter is not set by the user
	MaxMakeParallel = 8
)

Variables

This section is empty.

Functions

func Assembly added in v0.1.1

func Assembly(source, target string, extensions []string, platform, mtarName, copyInParallel string, getWd func() (string, error)) error

Assembly - assemble mta project

func ConvertTypes

func ConvertTypes(mtaStr mta.MTA, platformName string) error

ConvertTypes - convert types to appropriate target platform types

func CopyMtaContent

func CopyMtaContent(source, target string, extensions []string, copyInParallel bool, wdGetter func() (string, error)) error

CopyMtaContent copies the content of all modules and resources which are presented in the deployment descriptor, in the source directory, to the target directory

func ExecBuild added in v0.2.6

func ExecBuild(makefileTmp, source, target string, extensions []string, mode, mtar, platform string,
	strict bool, jobs int, outputSync bool, wdGetter func() (string, error), wdExec func([][]string, bool) error,
	useDefaultMbt bool, keepMakefile bool, sBomFilePath string) error

ExecBuild - Execute MTA project build

func ExecuteBuild

func ExecuteBuild(source, target string, extensions []string, moduleName, platform string, wdGetter func() (string, error)) error

ExecuteBuild - executes build of module from Makefile

func ExecuteCleanup

func ExecuteCleanup(source, target, desc string, wdGetter func() (string, error)) error

ExecuteCleanup - cleanups temp artifacts

func ExecuteGenMeta

func ExecuteGenMeta(source, target, desc string, extensions []string, platform string, wdGetter func() (string, error)) error

ExecuteGenMeta - generates metadata

func ExecuteGenMtar

func ExecuteGenMtar(source, target, targetProvided, desc string, extensions []string, mtarName string, wdGetter func() (string, error)) error

ExecuteGenMtar - generates MTAR

func ExecuteMerge added in v0.3.1

func ExecuteMerge(source, target string, extensions []string, name string, wdGetter func() (string, error)) error

ExecuteMerge merges mta.yaml and MTA extension descriptors and writes the result to a file with the given name

func ExecuteModuleSBomGenerate added in v1.2.26

func ExecuteModuleSBomGenerate(source string, modulesNames []string, allDependencies bool, sBomFilePath string, wdGetter func() (string, error)) error

ExecuteModuleSBomGenerate - Execute specified modules of MTA project SBOM generation

func ExecuteMtadGen added in v1.0.9

func ExecuteMtadGen(source, target string, extensions []string, platform string, wdGetter func() (string, error)) error

ExecuteMtadGen - generates MTAD from MTA

func ExecutePack

func ExecutePack(source, target string, extensions []string, moduleName, platform string, wdGetter func() (string, error)) error

ExecutePack - executes packing of module

func ExecuteProjectBuild added in v0.1.1

func ExecuteProjectBuild(source, target, descriptor string, extensions []string, phase string, getWd func() (string, error)) error

ExecuteProjectBuild - execute pre or post phase of project build

func ExecuteProjectBuildeSBomGenerate added in v1.2.26

func ExecuteProjectBuildeSBomGenerate(source string, sbomFilePath string, wdGetter func() (string, error)) error

ExecuteProjectBuildeSBomGenerate - Execute MTA project SBOM generation with Build process

func ExecuteProjectSBomGenerate added in v1.2.26

func ExecuteProjectSBomGenerate(source string, sbomFilePath string, wdGetter func() (string, error)) error

ExecuteProjectSBomGenerate - Execute MTA project SBOM generation

func ExecuteSoloBuild added in v1.0.10

func ExecuteSoloBuild(source, target string, extensions []string, modulesNames []string, allDependencies bool,
	generateMtadFlag bool, platform string,
	wdGetter func() (string, error)) error

ExecuteSoloBuild - executes build of module from stand alone command

func ExecuteValidation

func ExecuteValidation(source, desc string, extensions []string, mode, strict, exclude string, getWorkingDir func() (string, error)) error

ExecuteValidation - executes validation of MTA

Types

This section is empty.

Jump to

Keyboard shortcuts

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