Documentation
¶
Index ¶
Constants ¶
const BinaryStem = "beacon-hooks"
BinaryStem is the hook binary's name without any platform extension.
Detection matches on this rather than on GetBinaryName. A command containing "beacon-hooks.exe" also contains "beacon-hooks", so the stem recognizes both spellings, while the platform-specific name recognizes only one -- which meant a Windows Beacon could not see a hook command written without the extension, and would neither repair nor remove it. Settings files are synced between machines and written by older builds, so both spellings genuinely occur.
Writing still uses GetBinaryName: what we install must be the name this platform can execute.
Variables ¶
var HooksBinary []byte
HooksBinary is the compressed hooks binary for the current platform. This file is replaced at build time with the platform-specific binary.
Functions ¶
func GetBinaryName ¶
func GetBinaryName() string
GetBinaryName returns the appropriate binary name for the current platform
func HasEmbeddedBinary ¶
func HasEmbeddedBinary() bool
HasEmbeddedBinary returns true if a real binary is embedded (not just placeholder)
func ValidateArchitecture ¶
func ValidateArchitecture() error
ValidateArchitecture checks that the embedded hooks binary matches the current runtime OS and architecture. Returns an error with a descriptive message if there is a mismatch (e.g., an x86_64 binary on an arm64 host).
Types ¶
This section is empty.