s3client

package
v1.0.2-alpha Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ObjectStorageSessionFactory

type ObjectStorageSessionFactory struct {
	//FailCheckBucketAccess ...
	FailCheckBucketAccess bool
	//FailCreateBucket ...
	FailCreateBucket bool
	//FailDeleteBucket ...
	FailDeleteBucket bool
	//CheckObjectPathExistenceError ...
	CheckObjectPathExistenceError bool
	//CheckObjectPathExistencePathNotFound ...
	CheckObjectPathExistencePathNotFound bool

	// LastEndpoint holds the endpoint of the last created session
	LastEndpoint string
	// LastRegion holds the region of the last created session
	LastRegion string
	// LastCredentials holds the credentials of the last created session
	LastCredentials *s3client.ObjectStorageCredentials
	// LastCheckedBucket stores the name of the last bucket that was checked
	LastCheckedBucket string
	// LastCreatedBucket stores the name of the last bucket that was created
	LastCreatedBucket string
	// LastDeletedBucket stores the name of the last bucket that was deleted
	LastDeletedBucket string
}

ObjectStorageSessionFactory is a factory for mocked object storage sessions

func (*ObjectStorageSessionFactory) NewObjectStorageSession

func (f *ObjectStorageSessionFactory) NewObjectStorageSession(endpoint, region string, creds *s3client.ObjectStorageCredentials, lgr *zap.Logger) s3client.ObjectStorageSession

NewObjectStorageSession method creates a new fake object store session

func (*ObjectStorageSessionFactory) ResetStats

func (f *ObjectStorageSessionFactory) ResetStats()

ResetStats clears the details about previous sessions

Jump to

Keyboard shortcuts

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