Storage
Kubemq gcp-storage target connector allows services using kubemq server to access google storage server.
Prerequisites
The following required to run the gcp-storage target connector:
kubemq cluster
gcp-storage set up
kubemq-source deployment
Configuration
storage target connector configuration properties:
Properties Key | Required | Description | Example |
credentials | yes | gcp credentials files | "<google json credentials" |
Example:
Usage
Create bucket
create a new bucket under storage
Create bucket metadata settings:
Metadata Key | Required | Description | Possible values |
method | yes | type of method | "create_bucket" |
bucket | yes | bucket name | "bucket name" |
storage_class | yes | gcp-storage_class | "storage_class" |
project_id | yes | gcp storage project_id | "/myproject" |
location | yes | gcp storage valid location | "gcp-supported locations" |
Example:
Upload file
upload a file to selected bucket
Upload file metadata settings:
Metadata Key | Required | Description | Possible values |
method | yes | type of method | "upload" |
bucket | yes | bucket name | "bucket name" |
object | yes | object name to save the file under | "anyString" |
path | yes | path to the file to upload | "<absolute or relative path to file/filename.type>" |
Example:
Delete file
delete file from a bucket
Delete file metadata settings:
Metadata Key | Required | Description | Possible values |
method | yes | type of method | "delete" |
bucket | yes | bucket name | "bucket name" |
object | yes | object name | "anyString" |
Example:
Download file
download file from bucket by object name
Download file metadata settings:
Metadata Key | Required | Description | Possible values |
method | yes | type of method | "download" |
bucket | yes | bucket name | "bucket name" |
object | yes | object name | "anyString" |
Example:
Rename file
rename an object under the same bucket
Rename file metadata settings:
Metadata Key | Required | Description | Possible values |
method | yes | type of method | "rename" |
bucket | yes | bucket name | "bucket name" |
object | yes | old object name | "anyString" |
rename_object | yes | new object name | "anyString" |
Example:
Copy file
copy file from one bucket to another
Copy file metadata settings:
Metadata Key | Required | Description | Possible values |
method | yes | type of method | "copy" |
bucket | yes | old bucket name | "bucket name" |
dst_bucket | yes | new bucket name(can be the same) | "bucket name" |
object | yes | old object name | "anyString" |
rename_object | yes | new object name(can be the same) | "anyString" |
Example:
Move file
move a file from one bucket to another
Move file metadata settings:
Metadata Key | Required | Description | Possible values |
method | yes | type of method | "move" |
bucket | yes | old bucket name | "bucket name" |
dst_bucket | yes | new bucket name(can be the same) | "bucket name" |
object | yes | old object name | "anyString" |
rename_object | yes | new object name(can be the same) | "anyString" |
Example:
List files
list all files from a bucket
List files metadata settings:
Metadata Key | Required | Description | Possible values |
method | yes | type of method | "list" |
bucket | yes | old bucket name | "bucket name" |
Example:
Last updated