Documentation ¶
Index ¶
- Constants
- func MergeGraphs(graphs ...*dag.AcyclicGraph) *dag.AcyclicGraph
- func Platform() string
- func PrintDot(ag *dag.AcyclicGraph)
- func StringDot(ag *dag.AcyclicGraph) string
- type AcyclicGraph
- type BiStringMap
- type BuildOptions
- type BuildResponse
- type Builder
- type DownloadGithubRepo
- type LockfileWriter
- type NewBuilder
- type Package
Constants ¶
View Source
const FakeRoot = "fake root"
FakeRoot is used when we have multiple build outputs, or "roots" in our graph so we need to tie them to a single fake root so that we still have a value DAG.
Variables ¶
This section is empty.
Functions ¶
func MergeGraphs ¶
func MergeGraphs(graphs ...*dag.AcyclicGraph) *dag.AcyclicGraph
func PrintDot ¶
func PrintDot(ag *dag.AcyclicGraph)
func StringDot ¶
func StringDot(ag *dag.AcyclicGraph) string
Types ¶
type AcyclicGraph ¶
type AcyclicGraph struct {
dag.AcyclicGraph
}
AcyclicGraph
func NewAcyclicGraph ¶
func NewAcyclicGraph() *AcyclicGraph
type BiStringMap ¶
type BiStringMap struct {
// contains filtered or unexported fields
}
func NewBiStringMap ¶
func NewBiStringMap() *BiStringMap
NewBiStringMap returns a an empty, mutable, BiStringMap
func (*BiStringMap) LoadInverse ¶
func (b *BiStringMap) LoadInverse(k string) (v string, exists bool)
func (*BiStringMap) Store ¶
func (b *BiStringMap) Store(k, v string)
func (*BiStringMap) StoreInverse ¶
func (b *BiStringMap) StoreInverse(k, v string)
type BuildOptions ¶
type BuildOptions struct {
Check bool
}
type BuildResponse ¶
type BuildResponse struct { // Modules is a map of all modules. Each module has a map of all module functions and their outputs. Modules map[string]map[string][]string // FinalHashMapping is a map of the starlark input hash to the resulting built derivation filename. FinalHashMapping map[string]string }
type Builder ¶
type Builder interface { // Build runs a build as if it's being run from the command line Build(ctx context.Context, location string, args []string, opts BuildOptions) (BuildResponse, error) // Packages returns all packages in this location Packages() map[string]Package }
type DownloadGithubRepo ¶
type LockfileWriter ¶
type LockfileWriter interface { AddEntry(string, string) error LookupEntry(string) (v string, found bool) }
LockfileWriter is used to check if various urls already have a cache entry and if it conflicts with a provided cache entry
type NewBuilder ¶
Click to show internal directories.
Click to hide internal directories.