Documentation ¶
Overview ¶
Package provisioner implements main COSI driver functionality namely creating/deleting buckets and granting/revoking access to them.
Index ¶
- Constants
- func NewVirtualDriver(config config.Configuration) (driver.Driver, error)
- type Driverset
- type ErrDriverDuplicate
- type ErrNotConfigured
- type Server
- func (s *Server) DriverCreateBucket(ctx context.Context, req *cosi.DriverCreateBucketRequest) (*cosi.DriverCreateBucketResponse, error)
- func (s *Server) DriverDeleteBucket(ctx context.Context, req *cosi.DriverDeleteBucketRequest) (*cosi.DriverDeleteBucketResponse, error)
- func (s *Server) DriverGrantBucketAccess(ctx context.Context, req *cosi.DriverGrantBucketAccessRequest) (*cosi.DriverGrantBucketAccessResponse, error)
- func (s *Server) DriverRevokeBucketAccess(ctx context.Context, req *cosi.DriverRevokeBucketAccessRequest) (*cosi.DriverRevokeBucketAccessResponse, error)
Constants ¶
const (
ErrInvalidBackendID = "invalid backend ID"
)
Variables ¶
This section is empty.
Functions ¶
func NewVirtualDriver ¶
func NewVirtualDriver(config config.Configuration) (driver.Driver, error)
NewVirtualDriver is factory function, that takes configuration, validates if it is correct, and returns correct driver.
Types ¶
type Driverset ¶
type Driverset struct {
// contains filtered or unexported fields
}
Driverset is a structure holding list of Drivers, that can be added or extracted based on the ID.
type ErrDriverDuplicate ¶
type ErrDriverDuplicate struct {
ID string
}
ErrDriverDuplicate indicates that the Driver is already present in driverset.
func (ErrDriverDuplicate) Error ¶
func (err ErrDriverDuplicate) Error() string
type ErrNotConfigured ¶
type ErrNotConfigured struct {
ID string
}
ErrNotConfigured indicates that the Driver is not present in the driverset.
func (ErrNotConfigured) Error ¶
func (err ErrNotConfigured) Error() string
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server is an implementation of a provisioner server.
func (*Server) DriverCreateBucket ¶
func (s *Server) DriverCreateBucket(ctx context.Context, req *cosi.DriverCreateBucketRequest, ) (*cosi.DriverCreateBucketResponse, error)
DriverCreateBucket creates Bucket on specific Object Storage Platform.
func (*Server) DriverDeleteBucket ¶
func (s *Server) DriverDeleteBucket(ctx context.Context, req *cosi.DriverDeleteBucketRequest, ) (*cosi.DriverDeleteBucketResponse, error)
DriverDeleteBucket deletes Bucket on specific Object Storage Platform.
func (*Server) DriverGrantBucketAccess ¶
func (s *Server) DriverGrantBucketAccess(ctx context.Context, req *cosi.DriverGrantBucketAccessRequest, ) (*cosi.DriverGrantBucketAccessResponse, error)
DriverGrantBucketAccess provides access to Bucket on specific Object Storage Platform.
func (*Server) DriverRevokeBucketAccess ¶
func (s *Server) DriverRevokeBucketAccess(ctx context.Context, req *cosi.DriverRevokeBucketAccessRequest, ) (*cosi.DriverRevokeBucketAccessResponse, error)
DriverRevokeBucketAccess revokes access from Bucket on specific Object Storage Platform.
Directories ¶
Path | Synopsis |
---|---|
Package objectscale implements custom server handlers for communication with Dell ObjectScale platform.
|
Package objectscale implements custom server handlers for communication with Dell ObjectScale platform. |
Package policy exists for handling operations on AWS Policies, defines structures and functions for processing and comparing policies.
|
Package policy exists for handling operations on AWS Policies, defines structures and functions for processing and comparing policies. |
Package virtualdriver implements extension of provisioner server allowing for usage with multiple platforms.
|
Package virtualdriver implements extension of provisioner server allowing for usage with multiple platforms. |
fake
Package fake implements mock virtual driver for testing purposes.
|
Package fake implements mock virtual driver for testing purposes. |