provisioner

package
v0.0.0-...-af0d2fc Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package provisioner

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	S3 *s3fake.S3Fake
	// contains filtered or unexported fields
}

Server implements cosi.ProvisionerServer interface.

func New

func New(logger logr.Logger, s3 *s3fake.S3Fake) *Server

New returns provisioner.Server with default values.

func (*Server) DriverCreateBucket

DriverCreateBucket call is made to create the bucket in the backend.

NOTE: this call needs to be idempotent.

  1. If a bucket that matches both name and parameters already exists, then OK (success) must be returned.
  2. If a bucket by same name, but different parameters is provided, then the appropriate error code ALREADY_EXISTS must be returned.

func (*Server) DriverDeleteBucket

DriverDeleteBucket call is made to delete the bucket in the backend.

NOTE: this call needs to be idempotent. If the bucket has already been deleted, then no error should be returned.

func (*Server) DriverGrantBucketAccess

DriverGrantBucketAccess call grants access to an account. The account_name in the request shall be used as a unique identifier to create credentials.

NOTE: this call needs to be idempotent. The account_id returned in the response will be used as the unique identifier for deleting this access when calling DriverRevokeBucketAccess. The returned secret does not need to be the same each call to achieve idempotency.

func (*Server) DriverRevokeBucketAccess

DriverRevokeBucketAccess call revokes all access to a particular bucket from a principal.

NOTE: this call needs to be idempotent.

Jump to

Keyboard shortcuts

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