supply

package
v0.0.0-...-26cfb94 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2020 License: EPL-1.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DownloadAgent

func DownloadAgent(s *Supplier) error

func GetApplicationProperties

func GetApplicationProperties(s *Supplier) map[string]interface{}

func GetIntroscopeCredentials

func GetIntroscopeCredentials(s *Supplier) map[string]interface{}

func IsLinux

func IsLinux() bool

func IsWindows

func IsWindows() bool

func UpdateAgentProperty

func UpdateAgentProperty(s *Supplier, key string, value string) error

func WriteProfileScript

func WriteProfileScript(s *Supplier, appName string) error

Types

type Command

type Command interface {
	//TODO: See more options at https://github.com/cloudfoundry/libbuildpack/blob/master/command.go
	Execute(string, io.Writer, io.Writer, string, ...string) error
	Output(dir string, program string, args ...string) (string, error)
}

type Installer

type Installer interface {
	//TODO: See more options at https://github.com/cloudfoundry/libbuildpack/blob/master/installer.go
	FetchDependency(libbuildpack.Dependency, string) error
	InstallOnlyVersion(string, string) error
}

type Manifest

type Manifest interface {
	//TODO: See more options at https://github.com/cloudfoundry/libbuildpack/blob/master/manifest.go
	AllDependencyVersions(string) []string
	DefaultVersion(string) (libbuildpack.Dependency, error)
}

type Stager

type Stager interface {
	//TODO: See more options at https://github.com/cloudfoundry/libbuildpack/blob/master/stager.go
	BuildDir() string
	DepDir() string
	DepsIdx() string
	DepsDir() string
	ProfileDir() string
}

type Supplier

type Supplier struct {
	Manifest  Manifest
	Installer Installer
	Stager    Stager
	Command   Command
	Log       *libbuildpack.Logger
}

func (*Supplier) Run

func (s *Supplier) Run() error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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