api

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2019 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package api defines the api interface functions required to implement goquery calls

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckHost

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

CheckHost queries the api to validate the UUID references a valid, active node

func FetchResults

func FetchResults(query string) (utils.Rows, string, error)

FetchResults checks the api for the status and results body of a query

func InitializeAPI

func InitializeAPI(apiName string) error

InitializeAPI initializes and holds on to the specified instance/implementation of the requiredmodels.GoQueryAPI interface

func ScheduleQuery

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

ScheduleQuery posts a query for the target host that osquery will poll for

func ScheduleQueryAndWait

func ScheduleQueryAndWait(uuid, query string) (utils.Rows, error)

ScheduleQueryAndWait implements ctrl C interupt for required blocking api calls

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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