forked from aquasecurity/esquery
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
bd6436a
commit e0f05d9
Showing
4 changed files
with
53 additions
and
151 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package os_query | ||
|
||
// Mappable is the interface implemented by the various query and aggregation | ||
// types provided by the package. It allows the library to easily transform the | ||
// different queries to "generic" maps that can be easily encoded to JSON. | ||
type Mappable interface { | ||
Map() map[string]interface{} | ||
} | ||
|
||
// Aggregation is an interface that each aggregation type must implement. It | ||
// is simply an extension of the Mappable interface to include a Named function, | ||
// which returns the name of the aggregation. | ||
type Aggregation interface { | ||
Mappable | ||
Name() string | ||
} |
File renamed without changes.