Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrorOpeningAzionFile = errors.New("Failed to open the azion.json file. The file doesn't exist, is corrupted, or has an invalid JSON format. Verify if the file format is JSON or fix its content according to the JSON format specification at https://www.json.org/json-en.html") 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") 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") ErrorParseArgs = errors.New("Failed to parse JSON args. Verify if the file's content has a valid JSON format") ErrorCreateFunction = errors.New("Failed to create Edge Function: %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") ErrorCreateApplication = errors.New("Failed to create the Edge Application: %s. Check your settings and try again. If the error persists, contact Azion support") ErrorUpdateApplication = errors.New("Failed to update the Edge Application: %s. Check your settings and try again. If the error persists, contact Azion support") ErrorCreateInstance = errors.New("Failed to create the Edge Function Instance: %s. Check your settings and try again. If the error persists, contact Azion support") ErrorCreateDomain = errors.New("Failed to create the Domain: %s. Check your settings and try again. If the error persists, contact Azion support") ErrorUpdateDomain = errors.New("Failed to update the Domain: %s. Check your settings and try again. If the error persists, contact Azion support") ErrorInvalidToken = errors.New("The configured token is invalid. You must create a new token and configure it to use with the CLI.") ErrorDeployRemote = errors.New("Failed to read the response from remote deploy process. Please verify if your deploy finished successfully, and update your azion.json file, if necessary.") ErrorUnableSDKConfig = "Unable to load SDK config, " ErrorOpenFile = "Failed to open file %s: %w" ErrorUploadFileBucket = "Failed to upload file to bucket %s: %w" ErrorGetFileInfo = "Failed to get file info for %s: %v" ErrorCreateZip = "Failed to create zip file %s: %w" ErrorAddFileZip = "Failed to add file to zip %s: %w" ErrorCloseFileZip = "Failed to close zip file %s: %w" ErrorZipNotExist = "Zip file %s does not exist" ErrorUploadZip = "Failed to upload zip file %s: %w" ErrorDelFileZip = "Deleting zip file %s: %v" ErrorRelPath = "Error determining relative path for %s: %v" ErrorResetPointFile = "Error resetting file pointer %s: %v" ErrorCopyContentFile = "Error copying contents of file %s to ZIP: %v" )
View Source
var ( // deploy cmd DeployUsage = "deploy" DeployShortDescription = "Deploys an Edge Application" DeployLongDescription = "Deploys an Edge Application" DeploySuccessful = "Your Edge Application was deployed successfully\n" DeployOutputDomainSuccess = "\nTo visualize your application access the Domain: %v\n" EdgeApplicationDeployDomainHint = "" /* 136-byte string literal not displayed */ DeployOutputCachePurge = "Domain cache was purged\n" DeployOutputEdgeFunctionCreate = "Created Edge Function %v with ID %v\n" DeployOutputEdgeFunctionUpdate = "Updated Edge Function %v with ID %v\n" DeployOutputCachePurgeUrl = "The file cache has been purged: '%s'\n" DeployOutputCachePurgeWildCard = "The url cache has been purged: '%s'\n" DeployOutputEdgeApplicationCreate = "Created Edge Application %v with ID %v\n" DeployOutputEdgeApplicationUpdate = "Updated Edge Application %v with ID %v\n" DeployOutputDomainCreate = "Created Domain %v with ID %v\n" DeployOutputDomainUpdate = "Updated Domain %v with ID %v\n" EdgeApplicationDeployPathFlag = "Path to where your static files are stored" EdgeApplicationDeployProjectConfFlag = "Relative path to where your custom azion.json and args.json files are stored" EdgeApplicationDeploySync = "Synchronizes the local azion.json file with remote resources" EdgeApplicationDeployLocal = "Runs the entire build and deploy process locally" EdgeApplicationDeployDryrun = "Simulates the deploy process without carrying out any actual action" EnvFlag = "Relative path to where your custom .env file is stored" OriginsSuccessful = "Created Origin for Edge Application\n" OriginsUpdateSuccessful = "Updated Origin for Edge Application %v with ID %v \n" CacheSettingsSuccessful = "Created Cache Settings for Edge Application\n" BucketSuccessful = "Created Bucket %s\n" RulesEngineSuccessful = "Created Rules Engine for Edge Application\n" DeployFlagHelp = "Displays more information about the deploy command" DeployFlagAuto = "If sent, the entire flow of the command will be run without interruptions" DeployFlagNoPrompt = "If sent, whenever the CLI would display an interactive prompt due to an error, it instead just returns the error" DeployFlagSkipBuild = "If sent, the build command will not be called during the deploy process" DeployPropagation = "Your application is being deployed to all Azion Edge Locations and it might take a few minutes.\n" UploadStart = "Uploading source files\n" UploadSuccessful = "\nUpload completed successfully!\n" BucketInUse = "This bucket's name is already in use, please try another one\n" AppInUse = "This Edge Application's name is already in use, please try another one\n" DomainInUse = "This domain's name is already in use, please try another one\n" FuncInUse = "This Edge Function's name is already in use, please try another one\n" FuncInstInUse = "This function instance's name is already in use, please try another one\n" AskInputName = "Type the new name:" ProjectNameMessage = "Using the same name as your project to create the bucket\n" AskCreateCacheSettings = `` /* 322-byte string literal not displayed */ SkipUpload = "Your project does not contain a '.edge/storage' folder. Skipping upload of static files" NameInUseBucket = "Bucket name is already in use. Trying to create bucket with the following name: %s\n" NameInUseApplication = "Edge Application name is already in use. Trying to create Edge Application with the following name: %s\n" NameInUseDomain = "Domain name is already in use. Trying to create Domain with the following name: %s\n" VisitMsg = "Please visit %s in case it did not open automatically, to follow up the full deploy process\n" )
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.