Documentation ¶
Index ¶
- Constants
- func ListFromModel(filter []*models.Configv1LabelFilter, kvDelimiter string) []string
- func ListToModel(filter []string, kvDelimiter string) ([]*models.Configv1LabelFilter, error)
- func StringFromModel(filter []*models.Configv1LabelFilter, kvDelimiter string) string
- func StringToModel(filter string, kvDelimiter string) ([]*models.Configv1LabelFilter, error)
Constants ¶
View Source
const ( DropRuleDelimiter = "=" MappingRuleDelimiter = ":" RollupRuleDelimiter = ":" ResourcePoolsDelimiter = ":" )
Variables ¶
This section is empty.
Functions ¶
func ListFromModel ¶
func ListFromModel( filter []*models.Configv1LabelFilter, kvDelimiter string, ) []string
ListFromModel converts an API model to a filter list.
func ListToModel ¶
func ListToModel( filter []string, kvDelimiter string, ) ([]*models.Configv1LabelFilter, error)
ListToModel converts a filter list to an API model.
func StringFromModel ¶
func StringFromModel( filter []*models.Configv1LabelFilter, kvDelimiter string, ) string
StringFromModel converts an API model to a filter string.
func StringToModel ¶
func StringToModel( filter string, kvDelimiter string, ) ([]*models.Configv1LabelFilter, error)
StringToModel converts a filter string to an API model.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.