Skip to content

Commit

Permalink
Rename package client to package minio
Browse files Browse the repository at this point in the history
  • Loading branch information
harshavardhana committed Jun 2, 2015
1 parent 4b4fca5 commit f673a76
Show file tree
Hide file tree
Showing 15 changed files with 39 additions and 23 deletions.
2 changes: 1 addition & 1 deletion acl.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

package client
package minio

// BucketACL - bucket level access control
type BucketACL string
Expand Down
2 changes: 1 addition & 1 deletion api.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

package client
package minio

import (
"errors"
Expand Down
2 changes: 1 addition & 1 deletion api_handlers_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

package client
package minio

// bucketHandler is an http.Handler that verifies bucket responses and validates incoming requests
import (
Expand Down
2 changes: 1 addition & 1 deletion api_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

package client
package minio

import (
"bytes"
Expand Down
2 changes: 1 addition & 1 deletion errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

package client
package minio

import (
"encoding/xml"
Expand Down
6 changes: 3 additions & 3 deletions examples/play/getobject.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,17 +23,17 @@ import (
"log"
"os"

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

func main() {
config := play.Config{
config := minio.Config{
AccessKeyID: "",
SecretAccessKey: "",
Endpoint: "https://play.minio.io:9000",
}

client := play.New(&config)
client := minio.New(&config)
reader, stat, err := client.GetObject("mybucket", "myobject", 0, 0)
if err != nil {
log.Fatalln(err)
Expand Down
6 changes: 3 additions & 3 deletions examples/play/listbuckets.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,17 @@ package main
import (
"log"

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

func main() {
config := play.Config{
config := minio.Config{
AccessKeyID: "",
SecretAccessKey: "",
Endpoint: "https://play.minio.io:9000",
}

client := play.New(&config)
client := minio.New(&config)

for message := range client.ListBuckets() {
if message.Err != nil {
Expand Down
6 changes: 3 additions & 3 deletions examples/play/listobjects.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,17 @@ package main
import (
"log"

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

func main() {
config := play.Config{
config := minio.Config{
AccessKeyID: "",
SecretAccessKey: "",
Endpoint: "https://play.minio.io:9000",
}

client := play.New(&config)
client := minio.New(&config)

for message := range client.ListObjects("mybucket", "", true) {
if message.Err != nil {
Expand Down
6 changes: 3 additions & 3 deletions examples/play/putobject.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,17 @@ import (
"log"
"os"

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

func main() {
config := play.Config{
config := minio.Config{
AccessKeyID: "",
SecretAccessKey: "",
Endpoint: "https://play.minio.io:9000",
}

client := play.New(&config)
client := minio.New(&config)

object, err := os.Open("testfile")
if err != nil {
Expand Down
2 changes: 1 addition & 1 deletion lowlevelapi.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

package client
package minio

import (
"bytes"
Expand Down
2 changes: 1 addition & 1 deletion lowlevelcommon.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

package client
package minio

import (
"crypto/hmac"
Expand Down
2 changes: 1 addition & 1 deletion lowleveldefinitions.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

package client
package minio

import "time"

Expand Down
18 changes: 17 additions & 1 deletion lowlevelmultipartapi.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,20 @@
package client
/*
* Minimal object storage library (C) 2015 Minio, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package minio

import (
"bytes"
Expand Down
2 changes: 1 addition & 1 deletion lowlevelrequest.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

package client
package minio

import (
"bytes"
Expand Down
2 changes: 1 addition & 1 deletion multipart.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

package client
package minio

import (
"bytes"
Expand Down

0 comments on commit f673a76

Please sign in to comment.