provisioner

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 1, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Overview

Package provisioner implements main COSI driver functionality namely creating/deleting buckets and granting/revoking access to them.

Index

Constants

View Source
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.

func (*Driverset) Add

func (ds *Driverset) Add(newDriver driver.Driver) error

Add is used to add new driver to the Driverset.

func (*Driverset) Get

func (ds *Driverset) Get(id string) (driver.Driver, error)

Get is used to get driver from the Driverset.

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 New

func New(driverset *Driverset) *Server

New initializes Server based on the config file.

func (*Server) DriverCreateBucket

DriverCreateBucket creates Bucket on specific Object Storage Platform.

func (*Server) DriverDeleteBucket

DriverDeleteBucket deletes Bucket on specific Object Storage Platform.

func (*Server) DriverGrantBucketAccess

DriverGrantBucketAccess provides access to Bucket on specific Object Storage Platform.

func (*Server) DriverRevokeBucketAccess

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL