starter

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BpIoPathEnvVarKey string = "BUILDPACKS_IO_LAUNCHER_PATH"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type BuildpackIO added in v0.3.0

type BuildpackIO struct {
}

func (BuildpackIO) AppPort added in v0.3.0

func (BuildpackIO) AppPort() int

func (BuildpackIO) Detect added in v0.3.0

func (s BuildpackIO) Detect() bool

func (BuildpackIO) Name added in v0.3.0

func (s BuildpackIO) Name() string

func (BuildpackIO) ProxyEnv added in v0.3.0

func (s BuildpackIO) ProxyEnv(appPort int) map[string]string

func (BuildpackIO) StartCmd added in v0.3.0

func (s BuildpackIO) StartCmd(env []string, _ string, stdOut, stdErr io.Writer) (*exec.Cmd, error)

type CloudFoundry

type CloudFoundry struct {
}

func (CloudFoundry) AppPort

func (CloudFoundry) AppPort() int

func (CloudFoundry) Detect added in v0.3.0

func (s CloudFoundry) Detect() bool

func (CloudFoundry) Name added in v0.3.0

func (s CloudFoundry) Name() string

func (CloudFoundry) ProxyEnv

func (s CloudFoundry) ProxyEnv(appPort int) map[string]string

func (CloudFoundry) StartCmd

func (s CloudFoundry) StartCmd(env []string, _ string, stdOut, stdErr io.Writer) (*exec.Cmd, error)

type Local

type Local struct {
}

func (Local) AppPort

func (Local) AppPort() int

func (Local) Detect added in v0.3.0

func (s Local) Detect() bool

func (Local) Name added in v0.3.0

func (Local) Name() string

func (Local) ProxyEnv

func (s Local) ProxyEnv(appPort int) map[string]string

func (Local) StartCmd

func (s Local) StartCmd(env []string, profileDir string, stdOut, stdErr io.Writer) (*exec.Cmd, error)

type Starter

type Starter interface {
	StartCmd(env []string, profileDir string, stdOut, stdErr io.Writer) (*exec.Cmd, error)
	Name() string
	ProxyEnv(appPort int) map[string]string
	AppPort() int
	Detect() bool
}

func Retrieve

func Retrieve() []Starter

Jump to

Keyboard shortcuts

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