Documentation
¶
Index ¶
Constants ¶
const ( AmdUrl = config.BinaryName + "-linux-amd64" ArmUrl = config.BinaryName + "-linux-arm64" BinNamePlaceholder = "${BIN_NAME}" )
Variables ¶
var Script string
Deprecated: Script embeds inject.sh which is deprecated. Platform-native AgentDelivery implementations (LocalDockerDelivery, RemoteDockerDelivery, KubernetesDelivery) are the replacements.
Functions ¶
func Inject
deprecated
func Inject(opts InjectOptions) (bool, error)
Deprecated: Inject is part of the legacy shell injection path. Platform-native AgentDelivery implementations (LocalDockerDelivery, RemoteDockerDelivery, KubernetesDelivery) are the replacements.
Types ¶
type DownloadURLs ¶
func NewDownloadURLs ¶
func NewDownloadURLs(baseUrl string) *DownloadURLs
type ExecFunc
deprecated
type ExecFunc func(ctx context.Context, command string, stdin io.Reader, stdout io.Writer, stderr io.Writer) error
Deprecated: ExecFunc is part of the legacy shell injection path. Platform-native AgentDelivery implementations (LocalDockerDelivery, RemoteDockerDelivery, KubernetesDelivery) are the replacements.
type InjectOptions
deprecated
type InjectOptions struct {
Ctx context.Context
Exec ExecFunc
LocalFile LocalFile
ScriptParams *Params
Stdin io.Reader
Stdout io.Writer
Stderr io.Writer
Timeout time.Duration
}
Deprecated: InjectOptions is part of the legacy shell injection path. Platform-native AgentDelivery implementations (LocalDockerDelivery, RemoteDockerDelivery, KubernetesDelivery) are the replacements.
type LocalFile
deprecated
type LocalFile func(arm bool) (io.ReadCloser, error)
Deprecated: LocalFile is part of the legacy shell injection path. Platform-native AgentDelivery implementations (LocalDockerDelivery, RemoteDockerDelivery, KubernetesDelivery) are the replacements.
type Params ¶
type Params struct {
Command string
AgentRemotePath string
DownloadURLs *DownloadURLs
ExistsCheck string
PreferAgentDownload bool
ShouldChmodPath bool
}