Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrUnknownArch = errors.New("architecture not recognized")
ErrUnknownArch is the error returned for unknown architecture.
Functions ¶
func ArchFromContainer ¶
ArchFromContainer walks through a container filesystem until it find an elf binary to read target architecture from and returns it. If there is no suitable elf binary or if the architecture is not recognized it will return an empty string.
func ArchFromElf ¶
ArchFromElf returns the architecture string after inspection of the provided elf binary.
func CompatibleWith ¶
CompatibleWith returns if the current machine architecture is compatible or can run via emulation the architecture passed in argument.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.