Documentation ¶
Index ¶
- Constants
- Variables
- type ACL
- type AclUser
- type Bucket
- type BucketList
- type Key
- type Keys
- type PartialBucket
- type Server
- func (s *Server) CreateBucket(bucketName string) error
- func (s *Server) CreateKey(userName string) (*iam.CreateAccessKeyOutput, error)
- func (s *Server) CreateUser(userName string) error
- func (s *Server) DeleteACL(bucketName, userName string) error
- func (s *Server) DeleteBucket(bucketName string) error
- func (s *Server) DeleteDirectoryForBucket(bucketName string) error
- func (s *Server) DeleteKey(userName string) error
- func (s *Server) DeleteUser(userName string) error
- func (s *Server) EnsureACL(bucketName, userName, permission string) error
- func (s *Server) GetBucket(bucketName string) (*Bucket, error)
- func (s *Server) GetKey(userName string) (*Key, error)
- func (s *Server) GetUser(userName string) (*User, error)
- type User
- type UserList
Constants ¶
View Source
const ( CreateBucketTraceName = "CreateBucketRequest" DeleteBucketTraceName = "DeleteBucketRequest" GrantBucketAccessTraceName = "GrantBucketAccessRequest" RevokeBucketAccessTraceName = "RevokeBucketAccessRequest" )
Variables ¶
View Source
var ( ErrInvalidBucketID = errors.New("invalid bucketID") ErrFailedToCheckBucketExists = errors.New("failed to check bucket existence") ErrFailedToMarshalPolicy = errors.New("failed to marshal policy into JSON") ErrFailedToCheckPolicyExists = errors.New("failed to check bucket policy existence") ErrFailedToCheckUserExists = errors.New("failed to check for user existence") ErrInvalidRequest = errors.New("incoming request invalid") )
Functions ¶
This section is empty.
Types ¶
type BucketList ¶
type PartialBucket ¶
type PartialBucket struct {
Acl []ACL `json:"acl"`
}
type Server ¶
type Server struct { Name string S3Endpoint string S3Region string // contains filtered or unexported fields }
Server is implementation of driver.Driver interface for ObjectScale platform.
func (*Server) CreateBucket ¶
createBucket is used to create bucket on the Provisioner.
func (*Server) CreateKey ¶
func (s *Server) CreateKey(userName string) (*iam.CreateAccessKeyOutput, error)
func (*Server) CreateUser ¶
func (*Server) DeleteBucket ¶
func (*Server) DeleteDirectoryForBucket ¶
func (*Server) DeleteUser ¶
Click to show internal directories.
Click to hide internal directories.