graph

package
v1.7.2 Latest Latest
Warning

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

Go to latest
Published: May 15, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dependency

type Dependency struct {
	From, To labels.Label
}

type Graph

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

func New

func New(buildFileNames []string) *Graph

func (*Graph) EnsureVisibility

func (g *Graph) EnsureVisibility(from, to string)

EnsureVisibility registers a dependency between two targets in different packages. This is used to ensure the targets are visible to each other.

func (*Graph) FormatFiles

func (g *Graph) FormatFiles() error

func (*Graph) FormatFilesWithWriter added in v1.7.0

func (g *Graph) FormatFilesWithWriter(out io.Writer, format string) error

func (*Graph) LoadFile

func (g *Graph) LoadFile(path string) (*build.File, error)

func (*Graph) SetFile

func (g *Graph) SetFile(path string, file *build.File)

SetFile can be used to override a filepath with a given build file. This is useful for testing.

func (*Graph) WithExperimentalDirs added in v1.6.1

func (g *Graph) WithExperimentalDirs(dirs ...string) *Graph

Jump to

Keyboard shortcuts

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