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

supply

package
v1.2.40 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2026 License: Apache-2.0, MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetIncludedConfs added in v1.1.21

func GetIncludedConfs(str string) []string

Types

type Command added in v0.0.5

type Command interface {
	Execute(string, io.Writer, io.Writer, string, ...string) error
	Output(string, string, ...string) (string, error)
	Run(cmd *exec.Cmd) error
	RunWithOutput(cmd *exec.Cmd) ([]byte, error)
}

type Config added in v0.0.3

type Config struct {
	Nginx NginxConfig `yaml:"nginx"`
	Dist  string      `yaml:"dist"`
}

type Installer added in v1.0.0

type Installer interface {
	InstallDependency(dep libbuildpack.Dependency, outputDir string) error
	InstallOnlyVersion(string, string) error
}

type Manifest

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

type NginxConfig added in v1.0.0

type NginxConfig struct {
	Version string `yaml:"version"`
}

type Stager

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

type Supplier

type Supplier struct {
	Stager       Stager
	Manifest     Manifest
	Installer    Installer
	Log          *libbuildpack.Logger
	Config       Config
	Command      Command
	VersionLines map[string]string
}

func New

func New(stager Stager, manifest Manifest, installer Installer, logger *libbuildpack.Logger, command Command) *Supplier

func (*Supplier) CheckAccessLogging added in v1.0.5

func (s *Supplier) CheckAccessLogging() error

func (*Supplier) InstallNGINX added in v1.0.5

func (s *Supplier) InstallNGINX() error

func (*Supplier) InstallOpenResty added in v1.0.6

func (s *Supplier) InstallOpenResty() error

func (*Supplier) InstallVarify added in v0.0.3

func (s *Supplier) InstallVarify() error

func (*Supplier) Run

func (s *Supplier) Run() error

func (*Supplier) Setup added in v0.0.3

func (s *Supplier) Setup() error

func (*Supplier) ValidateNginxConf added in v1.0.4

func (s *Supplier) ValidateNginxConf() error

func (*Supplier) WriteProfileD added in v0.0.5

func (s *Supplier) WriteProfileD() error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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