Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LockFile ¶
type LockFile struct {
Hash string `yaml:"hash"`
Updated time.Time `yaml:"updated"`
Imports []*LockFileImport `yaml:"imports"`
}
type LockFileImport ¶
type LockFileImport struct {
Name string `yaml:"name"`
Repo string `yaml:"repo,omitempty"`
Version string `yaml:"version"`
}
type YamlFile ¶
type YamlFile struct {
Package string `yaml:"package"`
ExcludeDirs []string `yaml:"excludeDirs"`
Imports YamlFileImportList `yaml:"import"`
}
type YamlFileImport ¶
type YamlFileImport struct {
Package string `yaml:"package"`
Repo string `yaml:"repo,omitempty"`
Version string `yaml:"version"`
}
type YamlFileImportList ¶
type YamlFileImportList []*YamlFileImport
func MissingImports ¶
func MissingImports(lockfile *LockFile, yamlfile *YamlFile) (YamlFileImportList, []string, error)
MissingImports receives a LockFile and a YamlFile and returns a slice of imports not contained in the YamlFile. Dependencies with a non-empty "repo" field are skipped, as they are assumed to contain forked dependencies.
Click to show internal directories.
Click to hide internal directories.