Skip to content

Go SDK for Sirv S3

By , Customer Success DirectorUpdated

Open this page in a new chat

Short answer

Use the AWS SDK for Go with the endpoint s3.sirv.com and the S3 bucket, key and secret from your Sirv account settings. Sirv storage is S3 compatible, so the SDK can upload, download, copy, move, rename and delete files, create folders and read image meta. The Sirv REST API is another option with more methods.

After reading this you will know

  • How to connect the AWS SDK for Go to Sirv
  • What you can do with your Sirv files from Go
  • When to use the Sirv REST API instead

If you’re building an app with Go, you can upload and manage your Sirv files with the Go SDK for S3:

Sirv is an independent platform, which does not use Amazon S3, but it uses S3 compliant transfer and storage, so you can use any of the AWS SDKs for S3, including the Go SDK.

Before you start, connect to your Sirv S3 bucket.

Use the SDK to:

  • Upload files
  • Download files
  • Query a folders’ contents
  • Check if a file exists
  • Fetch image meta data (Exif)
  • Create folders
  • Move files
  • Copy files
  • Rename files
  • Delete file

If you would like any Go code samples for performing the functions above, please contact the Sirv support team.

Alternatively, you can use the Sirv REST API to upload, download and search the files in your Sirv S3 bucket. The REST API has over 30 other API methods for common functions.

Back to top