Documentation
¶
Index ¶
- func WriteEvents(ffsEvents interface{}, query config.FFSQuery) error
- func WriteInProgressQueries(query config.FFSQuery, inProgressQueries []InProgressQuery) error
- func WriteLastCompletedQuery(query config.FFSQuery, lastCompletedQuery InProgressQuery) error
- type Code42
- type Code42Destination
- type Code42Device
- type Code42EmailDlp
- type Code42Event
- type Code42File
- type Code42Print
- type Code42Process
- type Code42RemovableMedia
- type Code42Tab
- type ElasticFileEvent
- type Event
- type FFSEvent
- type File
- type Geo
- type Hash
- type Host
- type InProgressQuery
- type InProgressQueryString
- type Location
- type URL
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WriteEvents ¶
func WriteInProgressQueries ¶
func WriteInProgressQueries(query config.FFSQuery, inProgressQueries []InProgressQuery) error
func WriteLastCompletedQuery ¶
func WriteLastCompletedQuery(query config.FFSQuery, lastCompletedQuery InProgressQuery) error
Types ¶
type Code42 ¶ added in v0.4.0
type Code42 struct { Event *Code42Event `json:"event,omitempty"` InsertionTimestamp *time.Time `json:"insertion_timestamp,omitempty"` File *Code42File `json:"file,omitempty"` Device *Code42Device `json:"device,omitempty"` OsHostName string `json:"os_host_name,omitempty"` DomainName string `json:"domain_name,omitempty"` PublicIpAddress string `json:"public_ip_address,omitempty"` PrivateIpAddresses []string `json:"private_ip_addresses,omitempty"` Actor string `json:"actor,omitempty"` DirectoryId []string `json:"directory_id,omitempty"` Source string `json:"source,omitempty"` Url *URL `json:"url,omitempty"` SharingTypeAdded []string `json:"sharing_type_added,omitempty"` CloudDriveId string `json:"cloud_drive_id,omitempty"` DetectionSourceAlias string `json:"detection_source_alias,omitempty"` Exposure []string `json:"exposure,omitempty"` Process *Code42Process `json:"process,omitempty"` Tab *Code42Tab `json:"tab,omitempty"` RemovableMedia *Code42RemovableMedia `json:"removable_media,omitempty"` SyncDestination string `json:"sync_destination,omitempty"` SyncDestinationUsername string `json:"sync_destination_username,omitempty"` EmailDlp *Code42EmailDlp `json:"email_dlp,omitempty"` OutsideActiveHours *bool `json:"outside_active_hours,omitempty"` Print *Code42Print `json:"print,omitempty"` RemoteActivity string `json:"remote_activity,omitempty"` Trusted *bool `json:"trusted,omitempty"` LoggedInOperatingSystemUser string `json:"logged_in_operating_system_user,omitempty"` Destination *Code42Destination `json:"destination,omitempty"` }
type Code42Destination ¶ added in v0.4.0
type Code42Device ¶ added in v0.4.0
type Code42EmailDlp ¶ added in v0.4.0
type Code42Event ¶ added in v0.4.0
type Code42File ¶ added in v0.4.0
type Code42File struct { Path string `json:"path,omitempty"` Name string `json:"name,omitempty"` Type string `json:"type,omitempty"` Category string `json:"category,omitempty"` IdentifiedExtensionCategory string `json:"identified_extension_category,omitempty"` CurrentExtensionCategory string `json:"current_extension_category,omitempty"` Size *int `json:"size,omitempty"` Owner []string `json:"owner,omitempty"` Hash *Hash `json:"hash,omitempty"` CreatedTimestamp *time.Time `json:"created_timestamp,omitempty"` ModifyTimestamp *time.Time `json:"modify_timestamp,omitempty"` Id string `json:"id,omitempty"` IdentifiedExtensionMIMEType string `json:"identified_extension_mime_type,omitempty"` CurrentExtensionMIMEType string `json:"current_extension_mime_type,omitempty"` SuspiciousFileTypeMismatch *bool `json:"suspicious_file_type_mismatch,omitempty"` }
type Code42Print ¶ added in v0.4.0
type Code42Process ¶ added in v0.4.0
type Code42RemovableMedia ¶ added in v0.4.0
type Code42RemovableMedia struct { Vendor string `json:"vendor,omitempty"` Name string `json:"name,omitempty"` SerialNumber string `json:"serial_number,omitempty"` Capacity *int `json:"capacity,omitempty"` BusType string `json:"bus_type,omitempty"` MediaName string `json:"media_name,omitempty"` VolumeName string `json:"volume_name,omitempty"` PartitionId string `json:"partition_id,omitempty"` }
type ElasticFileEvent ¶ added in v0.1.5
type Event ¶ added in v0.1.6
type Event struct { Action string `json:"action,omitempty"` Category string `json:"category,omitempty"` Created *time.Time `json:"created,omitempty"` Dataset string `json:"dataset,omitempty"` Id string `json:"id,omitempty"` Ingested *time.Time `json:"ingested,omitempty"` Kind string `json:"kind,omitempty"` Module string `json:"module,omitempty"` Outcome string `json:"outcome,omitempty"` Provider string `json:"provider,omitempty"` Type string `json:"type,omitempty"` }
type FFSEvent ¶
type FFSEvent struct { ffs.FileEvent *ip_api.Location `json:",omitempty"` GeoLocation *Location `json:"geoPoint,omitempty"` }
type File ¶ added in v0.1.6
type File struct { Created *time.Time `json:"created,omitempty"` Directory []string `json:"directory,omitempty"` Extension string `json:"extension,omitempty"` MimeType string `json:"mime_type,omitempty"` Mtime *time.Time `json:"mtime,omitempty"` Name string `json:"name,omitempty"` Owner []string `json:"owner,omitempty"` Path string `json:"path,omitempty"` Size *int `json:"size,omitempty"` Type string `json:"type,omitempty"` Hash *Hash `json:"hash,omitempty"` }
type Geo ¶ added in v0.2.3
type Geo struct { Status string `json:"status,omitempty"` Message string `json:"message,omitempty"` Continent string `json:"continent_name,omitempty"` ContinentCode string `json:"continent_iso_code,omitempty"` Country string `json:"country_name,omitempty"` CountryCode string `json:"country_iso_code,omitempty"` Region string `json:"region_iso_code,omitempty"` RegionName string `json:"region_name,omitempty"` City string `json:"city_name,omitempty"` District string `json:"district,omitempty"` ZIP string `json:"postal_code,omitempty"` Lat *float32 `json:"lat,omitempty"` Lon *float32 `json:"lon,omitempty"` Timezone string `json:"timezone,omitempty"` Currency string `json:"currency,omitempty"` ISP string `json:"isp,omitempty"` Org string `json:"org,omitempty"` AS string `json:"as,omitempty"` ASName string `json:"as_name,omitempty"` Reverse string `json:"reverse,omitempty"` Mobile *bool `json:"mobile,omitempty"` Proxy *bool `json:"proxy,omitempty"` Hosting *bool `json:"hosting,omitempty"` Query string `json:"query,omitempty"` Location *Location `json:"location,omitempty"` }
type InProgressQuery ¶
In progress query struct
func ReadInProgressQueries ¶
func ReadInProgressQueries(query config.FFSQuery) ([]InProgressQuery, error)
func ReadLastCompletedQuery ¶
func ReadLastCompletedQuery(query config.FFSQuery) (InProgressQuery, error)
type InProgressQueryString ¶
In progress query struct using strings
type URL ¶ added in v0.2.3
type URL struct { Full string `json:"full,omitempty"` Domain string `json:"domain,omitempty"` Extension string `json:"extension,omitempty"` Fragment string `json:"fragment,omitempty"` Path string `json:"path,omitempty"` Port *int `json:"port,omitempty"` Query string `json:"query,omitempty"` Scheme string `json:"scheme,omitempty"` Username string `json:"username,omitempty"` Password string `json:"password,omitempty"` RegisteredDomain string `json:"registered_domain,omitempty"` TopLevelDomain string `json:"top_level_domain,omitempty"` }
Click to show internal directories.
Click to hide internal directories.