fake

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2020 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 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.

Jump to

Keyboard shortcuts

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