Documentation
¶
Overview ¶
Package gcs implements the Google Cloud Storage JSON REST API as a server.Handler. Real cloud.google.com/go/storage clients configured with a custom endpoint hit this handler the same way they hit storage.googleapis.com.
Supported operations (parity with AWS S3):
POST /storage/v1/b?project={p} — create bucket
GET /storage/v1/b?project={p} — list buckets
GET /storage/v1/b/{bucket} — get bucket
DELETE /storage/v1/b/{bucket} — delete bucket
POST /upload/storage/v1/b/{bucket}/o?uploadType=media&name={obj} — upload object
GET /storage/v1/b/{bucket}/o — list objects
GET /storage/v1/b/{bucket}/o/{obj} — get object metadata
GET /storage/v1/b/{bucket}/o/{obj}?alt=media — download object
DELETE /storage/v1/b/{bucket}/o/{obj} — delete object
POST /storage/v1/b/{bucket}/o/{obj}/rewriteTo/b/{dst}/o/{dstObj} — copy
POST /storage/v1/b/{srcBucket}/o/{srcObj}/copyTo/b/{dst}/o/{dstObj} — legacy copy
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
Handler serves GCS JSON REST requests against a storage.Bucket driver.
Click to show internal directories.
Click to hide internal directories.