Documentation ¶
Index ¶
- type MockS3Client
- func (m *MockS3Client) CreateOrUpdateBucket(bucket *v1alpha3.S3Bucket) error
- func (m *MockS3Client) CreateUser(username string, bucket *v1alpha3.S3Bucket) (*iam.AccessKey, string, error)
- func (m *MockS3Client) DeleteBucket(bucket *v1alpha3.S3Bucket) error
- func (m *MockS3Client) GetBucketInfo(username string, bucket *v1alpha3.S3Bucket) (*client.Bucket, error)
- func (m *MockS3Client) UpdateBucketACL(bucket *v1alpha3.S3Bucket) error
- func (m *MockS3Client) UpdatePolicyDocument(username string, bucket *v1alpha3.S3Bucket) (string, error)
- func (m *MockS3Client) UpdateVersioning(bucket *v1alpha3.S3Bucket) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockS3Client ¶
type MockS3Client struct { MockCreateOrUpdateBucket func(bucket *v1alpha3.S3Bucket) error MockGetBucketInfo func(username string, bucket *v1alpha3.S3Bucket) (*client.Bucket, error) MockCreateUser func(username string, bucket *v1alpha3.S3Bucket) (*iam.AccessKey, string, error) MockUpdateBucketACL func(bucket *v1alpha3.S3Bucket) error MockUpdateVersioning func(bucket *v1alpha3.S3Bucket) error MockUpdatePolicyDocument func(username string, bucket *v1alpha3.S3Bucket) (string, error) MockDelete func(bucket *v1alpha3.S3Bucket) error }
MockS3Client for testing.
func (*MockS3Client) CreateOrUpdateBucket ¶
func (m *MockS3Client) CreateOrUpdateBucket(bucket *v1alpha3.S3Bucket) error
CreateOrUpdateBucket calls the underlying MockCreateOrUpdateBucket method.
func (*MockS3Client) CreateUser ¶
func (m *MockS3Client) CreateUser(username string, bucket *v1alpha3.S3Bucket) (*iam.AccessKey, string, error)
CreateUser calls the underlying MockCreateUser method.
func (*MockS3Client) DeleteBucket ¶
func (m *MockS3Client) DeleteBucket(bucket *v1alpha3.S3Bucket) error
DeleteBucket calls the underlying MockDeleteBucket method.
func (*MockS3Client) GetBucketInfo ¶
func (m *MockS3Client) GetBucketInfo(username string, bucket *v1alpha3.S3Bucket) (*client.Bucket, error)
GetBucketInfo calls the underlying MockGetBucketInfo method.
func (*MockS3Client) UpdateBucketACL ¶
func (m *MockS3Client) UpdateBucketACL(bucket *v1alpha3.S3Bucket) error
UpdateBucketACL calls the underlying MockUpdateBucketACL method.
func (*MockS3Client) UpdatePolicyDocument ¶
func (m *MockS3Client) UpdatePolicyDocument(username string, bucket *v1alpha3.S3Bucket) (string, error)
UpdatePolicyDocument calls the underlying MockUpdatePolicyDocument method.
func (*MockS3Client) UpdateVersioning ¶
func (m *MockS3Client) UpdateVersioning(bucket *v1alpha3.S3Bucket) error
UpdateVersioning calls the underlying MockUpdateVersioning method.
Click to show internal directories.
Click to hide internal directories.