2
2
mirror of https://github.com/octoleo/restic.git synced 2024-06-08 03:50:49 +00:00
restic/Godeps/_workspace/src/github.com/minio/minio-go
2016-01-17 18:48:05 +01:00
..
examples Update minio-go library 2016-01-17 18:48:05 +01:00
.gitignore Switch s3 library to allow for s3 compatible backends. Fixes #315 2016-01-17 18:46:08 +01:00
.travis.yml Update s3 library again 2016-01-17 18:48:05 +01:00
api_functional_test.go Update s3 library again 2016-01-17 18:48:05 +01:00
api_private_test.go Update minio-go library 2016-01-17 18:48:05 +01:00
api-definitions.go Update s3 library again 2016-01-17 18:48:05 +01:00
api-error-response.go Update s3 library again 2016-01-17 18:48:05 +01:00
api-fget-object.go Update minio-go library 2016-01-17 18:48:05 +01:00
api-fput-object.go Update s3 library again 2016-01-17 18:48:05 +01:00
api-get.go Update s3 library again 2016-01-17 18:48:05 +01:00
api-list.go Update s3 library again 2016-01-17 18:48:05 +01:00
api-presigned.go Update minio-go library 2016-01-17 18:48:05 +01:00
api-put-bucket.go update s3 library for bugfix 2016-01-17 18:48:05 +01:00
api-put-object-partial.go Update s3 library again 2016-01-17 18:48:05 +01:00
api-put-object.go Update s3 library again 2016-01-17 18:48:05 +01:00
api-remove.go update s3 library for bugfix 2016-01-17 18:48:05 +01:00
api-s3-definitions.go Update s3 library again 2016-01-17 18:48:05 +01:00
api-stat.go Update s3 library again 2016-01-17 18:48:05 +01:00
api.go update s3 library for bugfix 2016-01-17 18:48:05 +01:00
appveyor.yml Update s3 library again 2016-01-17 18:48:05 +01:00
bucket-acl.go Update minio-go library 2016-01-17 18:48:05 +01:00
bucket-cache.go update s3 library for bugfix 2016-01-17 18:48:05 +01:00
common-methods.go Update minio-go library 2016-01-17 18:48:05 +01:00
constants.go Update minio-go library 2016-01-17 18:48:05 +01:00
CONTRIBUTING.md Switch s3 library to allow for s3 compatible backends. Fixes #315 2016-01-17 18:46:08 +01:00
INSTALLGO.md Update minio-go library 2016-01-17 18:48:05 +01:00
LICENSE Switch s3 library to allow for s3 compatible backends. Fixes #315 2016-01-17 18:46:08 +01:00
MAINTAINERS.md Update minio-go library 2016-01-17 18:48:05 +01:00
post-policy.go Update minio-go library 2016-01-17 18:48:05 +01:00
README.md Update minio-go library 2016-01-17 18:48:05 +01:00
request-signature-v2.go Update minio-go library 2016-01-17 18:48:05 +01:00
request-signature-v4.go Update minio-go library 2016-01-17 18:48:05 +01:00
signature-type.go Update minio-go library 2016-01-17 18:48:05 +01:00
tempfile.go Update s3 library again 2016-01-17 18:48:05 +01:00
utils.go Update minio-go library 2016-01-17 18:48:05 +01:00

Minio Go Library for Amazon S3 Compatible Cloud Storage Gitter

Description

Minio Go library is a simple client library for S3 compatible cloud storage servers. Supports AWS Signature Version 4 and 2. AWS Signature Version 4 is chosen as default.

List of supported cloud storage providers.

  • AWS Signature Version 4

    • Amazon S3
    • Minio
  • AWS Signature Version 2

    • Google Cloud Storage (Compatibility Mode)
    • Openstack Swift + Swift3 middleware
    • Ceph Object Gateway
    • Riak CS

Install

If you do not have a working Golang environment, please follow Install Golang.

$ go get github.com/minio/minio-go

Example

ListBuckets()

This example shows how to List your buckets.

package main

import (
	"log"

	"github.com/minio/minio-go"
)

func main() {
	// Requests are always secure (HTTPS) by default. Set insecure=true to enable insecure (HTTP) access.
	// This boolean value is the last argument for New().

	// New returns an Amazon S3 compatible client object. API copatibality (v2 or v4) is automatically
	// determined based on the Endpoint value.
	s3Client, err := minio.New("s3.amazonaws.com", "YOUR-ACCESS-KEY-HERE", "YOUR-SECRET-KEY-HERE", false)
	if err != nil {
	    log.Fatalln(err)
	}
	buckets, err := s3Client.ListBuckets()
	if err != nil {
		log.Fatalln(err)
	}
	for _, bucket := range buckets {
		log.Println(bucket)
	}
}

Documentation

Bucket Operations.

Object Operations.

File Object Operations.

Presigned Operations.

API Reference

GoDoc

Contribute

Contributors Guide

Build Status Build status