Documentation
¶
Index ¶
Constants ¶
View Source
const ( AmdUrl = config.BinaryName + "-linux-amd64" ArmUrl = config.BinaryName + "-linux-arm64" BinNamePlaceholder = "${BIN_NAME}" )
Variables ¶
View Source
var Script string
Functions ¶
func Inject ¶
func Inject(ctx context.Context, opts InjectOptions) (bool, error)
Inject runs the inject.sh handshake and bridges the caller's stdio to the exec's stdio. It returns true if the handshake completed and the exec was started, false if the handshake failed and the exec was not started.
func QuotePOSIXLiteral ¶
QuotePOSIXLiteral encodes one literal word for a POSIX shell, not a login shell.
Types ¶
type DownloadURLs ¶
func NewDownloadURLs ¶
func NewDownloadURLs(baseUrl string) *DownloadURLs
type InjectOptions ¶
type Params ¶
type Params struct {
Command string
AgentRemotePath string
DownloadURLs *DownloadURLs
ExistsCheck string
PreferAgentDownload bool
ShouldChmodPath bool
}
func (*Params) InstallDir ¶
func (*Params) InstallFilename ¶
func (*Params) PreferDownload ¶
Click to show internal directories.
Click to hide internal directories.