glide

package
v4.1.0+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 1, 2019 License: Apache-2.0 Imports: 3 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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"`
}

func (*LockFile) Decode

func (l *LockFile) Decode(b []byte) error

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"`
}

func (*YamlFile) Decode

func (y *YamlFile) Decode(b []byte) error

func (*YamlFile) Encode

func (y *YamlFile) Encode() ([]byte, error)

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.

func (*YamlFileImportList) Encode

func (l *YamlFileImportList) Encode() ([]byte, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL