Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AssetExists ¶
AssetExists reports whether a concrete go-bindata key is embedded.
type Mode ¶
type Mode uint8
Mode is the resolved bytecode variant used by a probe generation.
const ( ModeCore Mode = Mode(config.BTFModeCore) ModeNonCore Mode = Mode(config.BTFModeNonCore) )
type Selector ¶
type Selector struct {
// contains filtered or unexported fields
}
Selector resolves a probe generation's bytecode mode exactly once and then maps every probe-specific base name to an embedded asset of that mode.
func NewSelector ¶
NewSelector creates the production selector backed by the process-wide BTF detector cache and the current go-bindata catalog.
func NewSelectorWithDependencies ¶
func NewSelectorWithDependencies( requestedMode, assetMode uint8, detector Detector, assetExists AssetExists, ) *Selector
NewSelectorWithDependencies creates a selector with injectable kernel and asset probes for deterministic unit tests.
func (*Selector) RequestedMode ¶
RequestedMode returns the user-facing BTF mode supplied to the selector.
Click to show internal directories.
Click to hide internal directories.