Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MultiValuedFilterAttributes ¶
func MultiValuedFilterAttributes(attr schema.CoreAttribute) schema.Attributes
MultiValuedFilterAttributes returns the attributes of the given attribute on which can be filtered. In the case of a complex attribute, the sub-attributes get returned. Otherwise if the given attribute is not complex, a "value" sub- attribute gets created to filter against.
Types ¶
type PathValidator ¶
type PathValidator struct {
// contains filtered or unexported fields
}
PathValidator represents a path validator.
func NewPathValidator ¶
func NewPathValidator(pathFilter string, s schema.Schema, exts ...schema.Schema) (PathValidator, error)
NewPathValidator constructs a new path validator.
func (PathValidator) Path ¶
func (v PathValidator) Path() filter.Path
func (PathValidator) Validate ¶
func (v PathValidator) Validate() error
Validate checks whether the path is a valid path within the given reference schemas.
type Validator ¶
type Validator struct {
// contains filtered or unexported fields
}
Validator represents a filter validator.
func NewFilterValidator ¶
NewFilterValidator constructs a new filter validator.
func NewValidator ¶
NewValidator constructs a new filter validator.
func (Validator) GetFilter ¶
func (v Validator) GetFilter() filter.Expression
GetFilter returns the filter contained within the validator.
func (Validator) PassesFilter ¶
PassesFilter checks whether given resources passes the filter.