Documentation
¶
Index ¶
- type Dependencies
- type Dependency
- func (d *Dependency) Debug() string
- func (d *Dependency) Filter(fn func(d *Dependency) bool)
- func (d *Dependency) Get(name string) *Dependency
- func (d *Dependency) Lock()
- func (d *Dependency) Remove(name string)
- func (d *Dependency) Sort()
- func (d *Dependency) String() string
- func (d *Dependency) Unlock()
- func (d *Dependency) Wait()
- type FileList
- type Manifest
- type ManifestDist
- type PJSON
- type PackageLock
- type Project
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 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 (*Manifest) MaxSatisfying ¶
func (*Manifest) ParsedVersions ¶
type ManifestDist ¶
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 ParsePackage ¶
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)
Click to show internal directories.
Click to hide internal directories.