Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIRequest ¶
type APIRequest struct { Timestamp time.Time `json:"timestamp"` UUID uuid.UUID `json:"uuid,omitempty"` ClientIP string `json:"client-ip"` Forwarded string `json:"forwarded,omitempty"` Method string `json:"method"` URL string `json:"url"` }
APIRequest stores information about requests from EVE
type DeviceCert ¶
DeviceCert encoding for sending a device information, including device cert, onboard cert, and serial, if any
type DeviceOptions ¶ added in v1.0.0
type DeviceOptions struct { Nonce string `json:"nonce"` IntegrityToken string `json:"integrityToken"` ReceivedPCRTemplate *PCRTemplate `json:"receivedPCRTemplate"` Attested bool `json:"attested"` EventLog []*attest.TpmEventLogEntry `json:"eventLog,omitempty"` }
DeviceOptions stores received nonce, PCRTemplate structure received from device and IntegrityToken generated by controller
type DeviceStateFilter ¶
type DeviceStateFilter int
DeviceStateFilter for filter device by state
var ( // AllDevicesFilter returns all devices AllDevicesFilter DeviceStateFilter // RegisteredDeviceFilter returns registered devices RegisteredDeviceFilter DeviceStateFilter = 1 // NotRegisteredDeviceFilter returns not registered devices NotRegisteredDeviceFilter DeviceStateFilter = 2 )
type DirGetters ¶
type DirGetters struct { LogsGetter getDir InfoGetter getDir MetricsGetter getDir FlowLogGetter getDir RequestGetter getDir AppsGetter getDirApps }
DirGetters provides information about directories to obtain objects from for loaders
type GlobalOptions ¶ added in v1.0.0
type GlobalOptions struct { EnforceTemplateAttestation bool `json:"enforceTemplateAttestation"` PCRTemplates []*PCRTemplate `json:"PCRTemplates"` }
GlobalOptions configure controller behaviour for attestation requests
type LoaderObjectType ¶
type LoaderObjectType int
LoaderObjectType for determinate object for loaders
var AppsType LoaderObjectType = 5
AppsType for observe logs of apps
var FlowLogType LoaderObjectType = 6
FlowLogType for observe FlowMessages
var InfoType LoaderObjectType = 2
InfoType for observe info
var LogsType LoaderObjectType = 1
LogsType for observe logs
var MetricsType LoaderObjectType = 3
MetricsType for observe metrics
var RequestType LoaderObjectType = 4
RequestType for observe requests
type OnboardCert ¶
OnboardCert encoding for sending an onboard cert and serials via json swagger:parameters onboard
type OutputFormat ¶ added in v1.0.0
type OutputFormat byte
OutputFormat the format to print output of metrics/logs/info
const ( //OutputFormatLines returns line by line OutputFormatLines OutputFormat = iota //OutputFormatJSON returns in JSON format OutputFormatJSON )
type PCRTemplate ¶ added in v1.0.0
type PCRTemplate struct { EveVersion string `json:"eveVersion"` FirmwareVersion string `json:"firmwareVersion"` PCRValues []*PCRValue `json:"PCRValues"` }
PCRTemplate stores template with EVE version, Firmware version, GPSInfo and set of PCRValues
type PCRValue ¶ added in v1.0.0
type PCRValue struct { Index uint32 `json:"index"` Value string `json:"value"` // may contain '*' to allow any value in template }
PCRValue stores one single PCR value from TPM, from a particular hash bank
type PrintResult ¶
PrintResult for representation of printing info/log/metric it contains print path string as a key of map []string as result of resolving of path string
func (*PrintResult) Print ¶
func (pr *PrintResult) Print()
Print of PrintResult perform output of element of info/log/metric if one path string return it if multiple path string return them with : as delimiter between key and value and \t as delimiter between path strings if one element for path string result, return it as plain string if multiple elements, return them as array
type StreamGetters ¶
type StreamGetters struct { StreamLogs getStream StreamInfo getStream StreamMetrics getStream StreamFlowLog getStream StreamRequest getStream StreamApps getStreamApps }
StreamGetters provides information about redis streams to obtain objects from for loaders
type URLGetters ¶
type URLGetters struct { URLLogs getURL URLInfo getURL URLMetrics getURL URLFlowLog getURL URLRequest getURL URLApps getURLApps }
URLGetters provides information about urls to obtain objects from for loaders