api

package
v0.0.0-...-d58163c Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2020 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApproveNode

func ApproveNode(db ApiDB) http.Handler

func ConfigurationRequestHandler

func ConfigurationRequestHandler(db ApiDB) http.Handler

ConfigurationRequestHandler accepts a json post body of a NamedConfig

func ConfigureNodeHandler

func ConfigureNodeHandler(db ApiDB) http.Handler

func ConfigurePack

func ConfigurePack(db ApiDB) http.Handler

ConfigurePack configures named pack

func ConfigurePackQuery

func ConfigurePackQuery(db ApiDB) http.Handler

ConfigurePackQuery accepts post body with packquery config

func DeleteNodeHandler

func DeleteNodeHandler(db ApiDB) http.Handler

func GetNamedConfigsHandler

func GetNamedConfigsHandler(db ApiDB) http.Handler

GetNamedConfigs returns all named configs in a json list

func GetNodesHandler

func GetNodesHandler(db ApiDB) http.Handler

GetNodes returns json reponse of a list of nodes

func GetPackQueries

func GetPackQueries(db ApiDB) http.Handler

func GetQueryPacks

func GetQueryPacks(db ApiDB) http.Handler

GetQueryPacks returns all querypacks

func SearchPackQueries

func SearchPackQueries(db ApiDB) http.Handler

SearchPackQueries searches all packqueries by substring

func SearchQueryPacks

func SearchQueryPacks(db ApiDB) http.Handler

SearchQueryPacks search for substring in query pack name

Types

type ApiDB

type ApiDB interface {
	GetNamedConfigs() ([]osquery_types.OsqueryNamedConfig, error)
	GetNamedConfig(configName string) (osquery_types.OsqueryNamedConfig, error)
	UpsertNamedConfig(onc *osquery_types.OsqueryNamedConfig) error
	UpsertClient(oc osquery_types.OsqueryClient) error
	SearchByHostIdentifier(hid string) ([]osquery_types.OsqueryClient, error)
	ApprovePendingNode(nodeKey string) error
	ValidNode(nodeKey string) error
	SearchByNodeKey(nk string) (osquery_types.OsqueryClient, error)
	APIGetPackQueries() ([]osquery_types.PackQuery, error)
	APISearchPackQueries(searchString string) ([]osquery_types.PackQuery, error)
	GetPackQuery(queryName string) (osquery_types.PackQuery, error)
	UpsertPackQuery(pq osquery_types.PackQuery) error
	GetPackByName(packName string) (osquery_types.Pack, error)
	SearchQueryPacks(searchString string) ([]osquery_types.QueryPack, error)
	NewQueryPack(qp osquery_types.QueryPack) error
	DeleteQueryPack(queryPackName string) error
	UpsertPack(qp osquery_types.QueryPack) error
	SearchDistributedNodeKey(nk string) (osquery_types.DistributedQuery, error)
	NewDistributedQuery(dq osquery_types.DistributedQuery) error
	DeleteDistributedQuery(dq osquery_types.DistributedQuery) error
	AppendDistributedQuery(dq osquery_types.DistributedQuery) error
	UpsertDistributedQuery(dq osquery_types.DistributedQuery) error
	NewUser(u osquery_types.User) error
	GetUser(username string) (osquery_types.User, error)
	DeleteNodeByNodekey(nodeKey string) error
}

Jump to

Keyboard shortcuts

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