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 YamlFile ¶
type YamlFile struct { Package string `yaml:"package"` ExcludeDirs []string `yaml:"excludeDirs"` Imports YamlFileImportList `yaml:"import"` }
type YamlFileImport ¶
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.
func (*YamlFileImportList) Encode ¶
func (l *YamlFileImportList) Encode() ([]byte, error)
Click to show internal directories.
Click to hide internal directories.