Documentation ¶
Index ¶
- Variables
- func InitElasticSearch(addr string) error
- func Start(docker *client.Docker, logs bool) (types.ContainerJSONBase, error)
- func TestConnection(addr string) (bool, error)
- func WaitForConnection(ctx context.Context, addr string, timeout int) error
- func WriteFileToDatabase(sample map[string]interface{}) elastic.IndexResponse
- func WriteHashToDatabase(hash string) elastic.IndexResponse
- func WritePluginResultsToDatabase(results PluginResults)
- type PluginResults
Constants ¶
This section is empty.
Variables ¶
View Source
var ElasticAddr string
ElasticAddr ElasticSearch address to user for connections
Functions ¶
func InitElasticSearch ¶
InitElasticSearch initalizes ElasticSearch for use with malice
func TestConnection ¶
TestConnection tests the ElasticSearch connection
func WaitForConnection ¶
WaitForConnection waits for connection to Elasticsearch to be ready
func WriteFileToDatabase ¶
func WriteFileToDatabase(sample map[string]interface{}) elastic.IndexResponse
WriteFileToDatabase inserts sample into Database
func WriteHashToDatabase ¶
func WriteHashToDatabase(hash string) elastic.IndexResponse
WriteHashToDatabase inserts sample into Database
func WritePluginResultsToDatabase ¶
func WritePluginResultsToDatabase(results PluginResults)
WritePluginResultsToDatabase upserts plugin results into Database
Types ¶
Click to show internal directories.
Click to hide internal directories.