types

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

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 Platform

func Platform() string

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) Load

func (b *BiStringMap) Load(k string) (v string, exists bool)

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 DownloadGithubRepo func(url string, reference string) (location string, err error)

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

type NewBuilder func(location string) (Builder, error)

type Package

type Package struct {
	Name    string
	Version string
}

func (Package) String

func (p Package) String() string

Jump to

Keyboard shortcuts

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