Skip to content

Latest commit

 

History

History
 
 

minio-go-legacy

Minio Go Library for Amazon S3 Legacy Signature v2 Compatible Cloud Storage Gitter

Install

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

Example

package main

import (
	"log"

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

func main() {
	config := minio.Config{
		AccessKeyID:     "YOUR-ACCESS-KEY-HERE",
		SecretAccessKey: "YOUR-PASSWORD-HERE",
		Endpoint:        "https://s3.amazonaws.com",
	}
	s3Client, err := minio.New(config)
	if err != nil {
	    log.Fatalln(err)
	}
	for bucket := range s3Client.ListBuckets() {
		if bucket.Err != nil {
			log.Fatalln(bucket.Err)
		}
		log.Println(bucket.Stat)
	}
}

Documentation

Bucket Level

Object Level

Presigned Bucket/Object Level

API Reference

GoDoc

Contribute

Contributors Guide

Build Status Build status