Documentation ¶
Index ¶
- Variables
- type DepGraph
- type Level
- type Module
- func (m *Module) Children() *graph.NodeRefs
- func (m *Module) EdgeAttributes(target graph.Node, annotate bool) []string
- func (m *Module) Hash() string
- func (m *Module) Name() string
- func (m *Module) NodeAttributes(annotate bool) []string
- func (m *Module) Parent() graph.Node
- func (m *Module) Predecessors() *graph.NodeRefs
- func (m *Module) SelectedVersion() string
- func (m *Module) String() string
- func (m *Module) Successors() *graph.NodeRefs
- func (m *Module) Timestamp() *time.Time
- type Package
- func (p *Package) Children() *graph.NodeRefs
- func (p *Package) EdgeAttributes(target graph.Node, annotate bool) []string
- func (p *Package) Hash() string
- func (p *Package) Name() string
- func (p *Package) NodeAttributes(annotate bool) []string
- func (p *Package) Parent() graph.Node
- func (p *Package) Predecessors() *graph.NodeRefs
- func (p *Package) String() string
- func (p *Package) Successors() *graph.NodeRefs
- type VersionConstraint
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidQuery = errors.New("invalid query")
Functions ¶
This section is empty.
Types ¶
type DepGraph ¶
type DepGraph struct { Path string Main *Module Graph *graph.HierarchicalDigraph // contains filtered or unexported fields }
DepGraph represents a Go module's dependency graph.
type Module ¶
type Module struct { Info *modules.ModuleInfo Indirects map[string]bool VersionConstraints map[string]VersionConstraint // contains filtered or unexported fields }
Module represents a module in a Go module's dependency graph.
func NewModule ¶
func NewModule(info *modules.ModuleInfo) *Module
func (*Module) EdgeAttributes ¶
func (*Module) NodeAttributes ¶
func (*Module) Predecessors ¶
func (*Module) SelectedVersion ¶
SelectedVersion corresponds to the version of the dependency represented by this Dependency which was selected for use.
func (*Module) Successors ¶
type Package ¶
type Package struct { Info *modules.PackageInfo // contains filtered or unexported fields }
Package represents a single Go package in a dependency graph.
func NewPackage ¶
func NewPackage(info *modules.PackageInfo, parent *Module) *Package
func (*Package) EdgeAttributes ¶
func (*Package) Name ¶
Name returns the import path of the package and not the value declared inside the package with the 'package' statement.
func (*Package) NodeAttributes ¶
func (*Package) Predecessors ¶
func (*Package) Successors ¶
type VersionConstraint ¶
Click to show internal directories.
Click to hide internal directories.