Documentation
¶
Overview ¶
Package toolkit downloads and deploys diagnostic tools (rg, jq, yq) to remote servers.
Index ¶
- Constants
- Variables
- func BuildProbeCommand() string
- func DeployTools(ctx context.Context, sftpClient ssh.SFTPClient, missing []string, arch string) (string, error)
- func DownloadURL(tool, arch string) (url string, sha256Hex string, err error)
- func EnsureLocal(ctx context.Context, tool, arch string) (string, error)
- func FormatMissingToolsMessage(missing []string, arch string) string
- func NormalizeArch(arch string) (string, error)
- func ParseProbeOutput(stdout string) (missing []string, arch string)
- type DownloadSpec
Constants ¶
View Source
const (
RemoteBinDir = ".shellguard/bin"
)
Variables ¶
View Source
var ToolkitTools = []string{"rg", "jq", "yq"}
Functions ¶
func BuildProbeCommand ¶
func BuildProbeCommand() string
func DeployTools ¶
func NormalizeArch ¶
func ParseProbeOutput ¶
Types ¶
type DownloadSpec ¶
Click to show internal directories.
Click to hide internal directories.