Documentation ¶
Index ¶
- Constants
- Variables
- type CustomReport
- func (p *CustomReport) Equals(other *CustomReport) bool
- func (p *CustomReport) GetDiagnosis() DiffDiagnosis
- func (p *CustomReport) GetDiffEntries() []*DiffEntry
- func (p *CustomReport) GetImageOffset() int64
- func (p *CustomReport) Read(ctx context.Context, iprot thrift.TProtocol) error
- func (p *CustomReport) ReadField1(ctx context.Context, iprot thrift.TProtocol) error
- func (p *CustomReport) ReadField2(ctx context.Context, iprot thrift.TProtocol) error
- func (p *CustomReport) ReadField3(ctx context.Context, iprot thrift.TProtocol) error
- func (p *CustomReport) String() string
- func (p *CustomReport) Write(ctx context.Context, oprot thrift.TProtocol) error
- type DataChunk
- func (p *DataChunk) Equals(other *DataChunk) bool
- func (p *DataChunk) GetData() *RangeOrForcedData
- func (p *DataChunk) GetID() string
- func (p *DataChunk) IsSetData() bool
- func (p *DataChunk) Read(ctx context.Context, iprot thrift.TProtocol) error
- func (p *DataChunk) ReadField1(ctx context.Context, iprot thrift.TProtocol) error
- func (p *DataChunk) ReadField2(ctx context.Context, iprot thrift.TProtocol) error
- func (p *DataChunk) String() string
- func (p *DataChunk) Write(ctx context.Context, oprot thrift.TProtocol) error
- type DiffDiagnosis
- type DiffEntry
- func (p *DiffEntry) Equals(other *DiffEntry) bool
- func (p *DiffEntry) GetHammingDistance() int64
- func (p *DiffEntry) GetHammingDistanceNon00orFF() int64
- func (p *DiffEntry) GetNodes() []*NodeInfo
- func (p *DiffEntry) GetOBSOLETE_Length() int64
- func (p *DiffEntry) GetOBSOLETE_Start() int64
- func (p *DiffEntry) GetRange() *Range_
- func (p *DiffEntry) GetRelatedMeasurements() []*RelatedMeasurement
- func (p *DiffEntry) IsSetRange() bool
- func (p *DiffEntry) Read(ctx context.Context, iprot thrift.TProtocol) error
- func (p *DiffEntry) ReadField1(ctx context.Context, iprot thrift.TProtocol) error
- func (p *DiffEntry) ReadField2(ctx context.Context, iprot thrift.TProtocol) error
- func (p *DiffEntry) ReadField3(ctx context.Context, iprot thrift.TProtocol) error
- func (p *DiffEntry) ReadField4(ctx context.Context, iprot thrift.TProtocol) error
- func (p *DiffEntry) ReadField5(ctx context.Context, iprot thrift.TProtocol) error
- func (p *DiffEntry) ReadField6(ctx context.Context, iprot thrift.TProtocol) error
- func (p *DiffEntry) ReadField7(ctx context.Context, iprot thrift.TProtocol) error
- func (p *DiffEntry) String() string
- func (p *DiffEntry) Write(ctx context.Context, oprot thrift.TProtocol) error
- type Measurement
- func (p *Measurement) Equals(other *Measurement) bool
- func (p *Measurement) GetDataChunks() []*DataChunk
- func (p *Measurement) GetID() string
- func (p *Measurement) Read(ctx context.Context, iprot thrift.TProtocol) error
- func (p *Measurement) ReadField1(ctx context.Context, iprot thrift.TProtocol) error
- func (p *Measurement) ReadField2(ctx context.Context, iprot thrift.TProtocol) error
- func (p *Measurement) String() string
- func (p *Measurement) Write(ctx context.Context, oprot thrift.TProtocol) error
- type NodeInfo
- func (p *NodeInfo) Equals(other *NodeInfo) bool
- func (p *NodeInfo) GetDescription() string
- func (p *NodeInfo) GetUUID() string
- func (p *NodeInfo) IsSetDescription() bool
- func (p *NodeInfo) Read(ctx context.Context, iprot thrift.TProtocol) error
- func (p *NodeInfo) ReadField1(ctx context.Context, iprot thrift.TProtocol) error
- func (p *NodeInfo) ReadField2(ctx context.Context, iprot thrift.TProtocol) error
- func (p *NodeInfo) String() string
- func (p *NodeInfo) Write(ctx context.Context, oprot thrift.TProtocol) error
- type RangeOrForcedData
- func (p *RangeOrForcedData) CountSetFieldsRangeOrForcedData() int
- func (p *RangeOrForcedData) Equals(other *RangeOrForcedData) bool
- func (p *RangeOrForcedData) GetForceData() []byte
- func (p *RangeOrForcedData) GetRange() *Range_
- func (p *RangeOrForcedData) IsSetForceData() bool
- func (p *RangeOrForcedData) IsSetRange() bool
- func (p *RangeOrForcedData) Read(ctx context.Context, iprot thrift.TProtocol) error
- func (p *RangeOrForcedData) ReadField1(ctx context.Context, iprot thrift.TProtocol) error
- func (p *RangeOrForcedData) ReadField2(ctx context.Context, iprot thrift.TProtocol) error
- func (p *RangeOrForcedData) String() string
- func (p *RangeOrForcedData) Write(ctx context.Context, oprot thrift.TProtocol) error
- type Range_
- func (p *Range_) Equals(other *Range_) bool
- func (p *Range_) GetLength() int64
- func (p *Range_) GetOffset() int64
- func (p *Range_) Read(ctx context.Context, iprot thrift.TProtocol) error
- func (p *Range_) ReadField1(ctx context.Context, iprot thrift.TProtocol) error
- func (p *Range_) ReadField2(ctx context.Context, iprot thrift.TProtocol) error
- func (p *Range_) String() string
- func (p *Range_) Write(ctx context.Context, oprot thrift.TProtocol) error
- type RelatedMeasurement
- func (p *RelatedMeasurement) Equals(other *RelatedMeasurement) bool
- func (p *RelatedMeasurement) GetMeasurement() *Measurement
- func (p *RelatedMeasurement) GetRelatedDataChunks() []*DataChunk
- func (p *RelatedMeasurement) IsSetMeasurement() bool
- func (p *RelatedMeasurement) Read(ctx context.Context, iprot thrift.TProtocol) error
- func (p *RelatedMeasurement) ReadField1(ctx context.Context, iprot thrift.TProtocol) error
- func (p *RelatedMeasurement) ReadField2(ctx context.Context, iprot thrift.TProtocol) error
- func (p *RelatedMeasurement) String() string
- func (p *RelatedMeasurement) Write(ctx context.Context, oprot thrift.TProtocol) error
Constants ¶
View Source
const DiffMeasuredBootAnalyzerID = "DiffMeasuredBoot"
Variables ¶
View Source
var GoUnusedProtection__ int
View Source
var NodeInfo_Description_DEFAULT string
View Source
var RangeOrForcedData_ForceData_DEFAULT []byte
Functions ¶
This section is empty.
Types ¶
type CustomReport ¶
type CustomReport struct { Diagnosis DiffDiagnosis `thrift:"Diagnosis,1" db:"Diagnosis" json:"Diagnosis"` DiffEntries []*DiffEntry `thrift:"DiffEntries,2" db:"DiffEntries" json:"DiffEntries"` ImageOffset int64 `thrift:"ImageOffset,3" db:"ImageOffset" json:"ImageOffset"` }
Attributes:
- Diagnosis
- DiffEntries
- ImageOffset
func NewCustomReport ¶
func NewCustomReport() *CustomReport
func (*CustomReport) Equals ¶
func (p *CustomReport) Equals(other *CustomReport) bool
func (*CustomReport) GetDiagnosis ¶
func (p *CustomReport) GetDiagnosis() DiffDiagnosis
func (*CustomReport) GetDiffEntries ¶
func (p *CustomReport) GetDiffEntries() []*DiffEntry
func (*CustomReport) GetImageOffset ¶
func (p *CustomReport) GetImageOffset() int64
func (*CustomReport) ReadField1 ¶
func (*CustomReport) ReadField2 ¶
func (*CustomReport) ReadField3 ¶
func (*CustomReport) String ¶
func (p *CustomReport) String() string
type DataChunk ¶
type DataChunk struct { ID string `thrift:"ID,1" db:"ID" json:"ID"` Data *RangeOrForcedData `thrift:"Data,2" db:"Data" json:"Data"` }
Attributes:
- ID
- Data
func NewDataChunk ¶
func NewDataChunk() *DataChunk
func (*DataChunk) GetData ¶
func (p *DataChunk) GetData() *RangeOrForcedData
func (*DataChunk) ReadField1 ¶
func (*DataChunk) ReadField2 ¶
type DiffDiagnosis ¶
type DiffDiagnosis int64
const ( DiffDiagnosis_Undefined DiffDiagnosis = 0 DiffDiagnosis_Match DiffDiagnosis = 1 DiffDiagnosis_UnsuspiciousDamage DiffDiagnosis = 2 DiffDiagnosis_SuspiciousDamage DiffDiagnosis = 3 DiffDiagnosis_FirmwareVersionMismatch DiffDiagnosis = 4 DiffDiagnosis_InvalidOriginalFirmware DiffDiagnosis = 5 DiffDiagnosis_KnownTamperedHost DiffDiagnosis = 6 )
func DiffDiagnosisFromString ¶
func DiffDiagnosisFromString(s string) (DiffDiagnosis, error)
func DiffDiagnosisPtr ¶
func DiffDiagnosisPtr(v DiffDiagnosis) *DiffDiagnosis
func (DiffDiagnosis) MarshalText ¶
func (p DiffDiagnosis) MarshalText() ([]byte, error)
func (*DiffDiagnosis) Scan ¶
func (p *DiffDiagnosis) Scan(value interface{}) error
func (DiffDiagnosis) String ¶
func (p DiffDiagnosis) String() string
func (*DiffDiagnosis) UnmarshalText ¶
func (p *DiffDiagnosis) UnmarshalText(text []byte) error
type DiffEntry ¶
type DiffEntry struct { OBSOLETE_Start int64 `thrift:"OBSOLETE_Start,1" db:"OBSOLETE_Start" json:"OBSOLETE_Start"` OBSOLETE_Length int64 `thrift:"OBSOLETE_Length,2" db:"OBSOLETE_Length" json:"OBSOLETE_Length"` HammingDistance int64 `thrift:"HammingDistance,3" db:"HammingDistance" json:"HammingDistance"` HammingDistanceNon00orFF int64 `thrift:"HammingDistanceNon00orFF,4" db:"HammingDistanceNon00orFF" json:"HammingDistanceNon00orFF"` Range *Range_ `thrift:"Range,5" db:"Range" json:"Range"` RelatedMeasurements []*RelatedMeasurement `thrift:"RelatedMeasurements,6" db:"RelatedMeasurements" json:"RelatedMeasurements"` Nodes []*NodeInfo `thrift:"Nodes,7" db:"Nodes" json:"Nodes"` }
Attributes:
- OBSOLETE_Start
- OBSOLETE_Length
- HammingDistance
- HammingDistanceNon00orFF
- Range
- RelatedMeasurements
- Nodes
func NewDiffEntry ¶
func NewDiffEntry() *DiffEntry
func (*DiffEntry) GetHammingDistance ¶
func (*DiffEntry) GetHammingDistanceNon00orFF ¶
func (*DiffEntry) GetOBSOLETE_Length ¶
func (*DiffEntry) GetOBSOLETE_Start ¶
func (*DiffEntry) GetRelatedMeasurements ¶
func (p *DiffEntry) GetRelatedMeasurements() []*RelatedMeasurement
func (*DiffEntry) IsSetRange ¶
func (*DiffEntry) ReadField1 ¶
func (*DiffEntry) ReadField2 ¶
func (*DiffEntry) ReadField3 ¶
func (*DiffEntry) ReadField4 ¶
func (*DiffEntry) ReadField5 ¶
func (*DiffEntry) ReadField6 ¶
func (*DiffEntry) ReadField7 ¶
type Measurement ¶
type Measurement struct { ID string `thrift:"ID,1" db:"ID" json:"ID"` DataChunks []*DataChunk `thrift:"DataChunks,2" db:"DataChunks" json:"DataChunks"` }
Attributes:
- ID
- DataChunks
var RelatedMeasurement_Measurement_DEFAULT *Measurement
func NewMeasurement ¶
func NewMeasurement() *Measurement
func (*Measurement) Equals ¶
func (p *Measurement) Equals(other *Measurement) bool
func (*Measurement) GetDataChunks ¶
func (p *Measurement) GetDataChunks() []*DataChunk
func (*Measurement) GetID ¶
func (p *Measurement) GetID() string
func (*Measurement) ReadField1 ¶
func (*Measurement) ReadField2 ¶
func (*Measurement) String ¶
func (p *Measurement) String() string
type NodeInfo ¶
type NodeInfo struct { UUID string `thrift:"UUID,1" db:"UUID" json:"UUID"` Description *string `thrift:"Description,2" db:"Description" json:"Description,omitempty"` }
Attributes:
- UUID
- Description
func NewNodeInfo ¶
func NewNodeInfo() *NodeInfo
func (*NodeInfo) GetDescription ¶
func (*NodeInfo) IsSetDescription ¶
func (*NodeInfo) ReadField1 ¶
func (*NodeInfo) ReadField2 ¶
type RangeOrForcedData ¶
type RangeOrForcedData struct { Range *Range_ `thrift:"Range,1" db:"Range" json:"Range,omitempty"` ForceData []byte `thrift:"ForceData,2" db:"ForceData" json:"ForceData,omitempty"` }
Attributes:
- Range
- ForceData
var DataChunk_Data_DEFAULT *RangeOrForcedData
func NewRangeOrForcedData ¶
func NewRangeOrForcedData() *RangeOrForcedData
func (*RangeOrForcedData) CountSetFieldsRangeOrForcedData ¶
func (p *RangeOrForcedData) CountSetFieldsRangeOrForcedData() int
func (*RangeOrForcedData) Equals ¶
func (p *RangeOrForcedData) Equals(other *RangeOrForcedData) bool
func (*RangeOrForcedData) GetForceData ¶
func (p *RangeOrForcedData) GetForceData() []byte
func (*RangeOrForcedData) GetRange ¶
func (p *RangeOrForcedData) GetRange() *Range_
func (*RangeOrForcedData) IsSetForceData ¶
func (p *RangeOrForcedData) IsSetForceData() bool
func (*RangeOrForcedData) IsSetRange ¶
func (p *RangeOrForcedData) IsSetRange() bool
func (*RangeOrForcedData) ReadField1 ¶
func (*RangeOrForcedData) ReadField2 ¶
func (*RangeOrForcedData) String ¶
func (p *RangeOrForcedData) String() string
type Range_ ¶
type Range_ struct { Offset int64 `thrift:"Offset,1" db:"Offset" json:"Offset"` Length int64 `thrift:"Length,2" db:"Length" json:"Length"` }
Attributes:
- Offset
- Length
var DiffEntry_Range_DEFAULT *Range_
var RangeOrForcedData_Range_DEFAULT *Range_
func (*Range_) ReadField1 ¶
func (*Range_) ReadField2 ¶
type RelatedMeasurement ¶
type RelatedMeasurement struct { Measurement *Measurement `thrift:"Measurement,1" db:"Measurement" json:"Measurement"` RelatedDataChunks []*DataChunk `thrift:"RelatedDataChunks,2" db:"RelatedDataChunks" json:"RelatedDataChunks"` }
Attributes:
- Measurement
- RelatedDataChunks
func NewRelatedMeasurement ¶
func NewRelatedMeasurement() *RelatedMeasurement
func (*RelatedMeasurement) Equals ¶
func (p *RelatedMeasurement) Equals(other *RelatedMeasurement) bool
func (*RelatedMeasurement) GetMeasurement ¶
func (p *RelatedMeasurement) GetMeasurement() *Measurement
func (*RelatedMeasurement) GetRelatedDataChunks ¶
func (p *RelatedMeasurement) GetRelatedDataChunks() []*DataChunk
func (*RelatedMeasurement) IsSetMeasurement ¶
func (p *RelatedMeasurement) IsSetMeasurement() bool
func (*RelatedMeasurement) ReadField1 ¶
func (*RelatedMeasurement) ReadField2 ¶
func (*RelatedMeasurement) String ¶
func (p *RelatedMeasurement) String() string
Click to show internal directories.
Click to hide internal directories.