Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JpCondition ¶
type JpCondition struct {
// contains filtered or unexported fields
}
func MustNew ¶
func MustNew(path string, opts ...Option) *JpCondition
MustNew returns a new JqCondition. It panics if the condition cannot be created.
func New ¶
func New(path string, opts ...Option) (*JpCondition, error)
New returns a new JqCondition.
func (*JpCondition) Description ¶
func (j *JpCondition) Description() string
Description implements types.Condition.
func (*JpCondition) IsSatisfiedBy ¶
func (j *JpCondition) IsSatisfiedBy(c context.Context, resource interface{}) error
IsSatisfiedBy implements condition.Condition.
type Option ¶
type Option func(*JpCondition)
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 jsonpath result.
func WithDescription ¶
WithDescription sets the description of the condition.
func WithLogger ¶
WithLogger specifies the logger to be used to log the jsonpath operations.
Click to show internal directories.
Click to hide internal directories.