lib

package
v0.0.0-...-0793fe5 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2018 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dependencies

type Dependencies []*Dependency

func (Dependencies) Len

func (d Dependencies) Len() int

func (Dependencies) Less

func (d Dependencies) Less(i, j int) bool

func (Dependencies) Swap

func (d Dependencies) Swap(i, j int)

type Dependency

type Dependency struct {
	*sync.Mutex

	Name         string
	Version      *semver.Version
	Range        *semver.Range
	Dependencies Dependencies
	Root         string
	// contains filtered or unexported fields
}

func (*Dependency) Debug

func (d *Dependency) Debug() string

func (*Dependency) Filter

func (d *Dependency) Filter(fn func(d *Dependency) bool)

func (*Dependency) Get

func (d *Dependency) Get(name string) *Dependency

func (*Dependency) Lock

func (d *Dependency) Lock()

func (*Dependency) Remove

func (d *Dependency) Remove(name string)

func (*Dependency) Sort

func (d *Dependency) Sort()

func (*Dependency) String

func (d *Dependency) String() string

func (*Dependency) Unlock

func (d *Dependency) Unlock()

func (*Dependency) Wait

func (d *Dependency) Wait()

type FileList

type FileList []os.FileInfo

func (FileList) Len

func (fl FileList) Len() int

func (FileList) Less

func (fl FileList) Less(i, j int) bool

func (FileList) Swap

func (fl FileList) Swap(i, j int)

type Manifest

type Manifest struct {
	Name     string            `json:"name"`
	DistTags map[string]string `json:"dist-tags"`
	Versions map[string]struct {
		Dependencies map[string]string `json:"dependencies"`
		Dist         *ManifestDist     `json:"dist"`
	} `json:"versions"`
}

func FetchManifest

func FetchManifest(name string) *Manifest

func (*Manifest) MaxSatisfying

func (manifest *Manifest) MaxSatisfying(r *semver.Range) *semver.Version

func (*Manifest) ParsedVersions

func (manifest *Manifest) ParsedVersions() semver.Versions

type ManifestDist

type ManifestDist struct {
	Integrity string `json:"integrity"`
	Tarball   string `json:"tarball"`
}

type PJSON

type PJSON struct {
	Name            string             `json:"name"`
	Version         string             `json:"version"`
	Dependencies    map[string]string  `json:"dependencies"`
	DevDependencies *map[string]string `json:"devDependencies"`
	Bin             interface{}        `json:"bin"`
}

func MustParsePackage

func MustParsePackage(root string) *PJSON

func ParsePackage

func ParsePackage(root string) (*PJSON, error)

type PackageLock

type PackageLock struct {
	Version      string                  `json:"version"`
	Resolved     interface{}             `json:"resolved"`
	Integrity    string                  `json:"integrity"`
	Requires     interface{}             `json:"requires"`
	Dependencies map[string]*PackageLock `json:"dependencies"`
}

func ParsePackageLock

func ParsePackageLock(root string) (*PackageLock, error)

type Project

type Project struct {
	*Dependency

	Root        string
	YarnLock    interface{}
	PackageLock interface{}
}

func LoadProject

func LoadProject(root string) *Project

func (*Project) Init

func (p *Project) Init()

Jump to

Keyboard shortcuts

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