rules_engine

package
v0.0.0-...-67d043f Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2026 License: MIT Imports: 1 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrorCreateRulesEngine    = errors.New("Failed to create the rule in Rules Engine: %s. Check your settings and try again. If the error persists, contact Azion support.")
	ErrorConvertApplicationId = errors.New("Invalid --application-id flag provided. The value must be an integer. Run the command 'azion create rules-engine --help' to display more information and try again")
)

Used by both the v3 and the v4 command trees.

View Source
var (
	ErrorNameEmpty          = errors.New("The name field shouldn't be empty")
	ErrorConditionalEmpty   = errors.New("The conditional field shouldn't be empty")
	ErrorVariableEmpty      = errors.New("The variable field shouldn't be empty")
	ErrorOperatorEmpty      = errors.New("The operator field shouldn't be empty")
	ErrorInputValueEmpty    = errors.New("The input value field shouldn't be empty")
	ErrorNameBehaviorsEmpty = errors.New("The behavior name field cannot be empty")
	ErrorStructCriteriaNil  = errors.New("You must inform a criteria")
	ErrorStructBehaviorsNil = errors.New("You must inform a behavior")
)

Used only by the v3 command tree (bug-fix-only; see doc/plan.md).

View Source
var (
	Usage                 = "rules-engine"
	ShortDescription      = "Creates a rule in Rules Engine"
	LongDescription       = "Creates a rule in Rules Engine based on given attributes to be used in Applications"
	FlagEdgeApplicationID = "Unique identifier for an Application"
	FlagPhase             = "The phase is either 'request' or 'response'"
	FlagFile              = "Path to a JSON file containing the attributes of the rule that will be created; you can use - for reading from stdin"
	OutputSuccess         = "Created Rules Engine with ID %d"
	HelpFlag              = "Displays more information about the azion create rules-engine subcommand"
	AskInputApplicationId = "Enter the ID of the Application that the Rules Engine will be connected to:"
	AskInputPhase         = "Enter the new Rule Engine's phase (request/response):"
	AskInputPathFile      = "Enter the path of the json to create the Rules Engine:"
)

Used by both the v3 and the v4 command trees.

View Source
var (
	ErrorInvalidPhase = errors.New("Invalid phase value provided. The value must be 'request' or 'response'. Run the command 'azion create rules-engine --help' to display more information and try again")
)

Used only by the v4 command tree.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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