Documentation
¶
Overview ¶
TODO(uv): this is copied from the `dep-graph-go` library. We should open-source that code and import it here.
TODO(uv): this is copied from the `dep-graph-go` library. We should open-source that code and import it here.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Builder ¶
type Builder struct {
// contains filtered or unexported fields
}
func NewBuilder ¶
func NewBuilder(pkgManager *PkgManager, rootPkg *PkgInfo) (*Builder, error)
func (*Builder) ConnectNodes ¶
func (*Builder) GetPkgManager ¶
func (b *Builder) GetPkgManager() *PkgManager
func (*Builder) GetRootNode ¶
type DepGraph ¶
type DepGraph struct {
SchemaVersion string `json:"schemaVersion"`
PkgManager PkgManager `json:"pkgManager"`
Pkgs []Pkg `json:"pkgs"`
Graph Graph `json:"graph"`
// contains filtered or unexported fields
}
func UnmarshalJSON ¶
func (*DepGraph) GetRootPkg ¶
func (*DepGraph) MarshalJSON ¶
type Dependency ¶
type Dependency struct {
NodeID string `json:"nodeId"`
}
type Node ¶
type Node struct {
NodeID string `json:"nodeId"`
PkgID string `json:"pkgId"`
Info *NodeInfo `json:"info,omitempty"`
Deps []Dependency `json:"deps"`
}
type NodeInfo ¶
type NodeInfo struct {
VersionProvenance *VersionProvenance `json:"versionProvenance,omitempty"`
Labels map[string]string `json:"labels,omitempty"`
}
type PkgManager ¶
type PkgManager struct {
Name string `json:"name"`
Version string `json:"version,omitempty"`
Repositories []Repository `json:"repositories,omitempty"`
}
type Repository ¶
type Repository struct {
Alias string `json:"alias"`
}
type VersionProvenance ¶
Click to show internal directories.
Click to hide internal directories.