Volcano/ Docs

Storage

Object storage organized into buckets that hold objects (files). Policies govern access to a bucket, and each object has a public/private visibility.

What it is

Object storage organized into buckets that hold objects (files). Policies govern access to a bucket, and each object has a public/private visibility.

How it relates

  • Belongs to a project.
  • Functions read and write objects at runtime.
  • Policies control access; they can be managed with the CLI or declared in the declarative config (an omitted policies key leaves a bucket's policies untouched).

CLI operations

ElementCLI can…Command
Bucketcreate, list, get, update, deletevolcano storage bucket create|list|get|update|delete …
Objectlist, upload, download, copy, move, delete, set visibilityvolcano storage object list|upload|download|copy|move|delete|visibility …
Policyattach, list, get, deletevolcano storage policy create|list|get|delete …
Usageaggregate statsvolcano storage stats

Prefix with cloud to force the cloud target.

Examples

# Create a bucket
volcano storage bucket create uploads

# Upload / download objects (download - writes to stdout)
volcano storage object upload uploads ./photo.png images/photo.png
volcano storage object download uploads images/photo.png ./photo.png
volcano storage object download uploads images/photo.png -

# List, move, delete, and change visibility
volcano storage object list uploads
volcano storage object move uploads images/photo.png images/avatar.png
volcano storage object visibility uploads images/avatar.png public
volcano storage object delete uploads images/avatar.png

# Attach a policy and see usage
volcano storage policy create uploads --name public-read
volcano storage stats

On this page