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
Click to show internal directories.
Click to hide internal directories.