Documentation ¶
Index ¶
- Constants
- type DB
- type Err
- type ErrNotFound
- type Filter
- type FilterIDs
- type FilterMeasurementMetadata
- type FilterModelIDs
- type FilterNot
- type FilterTypes
- type FilterVersion
- type Filters
- type FiltersOR
- type Firmware
- type FirmwareMeasurement
- type FirmwareMeasurementMetadata
- type FirmwareMeasurementType
- type FirmwareTarget
- type FirmwareType
- type NotFound
Constants ¶
const ( // BiosFirmwareType represents BIOS FirmwareTypeBIOS = models.FirmwareTypeBIOS )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ErrNotFound ¶
type Filter ¶
type Filter interface { // WhereCond returns an SQL substring for "WHERE" with placeholders for // arguments (if required) and the arguments. // // A result of a query using WhereCond may contain extra values, due // to inability to perform effective fine filtering on SQL level, thus // use function Match to do the actual filtering after fetching the // entries from an RDBMS. WhereCond() (string, []any) // Match returns true if the firmware satisfies the filter conditions. Match(*Firmware) bool }
Filter defines conditions to select firmware entries
type FilterMeasurementMetadata ¶
FilterPCR0Tag filters only the entries which are associated with a measurement with a specified metadata value.
func (FilterMeasurementMetadata) Match ¶
func (f FilterMeasurementMetadata) Match(fw *Firmware) bool
Match implements Filter.
func (FilterMeasurementMetadata) WhereCond ¶
func (f FilterMeasurementMetadata) WhereCond() (string, []any)
WhereCond implements Filter.
type FilterModelIDs ¶
type FilterModelIDs []int64
FilterModelFamilyIDs filters only the entries with the specified model family IDs.
func (FilterModelIDs) Match ¶
func (f FilterModelIDs) Match(fw *Firmware) bool
Match implements Filter.
func (FilterModelIDs) WhereCond ¶
func (f FilterModelIDs) WhereCond() (string, []any)
WhereCond implements Filter.
type FilterNot ¶
type FilterNot []Filter
FilterNot inverts conditions. If any of the nested filters are satisfied, then FilterNot result is "not satisfied".
type FilterTypes ¶
type FilterTypes []models.FirmwareType
FilterTypes defines a firmware types condition to select firmwares.
func (FilterTypes) WhereCond ¶
func (f FilterTypes) WhereCond() (string, []any)
WhereCond implements Filter.
type FilterVersion ¶
type FilterVersion string
FilterVersion defines a firmware version condition to select firmwares.
func (FilterVersion) Match ¶
func (f FilterVersion) Match(fw *Firmware) bool
Match implements Filter.
func (FilterVersion) WhereCond ¶
func (f FilterVersion) WhereCond() (string, []any)
WhereCond implements Filter.
type FirmwareMeasurement ¶
type FirmwareMeasurement = models.FirmwareMeasurement
type FirmwareMeasurementMetadata ¶
type FirmwareMeasurementMetadata = models.FirmwareMeasurementMetadata
type FirmwareMeasurementType ¶
type FirmwareMeasurementType = models.FirmwareMeasurementType
type FirmwareTarget ¶
type FirmwareTarget = models.FirmwareTarget
type FirmwareType ¶
type FirmwareType = models.FirmwareType
FirmwareType represents description of firmware type values