Documentation ¶
Index ¶
Constants ¶
View Source
const ( ERROR_CREATE_BUCKET = "Failed to create the bucket: %s. Check your settings and try again. If the error persists, contact Azion support." ERROR_LIST_BUCKET = "Failed to list your buckets: %s. Check your settings and try again. If the error persists, contact Azion support." ERROR_DELETE_BUCKET = "Failed to delete the Bucket: %s. Check your settings and try again. If the error persists, contact Azion support." ERROR_UPDATE_BUCKET = "Failed to update the bucket: %s. Check your settings and try again. If the error persists, contact Azion support." ERROR_CREATE_OBJECT = "Failed to create the object: %s. Check your settings and try again. If the error persists, contact Azion support." ERROR_DELETE_OBJECT = "Failed to delete the Object: %s. Check your settings and try again. If the error persists, contact Azion support." ERROR_DESCRIBE_OBJECT = "Failed to describe the object: %s. Check your settings and try again. If the error persists, contact Azion support." ERROR_NO_EMPTY_BUCKET = "Unable to delete a non-empty bucket. Additionally, objects deleted within the last 24 hours are also taken into consideration" )
View Source
const ( USAGE = "edge-storage <subcommand>" USAGE_BUCKET = "bucket" USAGE_OBJECTS = "object" SHORT_DESCRIPTION_CREATE = "Creates Edge Storage buckets and objects" SHORT_DESCRIPTION_LIST = "Displays your Edge Storage buckets and objects" SHORT_DESCRIPTION_DELETE = "Deletes Edge Storage buckets and objects" SHORT_DESCRIPTION_UPDATE = "Updates Edge Storage buckets and objects" SHORT_DESCRIPTION_DESCRIBE = "Returns Edge Storage buckets and objects" LONG_DESCRIPTION_CREATE = "Allows users to create a bucket or object in Edge Storage" LONG_DESCRIPTION_LIST = "Allows users to list buckets or objects in Edge Storage" LONG_DESCRIPTION_DELETE = "Allows users to delete a bucket or object in Edge Storage" LONG_DESCRIPTION_UPDATE = "Allows users to update a bucket or object in Edge Storage" LONG_DESCRIPTION_DESCRIBE = "Allows users to describe a bucket or object in Edge Storage" SHORT_DESCRIPTION_CREATE_BUCKET = "Creates a bucket in Edge Storage" SHORT_DESCRIPTION_LIST_BUCKET = "List the buckets in Edge Storage" SHORT_DESCRIPTION_LIST_OBJECT = "List the objects in Edge Storage" SHORT_DESCRIPTION_DELETE_BUCKET = "Deletes the bucket in Edge Storage" SHORT_DESCRIPTION_CREATE_OBJECTS = "Creates objects in Edge Storage" SHORT_DESCRIPTION_DELETE_OBJECTS = "Deletes an object in Edge Storage" LONG_DESCRIPTION_CREATE_BUCKET = "Allows users to create a bucket in Edge Storage" LONG_DESCRIPTION_LIST_BUCKET = "Allows users to list their buckets in Edge Storage" LONG_DESCRIPTION_LIST_OBJECT = "Allows users to list their objects in Edge Storage" LONG_DESCRIPTION_DELETE_BUCKET = "Allows users to delete their buckets in Edge Storage" LONG_DESCRIPTION_CREATE_OBJECTS = "Allows users to create objects in Edge Storage" LONG_DESCRIPTION_DELETE_OBJECTS = "Allows users to delete their objects in Edge Storage" EXAMPLE_CREATE = "$ azion create edge-storage\n$ azion create edge-storage --help" EXAMPLE_CREATE_BUCKET = "$ azion create edge-storage bucket --name 'zorosola' --edge-access 'read_only'\n$ azion create edge-storage bucket --help" EXAMPLE_UPDATE_BUCKET = "$ azion update edge-storage bucket --name 'zorosola' --edge-access 'read_only'\n$ azion update edge-storage bucket --help" EXAMPLE_LIST = "$ azion list edge-storage bucket\n$ azion list edge-storage object --bucket-name mybucket\n$ azion list edge-storage --help" EXAMPLE_LIST_BUCKET = "$ azion list edge-storage bucket\n$ azion list edge-storage bucket --page 1 --page-size 3" EXAMPLE_LIST_OBJECT = "" /* 156-byte string literal not displayed */ EXAMPLE_DELETE = "$ azion delete edge-storage\n$ azion delete edge-storage --help" EXAMPLE_DELETE_BUCKET = "$ azion delete edge-storage bucket --name 'bucket-name'\n$ azion delete edge-storage bucket --help" EXAMPLE_UPDATE = "$ azion update edge-storage\n$ azion update edge-storage --help" EXAMPLE_CREATE_OBJECTS = "" /* 132-byte string literal not displayed */ EXAMPLE_UPDATE_OBJECT = "" /* 157-byte string literal not displayed */ EXAMPLE_DESCRIBE = "$ azion describe edge-storage object --help" EXAMPLE_DESCRIBE_OBJECT = "" /* 345-byte string literal not displayed */ EXAMPLE_DELETE_OBJECTS = "$ azion delete edge-storage object --bucket-name 'bucket-name'\n$ azion delete edge-storage object --help" FLAG_HELP = "Displays more information about the edge-storage command" FLAG_HELP_CREATE_BUCKET = "Displays more information about the create edge-storege bucket command" FLAG_HELP_LIST_BUCKET = "Displays more information about the list edge-storege bucket command" FLAG_HELP_LIST_OBJECT = "Displays more information about the list edge-storege object command" FLAG_HELP_DELETE_BUCKET = "Displays more information about the delete edge-storege bucket command" FLAG_NAME_BUCKET = "The name of the Edge Storage bucket" FLAG_FORCE = "Indicates that the bucket should be emptied and deleted" FLAG_EDGE_ACCESS_CREATE_BUCKET = "Indicates the type of permission for actions within the bucket. Possible values: read_only, read_write or restricted" FLAG_SOURCE_UPDATE_OBJECT = "file path field to update the edge storage bucket object" FLAG_FILE_JSON_CREATE_BUCKET = "Path to a JSON file containing the attributes of the bucket that will be created; you can use - for reading from stdin" FLAG_NAME_OBJECT = "The name of the Edge Storage object" FLAG_NAME_CREATE_OBJECT = "Name of the object to be stored in the bucket. You can use a full file path (such as: path/to/file/bucket/file.txt)" FLAG_NAME_CREATE_SOURCE = "Path to the local file that will be uploaded to the bucket, path absoluto" FLAG_FILE_JSON_CREATE_OBJECTS = "Path to a JSON file containing the attributes of the objects that will be created; you can use - for reading from stdin" FLAG_HELP_CREATE_OBJECTS = "Displays more information about the create edge-storege objects command" FLAG_HELP_DETAILS_OBJECTS = "Displays all relevant fields when listing" FLAG_OBJECT_KEY_OBJECT = "The object key of the Edge Storage objects" ASK_NAME_CREATE_BUCKET = "Enter your bucket's name: " ASK_OBJECT_KEY = "Enter your object key: " ASK_EDGE_ACCESSS_CREATE_BUCKET = "Enter your bucket's edge access type: " ASK_NAME_DELETE_BUCKET = "Enter the name of the Bucket you wish to delete: " ASK_NAME_UPDATE_BUCKET = "Enter the name of the Bucket you wish to update: " ASK_NAME_UPDATE_OBJECT = "Enter the name of the Object you wish to update: " ASK_OBJECT_KEY_CREATE_OBJECT = "Enter your object name: " ASK_SOURCE_CREATE_OBJECT = "Enter your path source: " ASK_OBJECT_DELETE_OBJECT = "Enter the name of the Object you wish to delete: " ASK_NOT_EMPTY_BUCKET = "Your bucket can't be deleted because it's not empty. Do you want to empty it? (y/N)" OUTPUT_CREATE_BUCKET = "Bucket created successfully" OUTPUT_DELETE_BUCKET = "Bucket %s was deleted successfully\n" OUTPUT_UPDATE_BUCKET = "Bucket updated successfully\n" OUTPUT_UPDATE_OBJECT = "Object updated successfully\n" OUTPUT_CREATE_OBJECT = "Object created successfully\n" OUTPUT_DELETE_OBJECT = "Object %s was deleted successfully\n" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.