s3

package
v9.4.31+incompatible Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type S3Driver

type S3Driver struct {
	// contains filtered or unexported fields
}

func New

func New(config *aws.Config) (*S3Driver, error)

func (*S3Driver) CreateBucket

func (d *S3Driver) CreateBucket(name string, region string, endpoint string, anonymousBucketAccessMode api.AnonymousBucketAccessMode) (string, error)

func (*S3Driver) DeleteBucket

func (d *S3Driver) DeleteBucket(id string, region string, endpoint string, clearBucket bool) error

func (*S3Driver) GrantBucketAccess

func (d *S3Driver) GrantBucketAccess(id string, accountName string, accessPolicy string) (string, *bucket.BucketAccessCredentials, error)

AccessBucket grants access to the S3 bucket

func (*S3Driver) NewIamSvc

func (d *S3Driver) NewIamSvc() (*iam.IAM, error)

Returns a new IAM service client

func (*S3Driver) NewS3Svc

func (d *S3Driver) NewS3Svc(region string, endpoint string) (*s3.S3, error)

Returns a new S3 service client

func (*S3Driver) RevokeBucketAccess

func (d *S3Driver) RevokeBucketAccess(id string, accountId string) error

RevokeBucketAccess Revokes access to a bucket If access to all the buckets have been revoked, this call results in deletion of access policies followed by user account deletion.

func (*S3Driver) Start

func (f *S3Driver) Start() error

Start starts a new s3 object storage server Not being used currently

func (*S3Driver) String

func (f *S3Driver) String() string

String name representation of driver Not being used currently

Jump to

Keyboard shortcuts

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