Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FilterComponents ¶
FilterComponents filters a list of files to components
Types ¶
type Dependencies ¶
type Dependencies struct {
// contains filtered or unexported fields
}
Dependencies holds a collection of dependencies as a map from a component name to a list of Dependency instances
func Read ¶
func Read(manifestPaths []string, dependOnSelf bool) ([]string, Dependencies, []error)
Read manifests at manifestPaths and return a graph of dependencies
func ReadRepoManifest ¶
func ReadRepoManifest(manifest string, dependOnSelf bool) ([]string, Dependencies, []error)
ReadRepoManifest reads a full repository manifest as produced by monobuild print --full
func (Dependencies) AsGraph ¶
func (d Dependencies) AsGraph() graph.Graph
AsGraph returns the dependencies as a graph.Graph
type Dependency ¶
Dependency holds information about the dependency relationship of one component with another. Dependencies hav a string name and a kind, which can be Weak or Strong
func ReadManifest ¶
func ReadManifest(path string) (string, []Dependency, []error)
ReadManifest reads a single manifest file and returns the dependency list or validation errors
type Kind ¶
type Kind int
Kind of the dependency (enum)
var Strong Kind = 2
Strong dependency is one, changes to which cause rebuild of its dependentes, and the dependent builds can only be run when its build successfully finishes
var Weak Kind = 1
Weak dependency is one, changes to which cause rebuild of its dependents, but dependents builds can run in parallel with its build