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.") 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") ErrorMandatoryCreateFlags = errors.New("Required flags are missing. You must provide the --application-id and --phase flags when the --application-id and --in flags are not provided. Run the command 'azion <command> <subcommand> --help' to display more information and try again.") ErrorConvertIdApplication = 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") )
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 Edge Applications" FlagEdgeApplicationID = "Unique identifier for an Edge Application" FlagName = "The rule name" 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 Edge 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:" )
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.