Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrorUpdate = errors.New("Failed to update the rule in Rules Engine: %s. Check your settings and try again. If the error persists, contact Azion support") 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") ErrorConvertApplicationID = errors.New("The application ID you provided is invalid. The value must be an integer. You may run the 'azion list edge-application' command to check your application ID") ErrorConvertRulesID = errors.New("The Rules Engine ID you provided is invalid. The value must be an integer. You can run the 'azion list rules-engine' command to check your ID.") )
View Source
var ( Usage = "rules-engine" ShortDescription = "Updates a rule in Rules Engine" LongDescription = "Updates a rule in Rules Engine based on given attributes to be used in Edge Applications" OutputSuccess = "Updated Rules Engine with ID %d" RulesEnginePhase = "Rules Engine Phase <request|response>. The '--phase' flag is required" FlagApplicationID = "Unique identifier for the Edge Application that implements these rules. The '--application-id' flag is required" FlagRulesEngineID = "Unique identifier for a rule in Rules Engine. The '--rule-id' flag is required" FlagFile = "Path to a JSON file containing the attributes of the rule that will be updated; you can use - for reading from stdin" FlagHelp = "Displays more information about the Rules Engine command" AskInputApplicationID = "Enter the ID of the Edge Application the Rules Engine will be connected to:" AskInputRulesID = "Enter the ID of the Rules Engine you wish to update:" AskInputPhase = "Enter the phase of your Rules Engine (request/response):" AskInputPathFile = "Enter the path of the json to update the Rules Engine:" )
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.