Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrorActiveFlag = errors.New("Invalid --active flag provided. The flag must have 'true' or 'false' values. Run the command again using the --help flag to display more information and try again") ErrorCodeFlag = errors.New("Failed to read the code file. Verify if the file name and its path are correct and the file content has a valid code format. Run the command again using the --help flag to display more information and try again") ErrorArgsFlag = errors.New("Failed to read the args file. Verify if the file name and its path are correct and the file's content has a valid JSON format. Run the command again using the --help flag to display more information and try again") ErrorParseArgs = errors.New("Failed to parse JSON args. Verify if the file's content has a valid JSON format. Run the command again using the --help flag to display more information and try again") ErrorCreateFunction = errors.New("Failed to create function: %s. Check your settings and try again. If the error persists, contact Azion support") ErrorFailToDeleteFunction = errors.New("Failed to delete the Edge Function: %s. Check your settings and try again. If the error persists, contact Azion support") ErrorGetFunction = errors.New("Failed to get the Edge Function: %s. Check your settings and try again. If the error persists, contact Azion support") ErrorGetFunctions = errors.New("Failed to list the Edge Functions: %s. Check your settings and try again. If the error persists, contact Azion support") ErrorUpdateFunction = errors.New("Failed to update the Edge Function: %s. Check your settings and try again. If the error persists, contact Azion support") ErrorConvertIdFunction = errors.New("The function ID you provided is invalid. The value must be an integer. You may run the 'azion list function' command to check your function ID") )
Used by both the v3 and the v4 command trees.
View Source
var ( //create cmd CreateShortDescription = "Creates a new serverless function" CreateLongDescription = "Creates a function based on given attributes to create a serverless code for Applications" CreateOutputSuccess = "Created function with ID %d" //delete cmd DeleteShortDescription = "Deletes a function" DeleteLongDescription = "Removes a function from the functions library based on its given ID" DeleteOutputSuccess = "Function %d was successfully deleted" DeleteHelpFlag = "Displays more information about the delete function command" //describe cmd DescribeShortDescription = "Returns the function data" DescribeLongDescription = "Displays information about the function via a given ID to show the function’s attributes in detail" DescribeFlagWithCode = "Displays the function's code; disabled by default" DescribeHelpFlag = "Displays more information about the describe function command" //list cmd ListShortDescription = "Displays your account's functions" ListLongDescription = "Displays all functions in the user account’s functions library" ListHelpFlag = "Displays more information about the list function command" //update cmd UpdateShortDescription = "Updates a function" UpdateLongDescription = "Modifies a function based on its ID to update its name, activity status, code path, and other attributes" UpdateFlagName = "The function's name" UpdateFlagCode = "Path and name to the file containing the function's code" UpdateFlagActive = "Whether the function should be active or not" UpdateFlagArgs = "Path and name of the JSON file containing the function's arguments" UpdateFlagFile = "Given path and JSON file to automatically update the function attributes; you can use - for reading from stdin" UpdateOutputSuccess = "Updated function with ID %d" UpdateHelpFlag = "Displays more information about the update function command" UpdateAskFunctionID = "Enter the ID of the function you wish to update:" // flags FlagID = "Unique identifier of the function" FlagName = "The function's name" FlagCode = "Path to the function's code" FlagActive = "Whether the function is active or not" FlagArgs = "Path to the function's arguments JSON file" FlagIn = "Given file path to create a function; you can use - for reading from stdin" CreateFlagHelp = "Displays more information about the create function command" // ask AskName = "Enter the new function's name:" AskCode = "Enter the file path of the function's source code:" AskActive = "Select whether the function is active or not" AskFunctionID = "Enter the function's ID:" )
Used by both the v3 and the v4 command trees.
View Source
var ( // general Usage = "function" FlagExecutionEnvironment = "Either 'edge_application' or 'edge_firewall'" )
Used only by the v4 command tree.
View Source
var (
ErrorConvertFunctionId = errors.New("Invalid --function-id flag provided. The value must be an integer. Run the command 'azion delete function --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.
Click to show internal directories.
Click to hide internal directories.