origins

package
v0.0.0-...-7a0a1c0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 17, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrorCreateOrigins          = errors.New("Failed to create the Origin: %s. Check your settings and try again. If the error persists, contact Azion support.")
	ErrorHmacAuthenticationFlag = errors.New("Invalid --hmac-authentication flag provided. The flag must have  'true' or 'false' values. Run the command 'azion <command> <subcommand> --help' to display more information and try again.")
	ErrorFailToDelete           = errors.New("Failed to delete the Origin: %s. Check your settings and try again. If the error persists, contact Azion support.")
	ErrorConvertIdApp           = 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")
	ErrorGetOrigin              = errors.New("Failed to describe the Origin: %s. Check your settings and try again. If the error persists, contact Azion support.")
	ErrorFormatOut              = errors.New("The server failed formatting data for display. Repeat the HTTP request and check the HTTP response's format")
	ErrorWriteFile              = errors.New("The file is read-only and/or isn't accessible. Change the attributes of the file to read and write and/or give access to it")
	ErrorGetOrigins             = errors.New("Failed to list your origins: %s. Check your settings and try again. If the error persists, contact Azion support.")
	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")
	ErrorUpdateOrigin           = errors.New("Failed to update the Origin: %s. Check your settings and try again. If the error persists, contact Azion support.")
)
View Source
var (
	// [ origins ]
	Usage = "origin"

	// [create]
	CreateShortDescription = "Creates a new Origin"
	CreateLongDescription  = "Creates an Origin based on given attributes to be used in Edge Applications"
	CreateOutputSuccess    = "Created Origin with key %s"
	CreateFlagHelp         = "Displays more information about the create Origin command"

	// [delete]
	DeleteShortDescription = "Deletes an Origin"
	DeleteLongDescription  = "Deletes an Origin from the Edge Applications library based on its given ID"
	DeleteOutputSuccess    = "Origin %s was successfully deleted"
	DeleteHelpFlag         = "Displays more information about the delete Origin command"
	DeleteAskInputApp      = "Enter the ID of the Edge Application linked to this Origin:"
	DeleteAskInputOri      = "Enter the key of the Origin you wish to delete:"

	// [describe]
	DescribeShortDescription = "Returns information about a specific Origin"
	DescribeLongDescription  = "Returns information about a specific Origin, based on a given ID, in details"
	DescribeFlagOut          = "Exports the output to the given <file_path/file_name.ext>"
	DescribeFlagFormat       = "Changes the output format passing the json value to the flag"
	DescribeHelpFlag         = "Displays more information about the describe Origin command"

	// [list]
	ListShortDescription      = "Displays your origins"
	ListLongDescription       = "Displays all origins related to your applications"
	ListHelpFlag              = "Displays more information about the list Origin command"
	ListAskInputApplicationId = "Enter the ID of the Edge Application the Origins are linked to:"

	// [update]
	UpdateShortDescription      = "Updates an Origin"
	UpdateLongDescription       = "Updates an Origin based on its key and given attributes"
	UpdateFlagEdgeApplicationId = "Unique identifier for an Edge Application"
	UpdateFlagHelp              = "Displays more information about the update Origin command"
	UpdateOutputSuccess         = "Updated Origin with key %s"

	// [ ask ]
	AskAppID      = "Enter the ID of the Edge Application this Origin is linked to:"
	AskName       = "Enter the new Origin's Name:"
	AskBucket     = "Enter the new Origin's Bucket:"
	AskPrefix     = "Enter the new Origin's Prefix, or leave it blank if you are not using any prefix:"
	AskAddresses  = "Enter the new Origin's Addresses:"
	AskHostHeader = "Enter the new Origin's Host Header:"
	AskOriginKey  = "Enter the Origin's Key:"
	AskOriginType = "Enter the Origin's type:"

	// [ flags ]
	FlagEdgeApplicationID    = "Unique identifier for an Edge Application"
	FlagOriginKey            = "The Origin's key unique identifier"
	FlagName                 = "The Origin's name"
	FlagOriginType           = `Identifies the source of a record. I.e. "single_origin"`
	FlagAddresses            = "Passes a list of addresses linked to the Origin"
	FlagOriginProtocolPolicy = "Tells the protocol policy used in the Origin"
	FlagHostHeader           = "Specifies the hostname of the server being accessed"
	FlagOriginPath           = "Path to be appended to the URI when forwarding the request to the Origin. Leave it in blank to use only the URI"
	FlagHmacAuthentication   = "Whether Hmac Authentication is used or not"
	FlagHmacRegionName       = "Informs Hmac region name"
	FlagHmacAccessKey        = "Informs Hmac Access Key"
	FlagBucket               = "The Origin's bucket. Required flag that must be informed when origin-type is object_storage"
	FlagBucketUpdate         = "The Origin's bucket"
	FlagPrefix               = "The Origin's prefix. Optional flag that can be informed when origin-type is object_storage"
	FlagPrefixUpdate         = "The Origin's prefix"
	FlagHmacSecretKey        = "Informs Hmac Secret Key"
	FlagFile                 = "Path to a JSON file containing the attributes of the Origin that will be created; you can use - for reading from stdin"
	OriginsFileWritten       = "File successfully written to: %s\n"
)

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL