bucket

package
v9.4.40+incompatible Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2022 License: Apache-2.0 Imports: 1 Imported by: 37

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BucketAccessCredentials

type BucketAccessCredentials struct {
	// Access key id for accessing the bucket
	AccessKeyId string
	// Secret access key for access the bucket
	SecretAccessKey string
}

type BucketDriver

type BucketDriver interface {
	// String returns a name for the driver implementation
	String() string

	// Start starts the bucket driver for usage
	Start() error

	// CreateBucket provisions a new bucket
	CreateBucket(name string, region string, endpoint string, anonymousBucketAccessMode api.AnonymousBucketAccessMode) (string, error)

	// DeleteBucket deprovisions the bucket
	DeleteBucket(id string, region string, endpoint string, clearBucket bool) error

	// GrantBucketAccess grants access to the bucket
	// Returns accountId and creadentials for access
	GrantBucketAccess(id string, accountName string, accessPolicy string) (string, *BucketAccessCredentials, error)

	// RevokeBucketAccess revokes access to the bucket
	RevokeBucketAccess(id string, accountId string) error
}

BucketDriver represents an method for interacting with various object storage backends

Directories

Path Synopsis
drivers
mock
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.
s3

Jump to

Keyboard shortcuts

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