sealights

package module
v0.0.4 Latest Latest
Warning

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

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

README

libbuildpack-sealights

Cloud Foundry Buildpack integrations with Sealights

Documentation

Index

Constants

View Source
const AgentMode = "testListener"
View Source
const AgentName = "SL.DotNet.dll"
View Source
const DefaultLabId = "agents"
View Source
const DefaultVersion = "latest"
View Source
const ManifestFile = "manifest.yml"
View Source
const PackageArchiveName = "sealights-agent.tar.gz"
View Source
const Procfile = "Procfile"

Variables

This section is empty.

Functions

func NewHook

func NewHook() 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 Configuration

type Configuration struct {
	Value *SealightsOptions
	Log   *libbuildpack.Logger
}

func NewConfiguration

func NewConfiguration(log *libbuildpack.Logger) *Configuration

func (Configuration) UseSealights

func (conf Configuration) UseSealights() bool

type Installer added in v0.0.4

type Installer struct {
	Log                *libbuildpack.Logger
	Options            *SealightsOptions
	MaxDownloadRetries int
}

func NewInstaller added in v0.0.4

func NewInstaller(log *libbuildpack.Logger, options *SealightsOptions) *Installer

func (*Installer) InstallAgent added in v0.0.4

func (inst *Installer) InstallAgent(installationPath string) error

type Launcher added in v0.0.4

type Launcher struct {
	Log      *libbuildpack.Logger
	Options  *SealightsOptions
	AgentDir string
}

func NewLauncher added in v0.0.4

func NewLauncher(log *libbuildpack.Logger, options *SealightsOptions, agentInstallationDir string) *Launcher

func (*Launcher) ModifyStartParameters added in v0.0.4

func (la *Launcher) ModifyStartParameters(stager *libbuildpack.Stager) error

type Manifest added in v0.0.4

type Manifest struct {
	Applications []struct {
		Name    string `yaml:"name"`
		Command string `yaml:"command"`
	} `yaml:"applications"`
}

type SealightsHook

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

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

func (*SealightsHook) AfterCompile

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

AfterCompile downloads and installs the Dynatrace agent.

type SealightsOptions

type SealightsOptions struct {
	Version          string
	Token            string
	TokenFile        string
	BsId             string
	BsIdFile         string
	Target           string
	WorkingDir       string
	TargetArgs       string
	ProfilerLogDir   string
	ProfilerLogLevel string
	CustomAgentUrl   string
	LabId            string
}

type VcapServicesModel

type VcapServicesModel struct {
	Sealights SealightsOptions
}

Jump to

Keyboard shortcuts

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