# Functions
ConvertResourceGroup2Map converts a ResourceGroup to a map[string]any.
NewGeneralStorageGetter creates a new instance of the GeneralStorageGetter with the given Elasticsearch addresses, user name, and password.
NewResourceGroupRuleStorageGetter creates a new instance of the ResourceGroupRuleStorageGetter with the given Elasticsearch addresses, user name, and password.
NewResourceStorageGetter creates a new instance of the ResourceStorageGetter with the given Elasticsearch addresses, user name, and password.
NewSearchStorageGetter creates a new instance of the SearchStorageGetter with the given Elasticsearch addresses, user name, and password.
NewStorage creates and returns a new instance of the Storage struct with the provided Elasticsearch configuration.
Parse takes a query string and returns a slice of storage.Query and an error if any.
ParseQueries takes a slice of storage.Query and returns a map of interface{} representing the parsed queries and an error if any.
# Variables
No description provided by the author
No description provided by the author
No description provided by the author
# Structs
Config defines the configuration structure for Elasticsearch storage.
GeneralStorageGetter retrieves and returns a general storage instance based on the provided configuration.
Pagination defines the struct for pagination which contains page number and page size.
ResourceGroupRuleStorageGetter represents a structure for getting resource group rule storage instances.
ResourceStorageGetter represents a structure for getting resource storage instances.
SearchStorageGetter represents a structure for getting search storage instances.
Storage is the struct that holds the necessary fields for interacting with the Elasticsearch cluster.