Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CollectRootPackageNames ¶
CollectRootPackageNames collects the root package names of imports.
func GetRepoStates ¶
GetRepoStates returns the repo states for each import found in the directory.
Types ¶
type DepInfo ¶
type DepInfo struct { Import string Dependency *repo.Dependency State DepState }
DepInfo holds the dependency info for a one import.
type DepInfos ¶
type DepInfos []*DepInfo
DepInfos holds multiple DepInfo records and provides convenient sorting.
func GetDepInfo ¶
GetDepInfo returns the dependency information.
type DepState ¶
type DepState int
DepState holds the state of the dependency
const ( MissingConfig DepState = iota MissingOnDisk MissingOnDiskAndConfig NotNeeded IncorrectVersion Dirty Good )
The possible DepStates
func GetDepState ¶
func GetDepState(dep *repo.Dependency, state *repo.State) DepState
GetDepState returns the dependency status for a dependency.
func (DepState) MarkerAndDescription ¶
MarkerAndDescription returns the single-character marker and description for a DepState.
Click to show internal directories.
Click to hide internal directories.