1
0
mirror of https://github.com/minio/mc.git synced 2025-11-14 23:42:27 +03:00

Now bucket creation requires a simple CannedACLs to start with

$ ./mc mb <acl_type> <target>
This commit is contained in:
Harshavardhana
2015-04-23 14:18:23 -07:00
parent 256d7c4443
commit c120a5853d
15 changed files with 181 additions and 121 deletions

View File

@@ -16,11 +16,13 @@
package main
import (
"fmt"
type errInvalidACL struct {
acl string
}
"github.com/minio-io/mc/pkg/client"
)
func (e errInvalidACL) Error() string {
return "Invalid ACL: " + e.acl
}
type errInvalidArgument struct{}
@@ -29,12 +31,12 @@ func (e errInvalidArgument) Error() string {
}
type errUnsupportedScheme struct {
scheme client.Type
scheme string
url string
}
func (e errUnsupportedScheme) Error() string {
return fmt.Sprintf("Unsuppported URL scheme: %d", e.scheme)
return "Unsuppported URL scheme: " + e.scheme
}
type errInvalidURL struct {