validator

package
v1.0.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 19, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RuleEnv

type RuleEnv struct {
	provider.ListItem
	Now func() time.Time
}

type RuleValidatior

type RuleValidatior struct {
	// contains filtered or unexported fields
}

func NewRuleValidatior

func NewRuleValidatior(logger *zerolog.Logger) *RuleValidatior

func (*RuleValidatior) InitRules

func (v *RuleValidatior) InitRules(config provider.ListConfig) error

func (*RuleValidatior) IsItemApproved

func (v *RuleValidatior) IsItemApproved(item *provider.ListItem) bool

func (*RuleValidatior) IsItemForRevision

func (v *RuleValidatior) IsItemForRevision(item *provider.ListItem) bool

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL