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 monitoring with Dynatrace. The technology names for the agents to download can be set as parameters.
Types ¶
type Command ¶
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.
Click to show internal directories.
Click to hide internal directories.