Help us shape the future of Go! Take the 2026 Go Developer Survey

deps

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2026 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BuildOrder

type BuildOrder struct {
	// contains filtered or unexported fields
}

BuildOrder wraps a resolved dependency graph, providing build-order iteration and dependency queries without exposing internal types.

func ResolveOrder

func ResolveOrder(distPath string, project *model.ContainerHiveProject) (*BuildOrder, error)

ResolveOrder scans a rendered dist directory for __hive__/ references, merges with explicit depends_on declarations, and returns a topologically sorted build order.

func (*BuildOrder) Dependents

func (b *BuildOrder) Dependents(name string) []string

Dependents returns the list of images that depend on the given image.

func (*BuildOrder) HasDependencies

func (b *BuildOrder) HasDependencies() bool

HasDependencies returns true if any inter-image dependencies exist.

func (*BuildOrder) Order

func (b *BuildOrder) Order() []string

Order returns the topologically sorted build order (dependencies first).

Jump to

Keyboard shortcuts

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