Skip to content

Commit

Permalink
Merged Pull Request '#54 feat/onpremise_examples->main : Feat/onpremi…
Browse files Browse the repository at this point in the history
…se examples'

Feat/onpremise examples
  • Loading branch information
Automation51D authored Jun 20, 2024
2 parents 2f349da + 0df4a7a commit 4f67dda
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion onpremise/onpremise.go
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ func WithRandomization(seconds int) EngineOptions {
}

// WithProperties sets properties that the engine retrieves from the data file for each device detection result instance
// default is "" which will include all possible properties
// default is [] which will include all possible properties
func WithProperties(properties []string) EngineOptions {
return func(cfg *Engine) error {
if properties != nil {
Expand Down Expand Up @@ -377,6 +377,11 @@ func mapEvidence(evidenceList []Evidence) (*dd.Evidence, error) {
return evidenceHash, nil
}

// Create a new raw ResultsHash object.
func (e *Engine) NewResultsHash(evidenceCapacity uint32, overridesCapacity uint32) *dd.ResultsHash {
return dd.NewResultsHash(e.manager, evidenceCapacity, overridesCapacity)
}

// Stop has to be called to free all the resources of the engine
// before the instance goes out of scope
func (e *Engine) Stop() {
Expand Down

0 comments on commit 4f67dda

Please sign in to comment.