buildops

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// SupportedPlatformsParam - name of build-params property for supported platforms
	SupportedPlatformsParam = "supported-platforms"
)

Variables

This section is empty.

Functions

func GetBuildResultsPath

func GetBuildResultsPath(ep dir.ISourceModule, module *mta.Module) string

GetBuildResultsPath - provides path of build results

func GetBuilder

func GetBuilder(module *mta.Module) (string, bool)

GetBuilder - gets builder type of the module and indicator of custom builder

func GetModulesNames

func GetModulesNames(m *mta.MTA) ([]string, error)

GetModulesNames returns a list of module names.

func PlatformDefined

func PlatformDefined(module *mta.Module, platform string) bool

PlatformDefined - if platform defined If platforms parameter not defined then no limitations on platform, method returns true Non empty list of platforms has to contain specific platform

func ProcessDependencies

func ProcessDependencies(mtaParser dir.IMtaParser, moduleSource dir.ISourceModule, moduleName string) error

ProcessDependencies - processes module dependencies function prepares all artifacts required for module copying them from required modules

func ProcessRequirements

func ProcessRequirements(ep dir.ISourceModule, mta *mta.MTA, requires *BuildRequires, moduleName string) error

ProcessRequirements - Processes build requirement of module (using moduleName).

func ProvideModules

func ProvideModules(source, desc string, wdGetter func() (string, error)) error

ProvideModules - provides modules in order of their dependencies

Types

type BuildRequires

type BuildRequires struct {
	Name       string   `yaml:"name,omitempty"`
	Artifacts  []string `yaml:"artifacts,omitempty"`
	TargetPath string   `yaml:"target-path,omitempty"`
}

BuildRequires - build requires section.

Jump to

Keyboard shortcuts

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