hooks

package
v1.8.26 Latest Latest
Warning

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

Go to latest
Published: May 31, 2024 License: Apache-2.0, MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppHook

type AppHook struct {
	libbuildpack.DefaultHook
}

func (AppHook) AfterCompile

func (h AppHook) AfterCompile(compiler *libbuildpack.Stager) error

func (AppHook) BeforeCompile

func (h AppHook) BeforeCompile(compiler *libbuildpack.Stager) error

type AppdynamicsHook added in v1.6.16

type AppdynamicsHook struct {
	libbuildpack.DefaultHook
	Log     *libbuildpack.Logger
	Command Command
}

func (AppdynamicsHook) BeforeCompile added in v1.6.16

func (h AppdynamicsHook) BeforeCompile(stager *libbuildpack.Stager) error

func (AppdynamicsHook) CreateAppDynamicsEnv added in v1.6.16

func (h AppdynamicsHook) CreateAppDynamicsEnv(stager *libbuildpack.Stager, environmentVars map[string]string) error

func (AppdynamicsHook) GenerateAppdynamicsScript added in v1.6.16

func (h AppdynamicsHook) GenerateAppdynamicsScript(envVars map[string]string) string

func (AppdynamicsHook) GenerateStartUpCommand added in v1.6.16

func (h AppdynamicsHook) GenerateStartUpCommand(startCommand string) (string, error)

func (AppdynamicsHook) RewriteProcFile added in v1.6.16

func (h AppdynamicsHook) RewriteProcFile(procFilePath string) error

func (AppdynamicsHook) RewriteProcFileWithAppdynamics added in v1.6.16

func (h AppdynamicsHook) RewriteProcFileWithAppdynamics(stager *libbuildpack.Stager) error

func (AppdynamicsHook) RewriteRequirementsFile added in v1.6.16

func (h AppdynamicsHook) RewriteRequirementsFile(stager *libbuildpack.Stager) error

type Command added in v1.6.16

type Command interface {
	Execute(string, io.Writer, io.Writer, string, ...string) error
}

type Credential added in v1.6.16

type Credential struct {
	ControllerHost   string `json:"host-name"`
	ControllerPort   string `json:"port"`
	SslEnabled       bool   `json:"ssl-enabled"`
	AccountAccessKey string `json:"account-access-key"`
	AccountName      string `json:"account-name"`
}

type Plan added in v1.6.16

type Plan struct {
	Credentials Credential `json:"credentials"`
	Name        string     `json:"name,omitempty"`
}

type SealightsConfig added in v1.8.13

type SealightsConfig struct {
	Token     string
	TokenFile string
	BsId      string
	BsIdFile  string
	Proxy     string
	LabId     string
	Version   string
}

func NewSealightsConfig added in v1.8.13

func NewSealightsConfig() *SealightsConfig

func (*SealightsConfig) GetStartFlags added in v1.8.13

func (sc *SealightsConfig) GetStartFlags() string

type SealightsCredentials added in v1.8.13

type SealightsCredentials struct {
	Token     string `json:"token",omitempty`
	TokenFile string `json:"tokenFile",omitempty`
	BsId      string `json:"bsid",omitempty`
	BsIdFile  string `json:"bsidFile",omitempty`
	Proxy     string `json:"proxy",omitempty`
	LabId     string `json:"labid",omitempty`
	Version   string `json:"version",omitempty`
}

type SealightsHook added in v1.8.13

type SealightsHook struct {
	libbuildpack.DefaultHook
	Log *libbuildpack.Logger
}

func (SealightsHook) BeforeCompile added in v1.8.13

func (sh SealightsHook) BeforeCompile(stager *libbuildpack.Stager) error

func (SealightsHook) GenerateStartUpCommand added in v1.8.13

func (sh SealightsHook) GenerateStartUpCommand(startCommand string, cfgFlags string) (string, error)

func (SealightsHook) RewriteProcFile added in v1.8.13

func (sh SealightsHook) RewriteProcFile(procFilePath string, cfgFlags string) error

func (SealightsHook) RewriteProcFileWithSealights added in v1.8.13

func (sh SealightsHook) RewriteProcFileWithSealights(stager *libbuildpack.Stager, cfgFlags string) error

func (SealightsHook) RewriteRequirementsFile added in v1.8.13

func (sh SealightsHook) RewriteRequirementsFile(stager *libbuildpack.Stager, version string) error

type SealightsPlan added in v1.8.13

type SealightsPlan struct {
	Credentials SealightsCredentials `json:"credentials"`
	Name        string               `json:"name,omitempty"`
}

type VcapApplication added in v1.6.16

type VcapApplication struct {
	ApplicationName string `json:"application_name"`
	Name            string `json:"name"`
	ProcessType     string `json:"process_type"`
	Limits          struct {
		Mem int `json:"mem"`
	} `json:"limits"`
}

Jump to

Keyboard shortcuts

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