Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deploy to Production - 2022/2/16 #303

Merged
merged 68 commits into from
Feb 16, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
68 commits
Select commit Hold shift + click to select a range
06b2ed4
feat: list origins
maxwelbm Feb 6, 2023
c906d25
feat: add command origins on root
maxwelbm Feb 6, 2023
c821e82
feat: add messages reference on command origins
maxwelbm Feb 6, 2023
176663c
feat: unit test added to origin list Messages updated, tagSort test u…
maxwelbm Feb 6, 2023
bf7b2b2
fix: set return of unchecked error, accused by lint
maxwelbm Feb 6, 2023
b25bc13
ref: remove comment
maxwelbm Feb 7, 2023
71f9f91
feat: get origin by id
maxwelbm Feb 7, 2023
3025082
Merge pull request #284 from aziontech/feat-origins-list
maxwelbm Feb 7, 2023
ebc327d
feat: add version id to contract
PatrickMenoti Feb 7, 2023
952fc45
Merge pull request #286 from aziontech/versionid-add
PatrickMenoti Feb 7, 2023
f8bf930
feat: origins describe, trying to make the format modular, first impl…
maxwelbm Feb 7, 2023
5c6937a
fix: update package
maxwelbm Feb 8, 2023
e35c8d4
ref: ref func Describe
maxwelbm Feb 8, 2023
3f29771
ref: simplifying the format
maxwelbm Feb 8, 2023
c539e5a
ref: adjusting for GetByteFormat()
maxwelbm Feb 8, 2023
9c09dbc
feat: add test unit to origins describe
maxwelbm Feb 8, 2023
c3ca4d4
Merge branch 'feat-origins-describe' into feat-origins-created
maxwelbm Feb 8, 2023
75d6f0c
feat: get version-id during build command
PatrickMenoti Feb 9, 2023
06661a8
chore: add storage-api urls to production deploy
PatrickMenoti Feb 9, 2023
0e70f89
fix: remove unnused variables
PatrickMenoti Feb 9, 2023
377ae3f
feat: command create complete
maxwelbm Feb 9, 2023
83d66b7
feat: add test unit and messages
maxwelbm Feb 9, 2023
eb38d9d
ref: remove comment
maxwelbm Feb 9, 2023
1a74273
Merge pull request #287 from aziontech/feat-origins-describe
maxwelbm Feb 10, 2023
18b2c67
Merge branch 'dev' into versionid-build-cmd
PatrickMenoti Feb 10, 2023
88ad5db
Merge pull request #288 from aziontech/versionid-build-cmd
PatrickMenoti Feb 10, 2023
7cc2a22
Merge pull request #289 from aziontech/feat-origins-created
maxwelbm Feb 10, 2023
2224b38
fix: remove https from storage_api url
PatrickMenoti Feb 10, 2023
8580430
Merge pull request #291 from aziontech/fix-url
PatrickMenoti Feb 10, 2023
828621d
debug
PatrickMenoti Feb 10, 2023
cac2b21
debug
PatrickMenoti Feb 10, 2023
99bb3f4
debug
PatrickMenoti Feb 10, 2023
fd7ef07
debug
PatrickMenoti Feb 10, 2023
cd35c0b
Merge pull request #292 from aziontech/test-debug
PatrickMenoti Feb 10, 2023
f822aec
debug
PatrickMenoti Feb 10, 2023
5e2e5f9
Merge pull request #293 from aziontech/test-debug
PatrickMenoti Feb 10, 2023
7c0adca
debug
PatrickMenoti Feb 10, 2023
40d370e
Merge pull request #294 from aziontech/debugging-test
PatrickMenoti Feb 10, 2023
118d320
debug
PatrickMenoti Feb 10, 2023
bdd5fdd
refactor: improve errors and flag messages for origins
gabriel-azion Feb 10, 2023
4fef591
Merge pull request #295 from aziontech/debugging-test
PatrickMenoti Feb 10, 2023
9c578a8
fix: remove debugging commands
PatrickMenoti Feb 10, 2023
f35e977
chore: add application_id verification
PatrickMenoti Feb 10, 2023
206e453
Merge pull request #296 from aziontech/remove-debug
PatrickMenoti Feb 13, 2023
8615978
docs: review messages and errors related to the origins command
gabriel-azion Feb 13, 2023
108fe81
docs : grammar
gabriel-azion Feb 13, 2023
df0a4e9
Merge branch 'dev' into ENG-24098-create-origins-messages-errors
gabriel-azion Feb 13, 2023
4c2bf7a
feat: command update created
maxwelbm Feb 13, 2023
c8583a4
feat: command delete created and test unit
maxwelbm Feb 13, 2023
e68fabf
fix: changed field origin-id to origin-key
maxwelbm Feb 13, 2023
7bf6af6
feat: added unit test for command update
maxwelbm Feb 13, 2023
f3800ef
feat: added unit test for command update
maxwelbm Feb 13, 2023
967f780
ref: remove cascade hint which is not applied in origins
maxwelbm Feb 14, 2023
9415ea6
ref: Updated http put method for patch
maxwelbm Feb 14, 2023
7a4bf3a
Merge pull request #299 from aziontech/feat-origins-delete
maxwelbm Feb 15, 2023
fcc8598
Merge branch 'dev' into feat-origins-updated
maxwelbm Feb 15, 2023
43b136d
Merge pull request #298 from aziontech/feat-origins-updated
maxwelbm Feb 15, 2023
7fe779b
fix: msg deleted in merge conflict
maxwelbm Feb 15, 2023
2f493bc
Merge pull request #300 from aziontech/fix-add-varmsg
maxwelbm Feb 15, 2023
f50a017
Merge branch 'dev' into ENG-24098-create-origins-messages-errors
gabriel-azion Feb 15, 2023
7c01dcd
docs: add space
gabriel-azion Feb 15, 2023
768fff4
docs : add full stop
gabriel-azion Feb 15, 2023
1a7c252
docs: standardize required over mandatory
gabriel-azion Feb 15, 2023
d060501
fix: add missins %s origins err
gabriel-azion Feb 15, 2023
a0cb291
docs : origins path message
gabriel-azion Feb 16, 2023
8ddf784
Merge pull request #301 from aziontech/ENG-24098-create-origins-messa…
gabriel-azion Feb 16, 2023
70a1126
chore: update SDK version
PatrickMenoti Feb 16, 2023
1f0bbb9
Merge pull request #302 from aziontech/update-sdk-version
PatrickMenoti Feb 16, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .github/workflows/deploy_prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,13 @@ jobs:
run: git fetch --tags

- name: Build
env:
STORAGE_API: ${{ secrets.STORAGE_API_STAGE }}
run: make build ENVFILE=./env/prod

- name: Cross-build
env:
STORAGE_API: ${{ secrets.STORAGE_API_STAGE }}
run: make cross-build ENVFILE=./env/prod

- name: Install AWS CLI
Expand Down Expand Up @@ -76,5 +80,6 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.RELEASE_GITHUB_TOKEN }}
API_URL: https://api.azionapi.net
STORAGE_URL: ${{ secrets.STORAGE_API_STAGE }}
AUTH_URL: https://sso.azion.com/api/user/me
TEMPLATE_BRANCH: main
2 changes: 2 additions & 0 deletions .github/workflows/deploy_stage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,14 @@ jobs:
env:
AZION_API: ${{ secrets.AZION_API_STAGE }}
AZION_SSO: ${{ secrets.AZION_SSO_STAGE }}
STORAGE_API: ${{ secrets.STORAGE_API_STAGE }}
run: make build ENVFILE=./env/stage

- name: Cross-build
env:
AZION_API: ${{ secrets.AZION_API_STAGE }}
AZION_SSO: ${{ secrets.AZION_SSO_STAGE }}
STORAGE_API: ${{ secrets.STORAGE_API_STAGE }}
run: make cross-build ENVFILE=./env/stage

- name: Install AWS CLI
Expand Down
1 change: 1 addition & 0 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ builds:
- -X github.com/aziontech/azion-cli/pkg/cmd/version.BinVersion={{ .Env.BIN_VERSION }}
- -X github.com/aziontech/azion-cli/pkg/constants.AuthURL={{ .Env.AUTH_URL }}
- -X github.com/aziontech/azion-cli/pkg/constants.ApiURL={{ .Env.API_URL }}
- -X github.com/aziontech/azion-cli/pkg/constants.StorageApiURL={{ .Env.STORAGE_URL }}
- -X github.com/aziontech/azion-cli/pkg/pkg/cmd/edge_applications/init.TemplateBranch={{ .Env.TEMPLATE_BRANCH }}
binary: azioncli
goos:
Expand Down
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ BIN := azioncli
BIN_VERSION=$(shell git describe --tags)
# The variables with $$ should be sourced from an envfile
LDFLAGS=-X github.com/aziontech/azion-cli/pkg/cmd/version.BinVersion=$(BIN_VERSION) \
-X github.com/aziontech/azion-cli/pkg/constants.StorageApiURL=$$STORAGE_URL \
-X github.com/aziontech/azion-cli/pkg/constants.AuthURL=$$AUTH_URL \
-X github.com/aziontech/azion-cli/pkg/constants.ApiURL=$$API_URL \
-X github.com/aziontech/azion-cli/pkg/cmd/edge_applications/init.TemplateBranch=$$TEMPLATE_BRANCH \
Expand Down
1 change: 1 addition & 0 deletions env/prod
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
API_URL=https://api.azionapi.net
AUTH_URL=https://sso.azion.com/api/user/me
STORAGE_URL=${STORAGE_API}
TEMPLATE_BRANCH=main
TEMPLATE_MAJOR=0
3 changes: 2 additions & 1 deletion env/stage
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
API_URL=https://${AZION_API}
AUTH_URL=https://${AZION_SSO}/api/user/me
STORAGE_URL=https://${STORAGE_API}
TEMPLATE_BRANCH=dev
TEMPLATE_MAJOR=0
TEMPLATE_MAJOR=0
5 changes: 3 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ module github.com/aziontech/azion-cli
go 1.17

require (
github.com/MaxwelMazur/tablecli v0.0.0-20230111205821-634576290228
github.com/aziontech/azionapi-go-sdk v0.20.0
github.com/MaxwelMazur/tablecli v0.0.0-20230208145104-c9458b902b58
github.com/aziontech/azionapi-go-sdk v0.23.0
github.com/fatih/color v1.13.0
github.com/go-git/go-git/v5 v5.4.2
github.com/spf13/cobra v1.6.1
Expand Down Expand Up @@ -52,6 +52,7 @@ require (
github.com/spf13/afero v1.9.2 // indirect
github.com/spf13/cast v1.5.0 // indirect
github.com/spf13/jwalterweatherman v1.1.0 // indirect
github.com/stretchr/objx v0.5.0 // indirect
github.com/subosito/gotenv v1.4.1 // indirect
github.com/tidwall/match v1.1.1 // indirect
github.com/tidwall/pretty v1.2.0 // indirect
Expand Down
11 changes: 7 additions & 4 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -186,8 +186,8 @@ github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802/go.mod h1:IVnqGOEym
github.com/DataDog/datadog-go v3.2.0+incompatible/go.mod h1:LButxg5PwREeZtORoXG3tL4fMGNddJ+vMq1mwgfaqoQ=
github.com/MakeNowJust/heredoc v1.0.0 h1:cXCdzVdstXyiTqTvfqk9SDHpKNjxuom+DOlyEeQ4pzQ=
github.com/MakeNowJust/heredoc v1.0.0/go.mod h1:mG5amYoWBHf8vpLOuehzbGGw0EHxpZZ6lCpQ4fNJ8LE=
github.com/MaxwelMazur/tablecli v0.0.0-20230111205821-634576290228 h1:0v/h/69n72chjEeAWInSZ+0+WVGff/e/HK71DxcZPOo=
github.com/MaxwelMazur/tablecli v0.0.0-20230111205821-634576290228/go.mod h1:XTbnIbjcCDbZenA2rqSIQK9aa4MSL//Wt/b04tgdCO4=
github.com/MaxwelMazur/tablecli v0.0.0-20230208145104-c9458b902b58 h1:bqFhGlAuzkZzX+2P6fwKhg4PECvXF7Lr8V6g2iDrG0s=
github.com/MaxwelMazur/tablecli v0.0.0-20230208145104-c9458b902b58/go.mod h1:eepQZpVhQN9tZIbJ+/nLb+Gi/vUAjzQsB0eLhfnB5gk=
github.com/Microsoft/go-winio v0.4.14/go.mod h1:qXqCSQ3Xa7+6tgxaGTIe4Kpcdsi+P8jBhyzoq1bpyYA=
github.com/Microsoft/go-winio v0.4.16 h1:FtSW/jqD+l4ba5iPBj9CODVtgfYAD8w2wS923g/cFDk=
github.com/Microsoft/go-winio v0.4.16/go.mod h1:XB6nPKklQyQ7GC9LdcBEcBl8PF76WugXOPRXwdLnMv0=
Expand All @@ -212,8 +212,8 @@ github.com/armon/go-radix v0.0.0-20180808171621-7fddfc383310/go.mod h1:ufUuZ+zHj
github.com/armon/go-radix v1.0.0/go.mod h1:ufUuZ+zHj4x4TnLV4JWEpy2hxWSpsRywHrMgIH9cCH8=
github.com/armon/go-socks5 v0.0.0-20160902184237-e75332964ef5 h1:0CwZNZbxp69SHPdPJAN/hZIm0C4OItdklCFmMRWYpio=
github.com/armon/go-socks5 v0.0.0-20160902184237-e75332964ef5/go.mod h1:wHh0iHkYZB8zMSxRWpUBQtwG5a7fFgvEO+odwuTv2gs=
github.com/aziontech/azionapi-go-sdk v0.20.0 h1:a4hYtDlYMehwDBNGKaSgTFnKG9NNyjyE37HIsjlmGc8=
github.com/aziontech/azionapi-go-sdk v0.20.0/go.mod h1:2caFKH52viwZI346MWCGDZzU0jGll6udJZZMDJNrWgg=
github.com/aziontech/azionapi-go-sdk v0.23.0 h1:hVRgXSAwmX5MSx2Mhjpd1ifuL34zZAZLvFBSmEDLKz0=
github.com/aziontech/azionapi-go-sdk v0.23.0/go.mod h1:wL7eJYyE2qU853U2iKnQuFHoY69N5WwGnQJwySsdtX0=
github.com/benbjohnson/clock v1.1.0/go.mod h1:J11/hYXuz8f4ySSvYwY0FKfm+ezbsZBKZxNJlLklBHA=
github.com/beorn7/perks v0.0.0-20180321164747-3a771d992973/go.mod h1:Dwedo/Wpr24TaqPxmxbtue+5NUziq4I4S80YR8gNf3Q=
github.com/beorn7/perks v1.0.0/go.mod h1:KWe93zE9D1o94FZ5RNwFwVgaQK1VOXiVxmqh+CedLV8=
Expand Down Expand Up @@ -471,6 +471,7 @@ github.com/mattn/go-isatty v0.0.11/go.mod h1:PhnuNfih5lzO57/f3n+odYbM4JtupLOxQOA
github.com/mattn/go-isatty v0.0.12/go.mod h1:cbi8OIDigv2wuxKPP5vlRcQ1OAZbq2CE4Kysco4FUpU=
github.com/mattn/go-isatty v0.0.14 h1:yVuAays6BHfxijgZPzw+3Zlu5yQgKGP2/hcQbHb7S9Y=
github.com/mattn/go-isatty v0.0.14/go.mod h1:7GGIvUiUoEMVVmxf/4nioHXj79iQHKdU27kJ6hsGG94=
github.com/mattn/go-runewidth v0.0.14/go.mod h1:Jdepj2loyihRzMpdS35Xk/zdY8IAYHsh153qUoGf23w=
github.com/matttproud/golang_protobuf_extensions v1.0.1/go.mod h1:D8He9yQNgCq6Z5Ld7szi9bcBfOoFv/3dc6xSMkL2PC0=
github.com/miekg/dns v1.1.26/go.mod h1:bPDLeHnStXmXAq1m/Ch/hvfNHr14JKNPMBo3VZKjuso=
github.com/miekg/dns v1.1.41/go.mod h1:p6aan82bvRIyn+zDIv9xYNUpwa73JcSh9BKwknJysuI=
Expand Down Expand Up @@ -524,6 +525,7 @@ github.com/prometheus/procfs v0.0.2/go.mod h1:TjEm7ze935MbeOT/UhFTIMYKhuLP4wbCsT
github.com/prometheus/procfs v0.0.8/go.mod h1:7Qr8sr6344vo1JqZ6HhLceV9o3AJ1Ff+GxbHq6oeK9A=
github.com/prometheus/procfs v0.1.3/go.mod h1:lV6e/gmhEcM9IjHGsFOCxxuZ+z1YqCvr4OA4YeYWdaU=
github.com/prometheus/procfs v0.6.0/go.mod h1:cz+aTbrPOrUb4q7XlbU9ygM+/jj0fzG6c1xBZuNvfVA=
github.com/rivo/uniseg v0.2.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc=
github.com/rogpeppe/fastuuid v1.2.0/go.mod h1:jVj6XXZzXRy/MSR5jhDC/2q6DgLz+nrA6LYCDYWNEvQ=
github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4=
github.com/rogpeppe/go-internal v1.6.1 h1:/FiVV8dS/e+YqF2JvO3yXRFbBLTIuSDkuC7aBOAvL+k=
Expand Down Expand Up @@ -556,6 +558,7 @@ github.com/spf13/viper v1.14.0/go.mod h1:WT//axPky3FdvXHzGw33dNdXXXfFQqmEalje+eg
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
github.com/stretchr/objx v0.1.1/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw=
github.com/stretchr/objx v0.5.0 h1:1zr/of2m5FGMsad5YfcqgdqdWrIhu+EBEJRhR1U7z/c=
github.com/stretchr/objx v0.5.0/go.mod h1:Yh+to48EsGEfYuaHDzXPcE3xhTkx73EhmCGUpEOglKo=
github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs=
github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI=
Expand Down
2 changes: 2 additions & 0 deletions messages/edge_applications/errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,4 +63,6 @@ var (
ErrorMissingApplicationIdJson = errors.New("Application ID is missing from azion.json. Please initialize and publish your project first before using cascade delete")
ErrorMissingAzionJson = errors.New("Azion.json file is missing. Please initialize and publish your project first before using cascade delete")
ErrorFailedUpdateAzionJson = errors.New("Failed to update azion.json file to remove IDs of deleted resource")

ErrorGetVersionId = errors.New("Failed to get Version Id: %s")
)
26 changes: 13 additions & 13 deletions messages/edge_applications/messages.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,18 @@ var (

//edge_applications cmd
EdgeApplicationsUsage = "edge_applications"
EdgeApplicationsShortDescription = "Creates Web Applications on Azion's platform"
EdgeApplicationsLongDescription = "Build your Web applications in minutes without the need to manage infrastructure or security"
EdgeApplicationsShortDescription = "Creates Edge Applications on Azion's platform"
EdgeApplicationsLongDescription = "Build your Edge applications in minutes without the need to manage infrastructure or security"
EdgeApplicationsFlagHelp = "Displays more information about the edge_application command"
EdgeApplicationsAutoDetectec = "Auto-detected Project Settings (%s)\n"

//build cmd
EdgeApplicationsBuildUsage = "build [flags]"
EdgeApplicationsBuildShortDescription = "Builds a Web Application"
EdgeApplicationsBuildLongDescription = "Builds your Web Application to run on Azion’s Edge Computing Platform"
EdgeApplicationsBuildShortDescription = "Builds an Edge Application"
EdgeApplicationsBuildLongDescription = "Builds your Edge Application to run on Azion’s Edge Computing Platform"
EdgeApplicationsBuildRunningCmd = "Running build step command:\n\n"
EdgeApplicationsBuildStart = "Building your Web Application\n"
EdgeApplicationsBuildSuccessful = "Your Web Application was built successfully\n"
EdgeApplicationsBuildStart = "Building your Edge Application\n"
EdgeApplicationsBuildSuccessful = "Your Edge Application was built successfully\n"
EdgeApplicationsBuildFlagHelp = "Displays more information about the build subcommand"
EdgeApplicationsBuildCdn = "Skipping build step. Build isn't applied to the type 'CDN'"

Expand All @@ -30,11 +30,11 @@ var (
javascript Create a serverless Javascript application on edge.
flareact Create a serverless Flareact application on edge.
nextjs Create a serverless NextJS edge-runtime application on edge.`
EdgeApplicationsInitShortDescription = "Initializes a Web Application"
EdgeApplicationsInitLongDescription = "Defines primary parameters based on a given name and application type to start a Web Application on Azion’s platform"
EdgeApplicationsInitShortDescription = "Initializes an Edge Application"
EdgeApplicationsInitLongDescription = "Defines primary parameters based on a given name and application type to start a Edge Application on Azion’s platform"
EdgeApplicationsInitRunningCmd = "Running init step command:\n\n"
EdgeApplicationsInitFlagName = "The Web application's name"
EdgeApplicationsInitFlagType = "The type of Web application <javascript | flareact | nextjs>"
EdgeApplicationsInitFlagName = "The Edge application's name"
EdgeApplicationsInitFlagType = "The type of Edge application <javascript | flareact | nextjs>"
EdgeApplicationsInitFlagYes = "Forces the automatic response 'yes' to all user input"
EdgeApplicationsInitFlagNo = "Forces the automatic response 'no' to all user input"
WebAppInitContentOverridden = "This project was already configured. Do you want to override the previous configuration? <yes | no> (default: no) "
Expand All @@ -47,10 +47,10 @@ var (

//publish cmd
EdgeApplicationsPublishUsage = "publish"
EdgeApplicationsPublishShortDescription = "Publishes a Web Application on the Azion platform"
EdgeApplicationsPublishLongDescription = "Publishes a Web Application based on the Azion’s Platform"
EdgeApplicationsPublishShortDescription = "Publishes an Edge Application on the Azion platform"
EdgeApplicationsPublishLongDescription = "Publishes an Edge Application based on the Azion’s Platform"
EdgeApplicationsPublishRunningCmd = "Running pre publish command:\n\n"
EdgeApplicationsPublishSuccessful = "Your Web Application was published successfully\n"
EdgeApplicationsPublishSuccessful = "Your Edge Application was published successfully\n"
EdgeApplicationsCdnPublishSuccessful = "Your CDN Edge Application was published successfully\n"
EdgeApplicationsPublishOutputDomainSuccess = "\nTo visualize your application access the domain: %s\n"
EdgeApplicationsPublishOutputCachePurge = "Domain cache was purged\n"
Expand Down
17 changes: 17 additions & 0 deletions messages/origins/errors.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
package origins

import "errors"

var (
ErrorGetOrigins = errors.New("Failed to describe the origins: %s. Check your settings and try again. If the error persists, contact Azion support.")
ErrorGetOrigin = errors.New("Failed to describe the origin. Check your settings and try again. If the error persists, contact Azion support.")
ErrorMissingApplicationIDArgument = errors.New("A required flag is missing. You must supply application-id as an argument. Run 'azioncli <command> <subcommand> --help' command to display more information and try again")
ErrorMissingArguments = errors.New("Required flags are missing. You must supply application-id and origin-id as arguments. Run 'azioncli <command> <subcommand> --help' command to display more information and try again")
ErrorMissingArgumentsDelete = errors.New("Required flags are missing. You must supply application-id and origin-key as arguments. Run 'azioncli <command> <subcommand> --help' command to display more information and try again")
ErrorMandatoryCreateFlags = errors.New("Required flags are missing. You must provide application-id, name, addresses and host-header flags when the --application-id and --in flag are not provided. Run the command 'azioncli <command> <subcommand> --help' to display more information and try again.")
ErrorMandatoryUpdateFlags = errors.New("Required flags are missing. You must provide application-id and origin-id flags when the --application-id and --in flag are not provided. Run the command 'azioncli <command> <subcommand> --help' to display more information and try again.")
ErrorHmacAuthenticationFlag = errors.New("Invalid --hmac-authentication flag provided. The flag must have 'true' or 'false' values. Run the command 'azioncli <command> <subcommand> --help' to display more information and try again.")
ErrorCreateOrigin = errors.New("Failed to create the Origin: %s. Check your settings and try again. If the error persists, contact Azion support.")
ErrorUpdateOrigin = errors.New("Failed to update the Origin: %s. Check your settings and try again. If the error persists, contact Azion support.")
ErrorFailToDelete = errors.New("Failed to delete the Origin: %s. Check your settings and try again. If the error persists, contact Azion support.")
)
Loading