types

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

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

type DeviceCert struct {
	Cert    []byte
	Onboard []byte
	Serial  string
}

DeviceCert encoding for sending a device information, including device cert, onboard cert, and serial, if any

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 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

type OnboardCert struct {
	//Cert for onboarding
	Cert []byte
	//Serial for onboarding
	Serial string
}

OnboardCert encoding for sending an onboard cert and serials via json swagger:parameters onboard

type PrintResult

type PrintResult map[string][]string

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

type Zcerts

type Zcerts struct {
	Certs []*certs.ZCert `json:"certs,omitempty"` // EVE device certs
}

Zcerts stores device certificates

Jump to

Keyboard shortcuts

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