Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddFilterAttributes ¶
AddFilterAttributes adds filter attributes to your resource for all bool, int, string and map[string]string attributes in the supplied schema. In combination with CreateFilters you may use this to create aggregate data sources with filtering functionality.
func CheckForMatch ¶
func CheckForMatch(data map[string]interface{}, filters []FilterFunc) bool
CheckForMatch returns true if all filters match on the given data.
func GetFilteredFields ¶ added in v0.53.2
Types ¶
type FilterFunc ¶
func CreateFilters ¶
func CreateFilters(ctx context.Context, d *schema.ResourceData, s map[string]*schema.Schema) ([]FilterFunc, error)
CreateFilters accepts a schema for a data source and creates a filter.FilterFunc for each attribute of type bool, int, string or map[string]string. Use these filters to create aggregate data sources like lists.
Click to show internal directories.
Click to hide internal directories.