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

finalize

package
v1.7.53 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2022 License: Apache-2.0, MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(f *Finalizer) error

Types

type Command

type Command interface {
	Execute(string, io.Writer, io.Writer, string, ...string) error
	Output(dir string, program string, args ...string) (string, error)
}

type Finalizer

type Finalizer struct {
	Stager         Stager
	Log            *libbuildpack.Logger
	Logfile        *os.File
	Manifest       Manifest
	Command        Command
	ManagePyFinder ManagePyFinder
	Requirements   Reqs
}

func (*Finalizer) HandleCollectstatic

func (f *Finalizer) HandleCollectstatic() error

func (*Finalizer) ReplaceDepsDirWithLiteral

func (f *Finalizer) ReplaceDepsDirWithLiteral() error

func (*Finalizer) ReplaceLiteralWithDepsDirAtRuntime

func (f *Finalizer) ReplaceLiteralWithDepsDirAtRuntime() error

type ManagePyFinder

type ManagePyFinder interface {
	FindManagePy(dir string) (string, error)
}

type Manifest

type Manifest interface {
	RootDir() string
}

type Reqs added in v1.7.50

type Reqs interface {
	FindAnyPackage(buildDir string, searchedPackages ...string) (bool, error)
	FindStalePackages(oldRequirementsPath, newRequirementsPath string, excludedPackages ...string) ([]string, error)
}

type Stager

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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