Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FirmwarePackageConsumer ¶
type FirmwarePackageConsumer struct {
// contains filtered or unexported fields
}
FirmwarePackageConsumer is a handle to consume firmware package archive files
func NewFirmwarePackageConsumerFromFile ¶
func NewFirmwarePackageConsumerFromFile(fileName string) (*FirmwarePackageConsumer, error)
NewFirmwarePackageConsumerFromFile creates an object to work with the firmware package in fileName The file is opened and the manifest is parsed and checed for validity. If not valid, an error is returned
func (*FirmwarePackageConsumer) File ¶
func (p *FirmwarePackageConsumer) File(w io.Writer) error
File extracts the firmware binary file from the firmware package and writes it to w
func (*FirmwarePackageConsumer) Manifest ¶
func (p *FirmwarePackageConsumer) Manifest() (manifest *FwManifest)
Manifest returns the parsed manifest as ago struct
Click to show internal directories.
Click to hide internal directories.