validator

package
v2.2.5 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TagExists    string = "exists"
	TagRequired  string = "required"
	TagExclusive string = "exclusive"

	TagRecursiveState string = "recursivestate"

	// States referenced by compensatedBy (as well as any other states that they transition to) must obey following rules:
	TagTransitionMainWorkflow       string = "transtionmainworkflow"         // They should not have any incoming transitions (should not be part of the main workflow control-flow logic)
	TagCompensatedbyEventState      string = "compensatedbyeventstate"       // They cannot be an event state
	TagRecursiveCompensation        string = "recursivecompensation"         // They cannot themselves set their compensatedBy property to true (compensation is not recursive)
	TagCompensatedby                string = "compensatedby"                 // They must define the usedForCompensation property and set it to true
	TagTransitionUseForCompensation string = "transitionusedforcompensation" // They can transition only to states which also have their usedForCompensation property and set to true
)
View Source
const (
	// TagISO8601Duration is the validate tag for iso8601 time duration format
	TagISO8601Duration = "iso8601duration"
)

Variables

This section is empty.

Functions

func GetValidator

func GetValidator() *validator.Validate

GetValidator gets the default validator.Validate reference

func ValidateGt0IntStr added in v2.2.4

func ValidateGt0IntStr(value *intstr.IntOrString) bool

func ValidateISO8601Datetime added in v2.2.5

func ValidateISO8601Datetime(s string) error

ValidateISO8601Datetime validate the string is iso8601 Datetime format

func ValidateISO8601TimeDuration added in v2.2.0

func ValidateISO8601TimeDuration(s string) error

ValidateISO8601TimeDuration validate the string is iso8601 duration format

func WorkflowError added in v2.2.4

func WorkflowError(err error) error

Types

type Kind added in v2.2.3

type Kind interface {
	KindValues() []string
	String() string
}

type WorkflowErrors added in v2.2.4

type WorkflowErrors []error

func (WorkflowErrors) Error added in v2.2.4

func (e WorkflowErrors) Error() string

Jump to

Keyboard shortcuts

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