modules

package
v0.0.80 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2020 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Dependency      = "node_modules"
	NodeDependency  = "node"
	Cache           = "cache"
	ModulesDir      = "node_modules"
	ModulesMetaName = "Node Modules"
	CacheDir        = "npm-cache"
	CacheMetaName   = "NPM Cache"
	PackageLock     = "package-lock.json"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Checksum added in v0.0.38

type Checksum struct {
	// contains filtered or unexported fields
}

func NewChecksum added in v0.0.38

func NewChecksum(r io.Reader) Checksum

func NewTimeChecksum added in v0.0.38

func NewTimeChecksum(t time.Time) Checksum

func (Checksum) String added in v0.0.38

func (c Checksum) String() (string, error)

type Contributor

type Contributor struct {
	// contains filtered or unexported fields
}

func NewContributor

func NewContributor(context build.Build, pkgManager PackageManager) (Contributor, bool, error)

func (Contributor) Contribute

func (c Contributor) Contribute(now time.Time) error

type Metadata

type Metadata struct {
	Name string
	Hash string
}

func NewMetadata added in v0.0.38

func NewMetadata(name, hash string) Metadata

func (Metadata) Identity

func (m Metadata) Identity() (name string, version string)

type PackageManager

type PackageManager interface {
	CI(cacheLayer, moduleLayer, location string) error
	Install(cacheLayer, moduleLayer, location string) error
	Rebuild(cacheLayer, location string) error
	WarnUnmetDependencies(appRoot string) error
}

Jump to

Keyboard shortcuts

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