fake

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2019 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(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.

Jump to

Keyboard shortcuts

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