Documentation
¶
Index ¶
- Constants
- func GetBuildResultsPath(ep dir.ISourceModule, module *mta.Module, defaultBuildResult string) (string, bool, error)
- func GetModulesNames(m *mta.MTA) ([]string, error)
- func PlatformDefined(module *mta.Module, platform string) bool
- func ProcessDependencies(mtaParser dir.IMtaParser, moduleSource dir.ISourceModule, moduleName string) error
- func ProcessRequirements(ep dir.ISourceModule, mta *mta.MTA, requires *BuildRequires, moduleName string) error
- func ProvideModules(source, desc string, wdGetter func() (string, error)) error
- type BuildRequires
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, defaultBuildResult string) (string, bool, error)
GetBuildResultsPath - provides path of build results
func GetModulesNames ¶
GetModulesNames returns a list of module names.
func PlatformDefined ¶
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).
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.
Click to show internal directories.
Click to hide internal directories.