Documentation
¶
Index ¶
- Constants
- func NewPlugin(sections []string) (plugin.PluginInterface, error)
- type KernelExtractor
- func (e KernelExtractor) Create(plugin.PluginOptions) error
- func (e KernelExtractor) Description() string
- func (c KernelExtractor) Extract(allowFail bool) (plugin.PluginData, error)
- func (e KernelExtractor) IsCreator() bool
- func (e KernelExtractor) IsExtractor() bool
- func (c KernelExtractor) Name() string
- func (e KernelExtractor) Sections() []string
- func (c KernelExtractor) Validate() bool
- type Module
Constants ¶
View Source
const ( ExtractorName = "kernel" ExtractorDescription = "generic kernel extractor" KernelBootSection = "boot" KernelConfigSection = "config" KernelModulesSection = "modules" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type KernelExtractor ¶
type KernelExtractor struct {
// contains filtered or unexported fields
}
func (KernelExtractor) Create ¶
func (e KernelExtractor) Create(plugin.PluginOptions) error
func (KernelExtractor) Description ¶
func (e KernelExtractor) Description() string
func (KernelExtractor) Extract ¶
func (c KernelExtractor) Extract(allowFail bool) (plugin.PluginData, error)
Extract returns kernel metadata, for a set of named sections TODO eventually the user could select which sections they want
func (KernelExtractor) IsCreator ¶
func (e KernelExtractor) IsCreator() bool
func (KernelExtractor) IsExtractor ¶
func (e KernelExtractor) IsExtractor() bool
func (KernelExtractor) Name ¶
func (c KernelExtractor) Name() string
func (KernelExtractor) Sections ¶
func (e KernelExtractor) Sections() []string
func (KernelExtractor) Validate ¶
func (c KernelExtractor) Validate() bool
Validate ensures that the sections provided are in the list we know This is implemented on the level of the plugin, assuming each plugin might have custom logic to do this.
type Module ¶
A module holds a version and parameters, and helper functions to derive them.
func (*Module) SetParameters ¶
setParameters parses the module root / parameters directory
Click to show internal directories.
Click to hide internal directories.