sealights

package module
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

README

libbuildpack-sealights

Cloud Foundry Buildpack integrations with Sealights

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHook

func NewHook(technologies ...string) libbuildpack.Hook

NewHook returns a libbuildpack.Hook instance for integrating with Sealights

Types

type Command

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

Command is an interface around libbuildpack.Command. Represents an executor for external command calls. We have it as an interface so that we can mock it and use in the unit tests.

type Hook

type Hook struct {
	libbuildpack.DefaultHook
	Log     *libbuildpack.Logger
	Command Command

	// IncludeTechnologies is used to indicate the technologies we want to download agents for.
	IncludeTechnologies []string

	// MaxDownloadRetries is the maximum number of retries the hook will try to download the agent if they fail.
	MaxDownloadRetries int
}

Hook implements libbuildpack.Hook. It downloads and install the Dynatrace OneAgent.

func (*Hook) AfterCompile

func (h *Hook) AfterCompile(stager *libbuildpack.Stager) error

AfterCompile downloads and installs the Dynatrace agent.

Jump to

Keyboard shortcuts

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