Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JqCondition ¶
type JqCondition struct {
// contains filtered or unexported fields
}
func Equality ¶
func Equality(path string, value interface{}, opts ...Option) *JqCondition
Equality returns a new JqCondition that checks if the value at the given path resolves to the given value exactly.
func MustNew ¶
func MustNew(path string, opts ...Option) *JqCondition
MustNew returns a new JqCondition. It panics if the condition cannot be created.
func New ¶
func New(path string, opts ...Option) (*JqCondition, error)
New returns a new JqCondition.
func (*JqCondition) Description ¶
func (j *JqCondition) Description() string
Description implements condition.Condition.
func (*JqCondition) IsSatisfiedBy ¶
func (j *JqCondition) IsSatisfiedBy(c context.Context, resource interface{}) error
IsSatisfiedBy implements condition.Condition.
type Option ¶
type Option func(*JqCondition)
func WithCustomMatcher ¶
func WithCustomMatcher(matcher func(ctx context.Context, value, root interface{}, log logger.Logger) error) Option
WithCustomMatcher specifies the matcher to be used to match the jq result.
func WithDescription ¶
WithDescription specifies the description of the condition.
func WithLogger ¶
WithLogger specifies the logger to be used to log the jq operations.
Click to show internal directories.
Click to hide internal directories.