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