Help us shape the future of Go! Take the 2026 Go Developer Survey

supply

package
v1.6.4 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2017 License: Apache-2.0, MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(s *Supplier) error

Types

type Command

type Command interface {
	Execute(string, io.Writer, io.Writer, string, ...string) error
}

type Manifest

type Manifest interface {
	AllDependencyVersions(string) []string
	DefaultVersion(string) (libbuildpack.Dependency, error)
	InstallDependency(libbuildpack.Dependency, string) error
	InstallOnlyVersion(string, string) error
}

type Stager

type Stager interface {
	BuildDir() string
	DepDir() string
	DepsIdx() string
	LinkDirectoryInDepDir(string, string) error
	WriteEnvFile(string, string) error
	WriteProfileD(string, string) error
}

type Supplier

type Supplier struct {
	Stager   Stager
	Manifest Manifest
	Log      *libbuildpack.Logger
	Command  Command
	Node     string
	Yarn     string
	NPM      string
}

func (*Supplier) CreateDefaultEnv

func (s *Supplier) CreateDefaultEnv() error

func (*Supplier) InstallNPM

func (s *Supplier) InstallNPM() error

func (*Supplier) InstallNode

func (s *Supplier) InstallNode(tempDir string) error

func (*Supplier) InstallYarn

func (s *Supplier) InstallYarn() error

func (*Supplier) LoadPackageJSON

func (s *Supplier) LoadPackageJSON() error

func (*Supplier) WarnNodeEngine

func (s *Supplier) WarnNodeEngine()

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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