firmwaredbsql

package
v0.0.0-...-f44e450 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 11, 2023 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// BiosFirmwareType represents BIOS
	FirmwareTypeBIOS = models.FirmwareTypeBIOS
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Cancelled

type Cancelled struct{}

func (Cancelled) String

func (Cancelled) String() string

type DB

type DB struct {
	DriverName string
	DSN        string
}

func New

func New(driverName, dsn string) (*DB, error)

func (*DB) Get

func (db *DB) Get(ctx context.Context, filters ...Filter) ([]*Firmware, error)

type ErrCancelled

type ErrCancelled = firmwaredb.Err[Cancelled]

type ErrConnect

type ErrConnect = firmwaredb.Err[UnableToConnect]

type ErrOpen

type ErrOpen = firmwaredb.Err[UnableToOpen]

type ErrPing

type ErrPing = firmwaredb.Err[UnableToPing]

type ErrQuery

type ErrQuery = firmwaredb.Err[UnableToQuery]

type ErrScan

type ErrScan = firmwaredb.Err[UnableToScan]

type Filter

type Filter = firmwaredb.Filter

type Filters

type Filters = firmwaredb.Filters

type Firmware

type Firmware = models.Firmware

Firmware represent a row of table containing metadata about firmware images.

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

type UnableToConnect

type UnableToConnect struct{}

func (UnableToConnect) String

func (UnableToConnect) String() string

type UnableToOpen

type UnableToOpen struct{}

func (UnableToOpen) String

func (UnableToOpen) String() string

type UnableToPing

type UnableToPing struct{}

func (UnableToPing) String

func (UnableToPing) String() string

type UnableToQuery

type UnableToQuery struct {
	Query string
	Args  []any
}

func (UnableToQuery) String

func (e UnableToQuery) String() string

type UnableToScan

type UnableToScan struct{}

func (UnableToScan) String

func (UnableToScan) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL