starkandwayne/minio-go

Name: minio-go

Owner: Stark & Wayne

Description: Minio Go Library for Amazon S3 compatible cloud storage

Created: 2016-05-22 17:47:19.0

Updated: 2016-05-22 17:47:20.0

Pushed: 2016-05-24 22:28:56.0

Homepage: http://minio.io/download/#minio-sdk

Size: 3540

Language: Go

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

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.

Install

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

 get github.com/minio/minio-go
Example
ListBuckets()

This example shows how to List your buckets.

age main

rt (
"log"

"github.com/minio/minio-go"


 main() {
// Requests are always secure (HTTPS) by default. Set secure=false 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.
secure := true // Defaults to HTTPS requests.
s3Client, err := minio.New("s3.amazonaws.com", "YOUR-ACCESS-KEY-HERE", "YOUR-SECRET-KEY-HERE", secure)
if err != nil {
    log.Fatalln(err)
}
buckets, err := s3Client.ListBuckets()
if err != nil {
    log.Fatalln(err)
}
for _, bucket := range buckets {
    log.Println(bucket)
}

Documentation

API documentation

Examples
Bucket Operations.
Object Operations.
File Object Operations.
Presigned Operations.
Bucket Policy Operations.
API Reference

GoDoc

Contribute

Contributors Guide

Build Status Build status


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.