Implement backblaze-b2 gateway support (#5002)

Fixes https://github.com/minio/minio/issues/4072
This commit is contained in:
Harshavardhana
2017-10-13 03:56:16 -07:00
committed by Nitish Tiwari
parent 3d0dced23c
commit 0c0d1e4150
35 changed files with 2711 additions and 11416 deletions

View File

@@ -21,6 +21,7 @@ import (
"encoding/base64"
"encoding/hex"
"encoding/json"
"errors"
"fmt"
"io"
"math"
@@ -39,6 +40,14 @@ import (
"github.com/minio/minio-go/pkg/policy"
)
var (
// Project ID format is not valid.
errGCSInvalidProjectID = errors.New("GCS project id is either empty or invalid")
// Project ID not found
errGCSProjectIDNotFound = errors.New("unknown project id")
)
const (
// Path where multipart objects are saved.
// If we change the backend format we will use a different url path like /multipart/v2