types

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2024 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Actor added in v0.1.0

type Actor struct {
	ID       string `json:"id,omitempty"`
	Email    string `json:"email,omitempty"`
	Username string `json:"username,omitempty"`
}

type Event

type Event struct {
	SourceType string    `json:"sourceType"`
	EventTime  time.Time `json:"eventTime,omitempty"`
	EventName  string    `json:"eventName,omitempty"`

	Actor     Actor             `json:"actor,omitempty"`
	Src       Network           `json:"src,omitempty"`
	Dst       Network           `json:"dst,omitempty"`
	Service   Service           `json:"service,omitempty"`
	Tags      map[string]string `json:"tags,omitempty"`
	ReadOnly  bool              `json:"readOnly,omitempty"`
	Resources []json.RawMessage `json:"resources,omitempty"`

	// LogFormat describes the format of the log and indicates to the sourceType
	// how to parse the raw log.  e.g. "jsonl/normalized"
	LogFormat string `json:"logFormat"`
	RawLog    []byte `json:"rawLog"`
}

type Network added in v0.1.0

type Network struct {
	IP   netip.Addr `json:"ip,omitempty"`
	Port uint       `json:"port,omitempty"`
}

type Service added in v0.1.0

type Service struct {
	Name string `json:"name,omitempty"`
}

Jump to

Keyboard shortcuts

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