Documentation ¶
Index ¶
- func ApproveNode(db ApiDB) http.Handler
- func ConfigurationRequestHandler(db ApiDB) http.Handler
- func ConfigureNodeHandler(db ApiDB) http.Handler
- func ConfigurePack(db ApiDB) http.Handler
- func ConfigurePackQuery(db ApiDB) http.Handler
- func DeleteNodeHandler(db ApiDB) http.Handler
- func GetNamedConfigsHandler(db ApiDB) http.Handler
- func GetNodesHandler(db ApiDB) http.Handler
- func GetPackQueries(db ApiDB) http.Handler
- func GetQueryPacks(db ApiDB) http.Handler
- func SearchPackQueries(db ApiDB) http.Handler
- func SearchQueryPacks(db ApiDB) http.Handler
- type ApiDB
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApproveNode ¶
func ConfigurationRequestHandler ¶
ConfigurationRequestHandler accepts a json post body of a NamedConfig
func ConfigureNodeHandler ¶
func ConfigurePackQuery ¶
ConfigurePackQuery accepts post body with packquery config
func DeleteNodeHandler ¶
func GetNamedConfigsHandler ¶
GetNamedConfigs returns all named configs in a json list
func GetNodesHandler ¶
GetNodes returns json reponse of a list of nodes
func GetPackQueries ¶
func SearchPackQueries ¶
SearchPackQueries searches all packqueries by substring
func SearchQueryPacks ¶
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 }
Click to show internal directories.
Click to hide internal directories.