Documentation
¶
Index ¶
Constants ¶
View Source
const AgentDir = "sealights"
View Source
const AgentName = "SL.DotNet.dll"
View Source
const DefaultLabId = "agents"
View Source
const DefaultVersion = "latest"
View Source
const DotnetDir = "dotnet-sdk"
View Source
const LinuxProfilerId = "3B1DAA64-89D4-4999-ABF4-6A979B650B7D"
View Source
const PackageArchiveName = "sealights-agent.tar.gz"
View Source
const ReleaseFileName = "dotnet-core-buildpack-release-step.yml"
View Source
const SealightsCli = "sealights"
View Source
const StartCommandType = "web"
View Source
const WindowsProfilerId = "01CA2C22-DC03-4FF5-8350-59E32A3536BA"
Variables ¶
This section is empty.
Functions ¶
func NewHook ¶
func NewHook() libbuildpack.Hook
NewHook returns a libbuildpack.Hook instance for integrating with Sealights
Types ¶
type AgentInstaller ¶ added in v0.0.6
type AgentInstaller struct { Log *libbuildpack.Logger Options *SealightsOptions MaxDownloadRetries int }
func NewAgentInstaller ¶ added in v0.0.6
func NewAgentInstaller(log *libbuildpack.Logger, options *SealightsOptions) *AgentInstaller
func (*AgentInstaller) InstallAgent ¶ added in v0.0.6
func (agi *AgentInstaller) InstallAgent(stager *libbuildpack.Stager) (string, error)
func (*AgentInstaller) InstallDependency ¶ added in v0.0.6
func (agi *AgentInstaller) InstallDependency(stager *libbuildpack.Stager) (string, error)
Install dotnet sdk and runtime required for the agent
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 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 Launcher ¶ added in v0.0.4
type Launcher struct { Log *libbuildpack.Logger Options *SealightsOptions AgentDirAbsolute string AgentDirForRuntime string DotNetDir string }
func NewLauncher ¶ added in v0.0.4
func NewLauncher(log *libbuildpack.Logger, options *SealightsOptions, agentInstallationDir string, dotnetInstallationDir string, buildDir string) *Launcher
func (*Launcher) ModifyStartParameters ¶ added in v0.0.4
func (la *Launcher) ModifyStartParameters(stager *libbuildpack.Stager) error
type ReleaseData ¶ added in v0.0.5
file format: default_process_types:
web: cd ${DEPS_DIR}/0/dotnet_publish && exec ./app --server.urls http://0.0.0.0:${PORT}
type ReleaseInfo ¶ added in v0.0.5
type ReleaseInfo struct { Data ReleaseData FilePath string }
func NewReleaseInfo ¶ added in v0.0.5
func NewReleaseInfo(buildDirectory string) *ReleaseInfo
func (*ReleaseInfo) GetStartCommand ¶ added in v0.0.5
func (rel *ReleaseInfo) GetStartCommand() string
func (*ReleaseInfo) SetStartCommand ¶ added in v0.0.5
func (rel *ReleaseInfo) SetStartCommand(newCommand string) error
type SealightsHook ¶
type SealightsHook struct { libbuildpack.DefaultHook Log *libbuildpack.Logger Command Command }
SealightsHook implements libbuildpack.Hook. It downloads and install the Sealights OneAgent.
func (*SealightsHook) AfterCompile ¶
func (h *SealightsHook) AfterCompile(stager *libbuildpack.Stager) error
AfterCompile downloads and installs the Sealights agent, and modify application start command
type SealightsOptions ¶
type VcapServicesModel ¶
type VcapServicesModel struct {
Sealights SealightsOptions
}
Click to show internal directories.
Click to hide internal directories.