Documentation
¶
Index ¶
- Constants
- func Contains(ts []*Target, addr string) bool
- type ArtifactHash
- type ArtifactRegistry
- func (o *ArtifactRegistry) All() []artifacts.Artifact
- func (o *ArtifactRegistry) GetRestoreCache() (artifacts.Artifact, bool)
- func (o *ArtifactRegistry) OutHash(name string) artifacts.Artifact
- func (o *ArtifactRegistry) OutTar(name string) artifacts.Artifact
- func (o *ArtifactRegistry) OutTar2(name string) (artifacts.Artifact, bool)
- type DAG
- func (d *DAG) GetAncestors(target specs.Specer) ([]*Target, error)
- func (d *DAG) GetAncestorsOfAddr(addr string) ([]*Target, error)
- func (d *DAG) GetChildren(target specs.Specer) ([]*Target, error)
- func (d *DAG) GetDescendants(target specs.Specer) ([]*Target, error)
- func (d *DAG) GetDescendantsOfAddr(addr string) ([]*Target, error)
- func (d *DAG) GetFileChildren(paths []string, universe []*Target) []*Target
- func (d *DAG) GetLeaves() []*Target
- func (d *DAG) GetOrderedAncestors(targets []*Target, includeRoot bool) ([]*Target, error)
- func (d *DAG) GetOrderedAncestorsWithOutput(targets *Targets, includeRoot bool) (*Targets, *maps.Map[string, *sets.Set[string, string]], error)
- func (d *DAG) GetOrderedDescendants(targets []*Target, includeRoot bool) ([]*Target, error)
- func (d *DAG) GetParents(target specs.Specer) ([]*Target, error)
- func (d *DAG) GetVertices() []*Target
- type ErrDoesNotHaveOutput
- type OutNamedPaths
- type State
- func (e *State) CodegenPaths() map[string]*Target
- func (e *State) DAG() *DAG
- func (e *State) GeneratedTargets() []*Target
- func (e *State) GetCodegenOrigin(path string) (*Target, bool)
- func (e *State) HasLabel(label string) bool
- func (e *State) Labels() *sets.StringSet
- func (e *State) LinkTarget(t *Target, breadcrumb *sets.StringSet) (rerr error)
- func (e *State) LinkTargets(ctx context.Context, ignoreNotFoundError bool, targets []*Target, emit bool) error
- func (e *State) Register(spec specs.Target) (*Target, error)
- func (e *State) RequiredMatchers(ts []*Target) (specs.Matcher, error)
- func (e *State) Targets() *Targets
- type Target
- func (t *Target) DeepGenSources() []*Target
- func (t *Target) EmptyDeps() bool
- func (t *Target) GraphTarget() *Target
- func (t *Target) HasAnyLabel(labels []string) bool
- func (t *Target) ID() string
- func (t *Target) ResetLinking()
- func (t *Target) String() string
- func (t *Target) ToolTarget() TargetTool
- type TargetDeps
- type TargetNamedDeps
- func (tp *TargetNamedDeps) Add(name string, p TargetDeps)
- func (tp *TargetNamedDeps) All() TargetDeps
- func (tp TargetNamedDeps) Copy() TargetNamedDeps
- func (tp *TargetNamedDeps) Dedup()
- func (tp *TargetNamedDeps) Empty() bool
- func (tp *TargetNamedDeps) HasName(name string) bool
- func (tp *TargetNamedDeps) IsNamed() bool
- func (tp *TargetNamedDeps) Map(fn func(deps TargetDeps) TargetDeps)
- func (tp *TargetNamedDeps) Merge(deps TargetNamedDeps) TargetNamedDeps
- func (tp *TargetNamedDeps) Name(name string) TargetDeps
- func (tp *TargetNamedDeps) Named() map[string]TargetDeps
- func (tp *TargetNamedDeps) Names() []string
- func (tp *TargetNamedDeps) Set(name string, p TargetDeps)
- func (tp *TargetNamedDeps) Sort()
- type TargetRuntimeEnv
- type TargetTool
- type TargetTools
- type TargetTransitive
- type TargetWithOutput
- type Targeter
- type Targets
- func (ts *Targets) Addrs() []string
- func (ts *Targets) Copy() *Targets
- func (ts *Targets) Filter(m specs.Matcher) (*Targets, error)
- func (ts *Targets) Find(addr string) *Target
- func (ts *Targets) FindT(s specs.Specer) *Target
- func (ts *Targets) Public() *Targets
- func (ts *Targets) Sort()
- func (ts *Targets) Specs() specs.Targets
- func (ts *Targets) Suggest(s string) specs.Targets
- type Walker
Constants ¶
View Source
const InlineGroups = true
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ArtifactHash ¶
func (ArtifactHash) Hash ¶
func (a ArtifactHash) Hash() artifacts.Artifact
func (ArtifactHash) Tar ¶
func (a ArtifactHash) Tar() artifacts.Artifact
type ArtifactRegistry ¶
type ArtifactRegistry struct { InputHash artifacts.Artifact Log artifacts.Artifact Manifest artifacts.Artifact Out map[string]ArtifactHash RestoreCache *artifacts.Artifact // contains filtered or unexported fields }
func (*ArtifactRegistry) All ¶
func (o *ArtifactRegistry) All() []artifacts.Artifact
func (*ArtifactRegistry) GetRestoreCache ¶
func (o *ArtifactRegistry) GetRestoreCache() (artifacts.Artifact, bool)
type DAG ¶
func (*DAG) GetDescendantsOfAddr ¶
func (*DAG) GetFileChildren ¶
GetFileChildren returns targets directly depending on file
func (*DAG) GetOrderedAncestors ¶
func (*DAG) GetOrderedAncestorsWithOutput ¶
func (*DAG) GetOrderedDescendants ¶
func (*DAG) GetVertices ¶
type ErrDoesNotHaveOutput ¶
type ErrDoesNotHaveOutput struct {
Addr, Output string
}
func (ErrDoesNotHaveOutput) Error ¶
func (e ErrDoesNotHaveOutput) Error() string
type OutNamedPaths ¶
type State ¶
type State struct { Root *hroot.State Config *config.Config Tools *Targets // contains filtered or unexported fields }
func (*State) CodegenPaths ¶
func (*State) GeneratedTargets ¶
func (*State) LinkTarget ¶
func (*State) LinkTargets ¶
func (*State) RequiredMatchers ¶
type Target ¶
type Target struct { specs.Target GenSources []*Target `json:"-"` Tools TargetTools `json:"-"` Deps TargetNamedDeps `json:"-"` RuntimeDeps TargetNamedDeps `json:"-"` HashDeps TargetDeps `json:"-"` OutWithSupport *OutNamedPaths Out *OutNamedPaths RestoreCachePaths xfs.RelPaths Env map[string]string RuntimeEnv map[string]TargetRuntimeEnv RuntimePassEnv []string Platforms []specs.Platform // Collected transitive deps from deps/tools TransitiveDeps TargetTransitive // Own transitive config OwnTransitive TargetTransitive // Own transitive config plus their own transitive DeepOwnTransitive TargetTransitive Artifacts *ArtifactRegistry `json:"-"` // Deps + HashDeps + TargetTools AllTargetDeps *Targets `json:"-"` // contains filtered or unexported fields }
func (*Target) DeepGenSources ¶
func (*Target) GraphTarget ¶
func (*Target) HasAnyLabel ¶
func (*Target) ResetLinking ¶
func (t *Target) ResetLinking()
func (*Target) ToolTarget ¶
func (t *Target) ToolTarget() TargetTool
type TargetDeps ¶
type TargetDeps struct { Targets []TargetWithOutput // Targets with groups inlined RawTargets []TargetWithOutput // Targets with no inlining Files []xfs.Path }
func (TargetDeps) Copy ¶
func (d TargetDeps) Copy() TargetDeps
func (*TargetDeps) Dedup ¶
func (d *TargetDeps) Dedup()
func (TargetDeps) Empty ¶
func (d TargetDeps) Empty() bool
func (TargetDeps) Merge ¶
func (d TargetDeps) Merge(deps TargetDeps) TargetDeps
func (*TargetDeps) Sort ¶
func (d *TargetDeps) Sort()
type TargetNamedDeps ¶
type TargetNamedDeps struct {
// contains filtered or unexported fields
}
func (*TargetNamedDeps) Add ¶
func (tp *TargetNamedDeps) Add(name string, p TargetDeps)
func (*TargetNamedDeps) All ¶
func (tp *TargetNamedDeps) All() TargetDeps
func (TargetNamedDeps) Copy ¶
func (tp TargetNamedDeps) Copy() TargetNamedDeps
func (*TargetNamedDeps) Dedup ¶
func (tp *TargetNamedDeps) Dedup()
func (*TargetNamedDeps) Empty ¶
func (tp *TargetNamedDeps) Empty() bool
func (*TargetNamedDeps) HasName ¶
func (tp *TargetNamedDeps) HasName(name string) bool
func (*TargetNamedDeps) IsNamed ¶
func (tp *TargetNamedDeps) IsNamed() bool
func (*TargetNamedDeps) Map ¶
func (tp *TargetNamedDeps) Map(fn func(deps TargetDeps) TargetDeps)
func (*TargetNamedDeps) Merge ¶
func (tp *TargetNamedDeps) Merge(deps TargetNamedDeps) TargetNamedDeps
func (*TargetNamedDeps) Name ¶
func (tp *TargetNamedDeps) Name(name string) TargetDeps
func (*TargetNamedDeps) Named ¶
func (tp *TargetNamedDeps) Named() map[string]TargetDeps
func (*TargetNamedDeps) Names ¶
func (tp *TargetNamedDeps) Names() []string
func (*TargetNamedDeps) Set ¶
func (tp *TargetNamedDeps) Set(name string, p TargetDeps)
func (*TargetNamedDeps) Sort ¶
func (tp *TargetNamedDeps) Sort()
type TargetRuntimeEnv ¶
func (TargetRuntimeEnv) MarshalJSON ¶
func (v TargetRuntimeEnv) MarshalJSON() ([]byte, error)
type TargetTool ¶
func (TargetTool) Full ¶
func (t TargetTool) Full() string
type TargetTools ¶
type TargetTools struct { // Holds targets references that do not have output (for transitive for ex) TargetReferences []*Target Targets []TargetTool Hosts []specs.HostTool }
func (*TargetTools) Dedup ¶
func (t *TargetTools) Dedup()
func (TargetTools) Empty ¶
func (t TargetTools) Empty() bool
func (TargetTools) HasHeph ¶
func (t TargetTools) HasHeph() bool
func (TargetTools) Merge ¶
func (t TargetTools) Merge(tools TargetTools) TargetTools
func (TargetTools) Sort ¶
func (t TargetTools) Sort()
type TargetTransitive ¶
type TargetTransitive struct { Tools TargetTools `json:"-"` Deps TargetNamedDeps `json:"-"` HashDeps TargetDeps `json:"-"` RuntimeDeps TargetNamedDeps `json:"-"` Env map[string]string RuntimeEnv map[string]TargetRuntimeEnv PassEnv []string RuntimePassEnv []string }
func (TargetTransitive) Empty ¶
func (tr TargetTransitive) Empty() bool
func (TargetTransitive) Merge ¶
func (tr TargetTransitive) Merge(otr TargetTransitive) TargetTransitive
type TargetWithOutput ¶
func (*TargetWithOutput) Full ¶
func (t *TargetWithOutput) Full() string
Click to show internal directories.
Click to hide internal directories.