Documentation
¶
Index ¶
- Constants
- func DataDefinitionUpgradeRequired(latestKnown string, current string) (bool, error)
- type AMDAGESA
- type AMDBinaryEntry
- type AMDDirectory
- type AMDDirectoryEntry
- type AMDDirectoryHeader
- type AMDEntry
- type AMDFirmware
- type AMDFirmwareEntryTable
- type AMDImage
- type AMDRom
- type AMDTypeInfo
- type AppBundle
- type AppConfiguration
- type AppRunConfiguration
- type ComponentSection
- type ComponentSectionFLCOMP
- type ComponentSectionFLILL
- type ComponentSectionFLPB
- type DBConfiguration
- type DBEntry
- type DataBase
- func (d DataBase) Exists(index string, id string) (bool, error, *elastic.GetResult)
- func (d DataBase) Flush(index string)
- func (d DataBase) Search(index string, terms map[string]string) error
- func (d DataBase) StoreElement(index string, typeString *string, entry interface{}, id *string)
- func (d DataBase) StoreJSON(index string, typeString *string, entry string, id *string)
- type DownloadEntry
- type DownloadWrapper
- type FlashDescriptorHeader
- type FlashDescriptorHeaderFLMAP0
- type FlashDescriptorHeaderFLMAP1
- type FlashDescriptorHeaderFLMAP2
- type FlashDescriptorHeaderFLUMAP1
- type FlashImage
- type IDEntry
- type ImportEntry
- type IntelFSP
- type IntelFirmware
- type IntelFlashDescriptor
- type LoggerConfiguration
- type MEFlashControl
- type MEFlashControlComponent
- type MEFlashControlControl
- type MQConfiguration
- type MasterSection
- type MasterSectionEntry
- type MessageBundle
- type MessageQueue
- type RegionSection
- type RegionSectionEntry
- type Storage
- func (storage Storage) FileExists(remotePath string) (minio.ObjectInfo, error)
- func (storage Storage) GetClient() *minio.Client
- func (storage Storage) GetFile(remotePath string) (*minio.Object, error)
- func (storage Storage) MakeBucket(bucketName string) error
- func (storage Storage) StoreBytes(byte []byte, id string) error
- func (storage Storage) StoreFile(localPath string, remotePath string) error
- type StorageConfiguration
- type StorageEntry
- type UserUpload
Constants ¶
View Source
const BiosImages = "biosimages"
View Source
const CurrentFlashDataDefinition = "0.1+initial"
View Source
const CurrentImportDataDefinition = "0.2+lastImportTimestamp"
View Source
const DeleteTopic = "delete"
View Source
const DownloadedTopic = "downloaded"
View Source
const ExtractedQeueTopic = "extracted"
View Source
const FlashImages = "flashimages"
View Source
const MEImages = "meimages"
View Source
const MainBucket = "files"
View Source
const URLQueueTopic = "url"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AMDBinaryEntry ¶
type AMDDirectory ¶
type AMDDirectory struct {
Header AMDDirectoryHeader
Entries []AMDEntry
Location string
}
type AMDDirectoryEntry ¶
type AMDDirectoryHeader ¶
type AMDEntry ¶
type AMDEntry struct {
DBEntry
DirectoryEntry AMDDirectoryEntry
}
type AMDFirmware ¶
type AMDFirmwareEntryTable ¶
type AMDImage ¶
type AMDImage struct {
FET *AMDFirmwareEntryTable
FlashMapping string
Roms []AMDRom
}
type AMDRom ¶
type AMDRom struct {
Type amdfw.RomType
Directories []AMDDirectory
}
type AMDTypeInfo ¶
type AppBundle ¶
type AppBundle struct {
MessageQueue MessageBundle
Storage Storage
DB DataBase
Log *logrus.Logger
Config *AppConfiguration
}
type AppConfiguration ¶
type AppConfiguration struct {
Logger LoggerConfiguration
MQ MQConfiguration
Storage StorageConfiguration
DB DBConfiguration
App AppRunConfiguration
}
func ConfigInit ¶
func ConfigInit(file string) *AppConfiguration
type AppRunConfiguration ¶
type ComponentSection ¶
type ComponentSection struct {
FLCOMP ComponentSectionFLCOMP
FLILL ComponentSectionFLILL
FLPB ComponentSectionFLPB
}
type ComponentSectionFLCOMP ¶
type ComponentSectionFLILL ¶
type ComponentSectionFLPB ¶
type ComponentSectionFLPB struct {
FlashPartitionBoundaryAddress string
}
type DBConfiguration ¶
type DBEntry ¶
type DBEntry struct {
AMDBinaryEntry
ID IDEntry
}
type DownloadEntry ¶
type DownloadEntry struct {
Vendor string `json:",omitempty"`
Product string `json:",omitempty"`
Version string `json:",omitempty"`
Title string `json:",omitempty"`
Description string `json:",omitempty"`
ReleaseDate string `json:",omitempty"`
DownloadFileSize string `json:",omitempty"`
DownloadURL string `json:",omitempty"`
DownloadPath string `json:",omitempty"`
DownloadTime string `json:",omitempty" hash:"-"`
PackageID IDEntry `json:",omitempty" hash:"-"`
}
type DownloadWrapper ¶
type DownloadWrapper struct {
DownloadEntry
ForceReimport bool
}
type FlashDescriptorHeader ¶
type FlashDescriptorHeader struct {
FLVALSIG string
FLMAP0 FlashDescriptorHeaderFLMAP0
FLMAP1 FlashDescriptorHeaderFLMAP1
FLMAP2 FlashDescriptorHeaderFLMAP2
RESERVED [(0xefc - 0x20) / 4]uint32
FLUMAP1 FlashDescriptorHeaderFLUMAP1
}
type FlashImage ¶
type FlashImage struct {
FlashimageDataDefinition string `json:",omitempty"`
MetaData DownloadEntry `json:",omitempty"`
ID IDEntry `json:",omitempty"`
Tags []string `json:",omitempty"`
FirmwareOffset int64 `json:",omitempty"`
AMD *AMDFirmware `json:"AMD"`
INTEL *IntelFirmware `json:"INTEL""`
Certificates []string `json:"Certificates"`
EFIBlob string `json:",omitempty"`
}
type IDEntry ¶
type IDEntry struct {
SSDEEP string `json:",omitempty"`
SHA3_512 string `json:",omitempty"`
SHA512 string `json:",omitempty"`
SHA256 string `json:",omitempty"`
SHA1 string `json:",omitempty"`
MD5 string `json:",omitempty"`
Whirlpool string `json:",omitempty"`
Algorithm string `json:",omitempty"`
}
func GenerateID ¶
type ImportEntry ¶
type ImportEntry struct {
ImportDataDefinition string `json:",omitempty"`
MetaData DownloadEntry `json:",omitempty"`
Contents []StorageEntry `json:",omitempty"`
ImportTime string `json:",omitempty"`
LastImportTime string `json:",omitempty"`
Success bool `json:",omitempty"`
}
type IntelFirmware ¶
type IntelFirmware struct {
IFD *IntelFlashDescriptor `json:"IFD"`
FIT *intelfit.FIT `json:"FIT"`
FSP []IntelFSP `json:"FSP,omitempty"`
}
type IntelFlashDescriptor ¶
type IntelFlashDescriptor struct {
HeaderOffset uint32
Version uint32
HEADER FlashDescriptorHeader
OEM [0x40]uint8
FLASHCONTROL []MEFlashControl
REGION RegionSection
COMPONENT ComponentSection
PCHSTRAP [18]string
MASTER MasterSection
STRAP [8]string
}
type LoggerConfiguration ¶
type MEFlashControl ¶
type MEFlashControl struct {
COMPONENT MEFlashControlComponent
CONTROL MEFlashControlControl
}
type MEFlashControlComponent ¶
type MEFlashControlControl ¶
type MEFlashControlControl struct {
LowerEraseOpcode string
LowerWriteEnableOnWriteStatus string
LowerWriteStatusRequired bool
LowerWriteGranularity uint32
LowerBlockAndSectorEraseSize string
UpperEraseOpcode string
UpperWriteEnableOnWriteStatus string
UpperWriteStatusRequired bool
UpperWriteGranularity uint32
UpperBlockAndSectorEraseSize string
}
type MQConfiguration ¶
type MasterSection ¶
type MasterSection struct {
BIOS MasterSectionEntry
ME MasterSectionEntry
ETHERNET MasterSectionEntry
RESERVED MasterSectionEntry
EC MasterSectionEntry
}
type MasterSectionEntry ¶
type MasterSectionEntry struct {
FlashDescriptorReadAccess bool
FlashDescriptorWriteAccess bool
HostCPUBIOSRegionReadAccess bool
HostCPUBIOSRegionWriteAccess bool
IntelMERegionReadAccess bool
IntelMERegionWriteAccess bool
GbERegionReadAccess bool
GbERegionWriteAccess bool
PlatformDataRegionReadAccess bool
PlatformDataRegionWriteAccess bool
ECRegionReadAccess bool
ECRegionWriteAccess bool
RequesterID string
}
func GetMasterSectionByNumber ¶
func GetMasterSectionByNumber(pfd IntelFlashDescriptor, index int) (MasterSectionEntry, string)
type MessageBundle ¶
type MessageBundle struct {
URLQueue MessageQueue
DownloadedQueue MessageQueue
ExtractedQueue MessageQueue
DeleteQueue MessageQueue
FlashImagesQueue MessageQueue
BiosImagesQueue MessageQueue
MEImagesQueue MessageQueue
TestQueue MessageQueue
}
type MessageQueue ¶
func (MessageQueue) MarshalAndSend ¶
func (mq MessageQueue) MarshalAndSend(data interface{}) error
func (MessageQueue) RegisterCallback ¶
func (mq MessageQueue) RegisterCallback(consumerName string, callback eventFunc)
func (MessageQueue) Send ¶
func (mq MessageQueue) Send(data string) error
type RegionSection ¶
type RegionSection struct {
FLASH RegionSectionEntry `json:",omitempty"`
BIOS RegionSectionEntry `json:",omitempty"`
ME RegionSectionEntry `json:",omitempty"`
ETHERNET RegionSectionEntry `json:",omitempty"`
PLATFORM RegionSectionEntry `json:",omitempty"`
EXPANSION RegionSectionEntry `json:",omitempty"`
RESERVED2 RegionSectionEntry `json:",omitempty"`
RESERVED3 RegionSectionEntry `json:",omitempty"`
EC RegionSectionEntry `json:",omitempty"`
}
type RegionSectionEntry ¶
func GetRegionByNumber ¶
func GetRegionByNumber(pfd IntelFlashDescriptor, index int) (RegionSectionEntry, string, string, string)
type Storage ¶
type Storage struct {
// contains filtered or unexported fields
}
func (Storage) FileExists ¶
func (storage Storage) FileExists(remotePath string) (minio.ObjectInfo, error)
func (Storage) MakeBucket ¶
type StorageConfiguration ¶
type StorageEntry ¶
type UserUpload ¶
type UserUpload struct {
MetaData DownloadEntry `json:",omitempty"`
UploadTime string `json:",omitempty"`
UploadIP string `json:",omitempty"`
}
Click to show internal directories.
Click to hide internal directories.