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

supply

package
v1.7.16 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2018 License: Apache-2.0, MIT Imports: 13 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 Cache

type Cache interface {
	Metadata() *cache.Metadata
	Restore() error
	Save() error
}

type Command

type Command interface {
	Execute(string, io.Writer, io.Writer, string, ...string) error
	Output(string, string, ...string) (string, error)
	Run(*exec.Cmd) error
}

type IndentedWriter

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

func (*IndentedWriter) Write

func (w *IndentedWriter) Write(p []byte) (n int, err error)

type Manifest

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

type Stager

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

type Supplier

type Supplier struct {
	Stager   Stager
	Manifest Manifest
	Log      *libbuildpack.Logger
	Versions Versions
	Cache    Cache
	Command  Command
	// contains filtered or unexported fields
}

func (*Supplier) AddPostRubyInstallDefaultEnv

func (s *Supplier) AddPostRubyInstallDefaultEnv(engine string) error

func (*Supplier) CalcChecksum

func (s *Supplier) CalcChecksum() (string, error)

func (*Supplier) CreateDefaultEnv

func (s *Supplier) CreateDefaultEnv() error

func (*Supplier) DetermineRuby

func (s *Supplier) DetermineRuby() (string, string, error)

func (*Supplier) EnableLDLibraryPathEnv added in v1.7.7

func (s *Supplier) EnableLDLibraryPathEnv() error

func (*Supplier) InstallBundler

func (s *Supplier) InstallBundler() error

func (*Supplier) InstallGems

func (s *Supplier) InstallGems() error

func (*Supplier) InstallJVM

func (s *Supplier) InstallJVM() error

func (*Supplier) InstallNode

func (s *Supplier) InstallNode() error

func (*Supplier) InstallRuby

func (s *Supplier) InstallRuby(name, version string) error

func (*Supplier) InstallYarn

func (s *Supplier) InstallYarn() error

func (*Supplier) NeedsNode

func (s *Supplier) NeedsNode() bool

func (*Supplier) RewriteShebangs added in v1.7.1

func (s *Supplier) RewriteShebangs() error

func (*Supplier) Setup added in v1.7.4

func (s *Supplier) Setup() error

func (*Supplier) SymlinkBundlerIntoRubygems added in v1.7.11

func (s *Supplier) SymlinkBundlerIntoRubygems() error

func (*Supplier) UpdateRubygems

func (s *Supplier) UpdateRubygems() error

func (*Supplier) WriteProfileD

func (s *Supplier) WriteProfileD(engine string) error

type Versions

type Versions interface {
	Engine() (string, error)
	Version() (string, error)
	JrubyVersion() (string, error)
	RubyEngineVersion() (string, error)
	HasGemVersion(gem string, constraints ...string) (bool, error)
	VersionConstraint(version string, constraints ...string) (bool, error)
	HasWindowsGemfileLock() (bool, error)
	Gemfile() string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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