manifests

package
v0.0.0-...-5c6eef5 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2019 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FilterComponents

func FilterComponents(components []string, changedFiles []string) []string

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

type Dependency struct {
	Name string
	Kind Kind
}

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

Jump to

Keyboard shortcuts

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