glide

package
v0.0.0-...-00984ce Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2018 License: Apache-2.0 Imports: 3 Imported by: 0

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