Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NodeConfigureRequest ¶
func NodeConfigureRequest(dyn NodeDB, config *osquery_types.ServerConfig) http.Handler
NodeConfigureRequest configures a node. Returns a json body of either a full osquery config, or a node_invalide = True to indicate need for re-enrollment
func NodeEnrollRequest ¶
func NodeEnrollRequest(dyn NodeDB, config *osquery_types.ServerConfig) http.Handler
NodeEnrollRequest enrolls a node given the host identifier
func RandomString ¶
Types ¶
type EnrollRequestResponse ¶
type NodeConfigurePost ¶
type NodeConfigurePost struct { EnrollSecret string `json:"enroll_secret"` NodeKey string `json:"node_key"` HostIdentifier string `json:"host_identifier"` }
NodeConfigurePost type for handling post requests made by node
type NodeDB ¶
type NodeDB interface { SearchByHostIdentifier(hid string) ([]osquery_types.OsqueryClient, error) UpsertClient(oc osquery_types.OsqueryClient) error ValidNode(nodeKey string) error SearchByNodeKey(nk string) (osquery_types.OsqueryClient, error) GetNamedConfig(configName string) (osquery_types.OsqueryNamedConfig, error) //BuildOsqueryPackAsJSON(nc osquery_types.OsqueryNamedConfig) (json.RawMessage) BuildNamedConfig(configName string) (osquery_types.OsqueryNamedConfig, error) }
Click to show internal directories.
Click to hide internal directories.