uptycs

package
v2.0.4 Latest Latest
Warning

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

Go to latest
Published: May 27, 2020 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateUptycsAPI

func CreateUptycsAPI(uptCfgPath string, debugEnabled bool) (models.GoQueryAPI, error)

CreateUptycsAPI creates an authenticated instance of the `UptycsAPI` object

Types

type GoqueryConfig

type GoqueryConfig struct {
	GoqueryConfig config.Config `json:"goqueryCfg"`
	UptCfgPath    string        `json:"uptCfgPath"`
}

type UptycsAPI

type UptycsAPI struct {
	Authed bool

	DebugMode bool
	// contains filtered or unexported fields
}

func (UptycsAPI) CheckHost

func (u UptycsAPI) CheckHost(uuid string) (hosts.Host, error)

func (UptycsAPI) FetchResults

func (u UptycsAPI) FetchResults(queryName string) ([]map[string]string, string, error)

func (UptycsAPI) ScheduleQuery

func (u UptycsAPI) ScheduleQuery(uuid string, query string) (string, error)

This is a dirty hack that will make memory expand per query due to its design. Uptycs currently does not have a way to schedule queries on an individual host. So, instead, we make a realtime query, and store the result in a map with a UUID as a key, then return that as the "result".

Jump to

Keyboard shortcuts

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