osctrl

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: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateOSctrlAPI

func CreateOSctrlAPI(developmentMode bool) (models.GoQueryAPI, error)

CreateOSctrlAPI creates and returns an api implementation that implements the models.GoQueryAPI interface can easily be parameterized with flags passed from main via the config.json

Types

type OSctrlAPI

type OSctrlAPI struct {
	Token     tokenResponse
	CookieJar *cookiejar.Jar
	Client    *http.Client
	Authed    bool

	Protocol  string
	Server    string
	AdminBase string
	APIBase   string
}

func (*OSctrlAPI) CheckHost

func (instance *OSctrlAPI) CheckHost(uuid string) (hosts.Host, error)

func (*OSctrlAPI) FetchResults

func (instance *OSctrlAPI) FetchResults(queryName string) ([]map[string]string, string, error)

func (*OSctrlAPI) ScheduleQuery

func (instance *OSctrlAPI) ScheduleQuery(uuid string, query string) (string, error)

Jump to

Keyboard shortcuts

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