Documentation ¶
Index ¶
- Constants
- func Assembly(source, target string, extensions []string, ...) error
- func ConvertTypes(mtaStr mta.MTA, platformName string) error
- func CopyMtaContent(source, target string, extensions []string, copyInParallel bool, ...) error
- func ExecBuild(makefileTmp, source, target string, extensions []string, ...) error
- func ExecuteBuild(source, target string, extensions []string, moduleName, platform string, ...) error
- func ExecuteCleanup(source, target, desc string, wdGetter func() (string, error)) error
- func ExecuteGenMeta(source, target, desc string, extensions []string, platform string, ...) error
- func ExecuteGenMtar(source, target, targetProvided, desc string, extensions []string, ...) error
- func ExecuteMerge(source, target string, extensions []string, name string, ...) error
- func ExecuteModuleSBomGenerate(source string, modulesNames []string, allDependencies bool, ...) error
- func ExecuteMtadGen(source, target string, extensions []string, platform string, ...) error
- func ExecutePack(source, target string, extensions []string, moduleName, platform string, ...) error
- func ExecuteProjectBuild(source, target, descriptor string, extensions []string, phase string, ...) error
- func ExecuteProjectBuildeSBomGenerate(source string, sbomFilePath string, wdGetter func() (string, error)) error
- func ExecuteProjectSBomGenerate(source string, sbomFilePath string, wdGetter func() (string, error)) error
- func ExecuteSoloBuild(source, target string, extensions []string, modulesNames []string, ...) error
- func ExecuteValidation(source, desc string, extensions []string, mode, strict, exclude string, ...) error
Constants ¶
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"` )
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 ¶
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 ¶
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
Types ¶
This section is empty.