Documentation ¶
Index ¶
- type MinioClient
- func (_m *MinioClient) BucketExists(bucketName string) (bool, error)
- func (_m *MinioClient) FPutObjectWithContext(ctx context.Context, bucketName string, objectName string, filePath string, ...) (int64, error)
- func (_m *MinioClient) GetBucketPolicy(bucketName string) (string, error)
- func (_m *MinioClient) ListObjects(bucketName string, objectPrefix string, recursive bool, doneCh <-chan struct{}) <-chan minio.ObjectInfo
- func (_m *MinioClient) MakeBucket(bucketName string, location string) error
- func (_m *MinioClient) RemoveBucket(bucketName string) error
- func (_m *MinioClient) RemoveObjectsWithContext(ctx context.Context, bucketName string, objectsCh <-chan string) <-chan minio.RemoveObjectError
- func (_m *MinioClient) SetBucketPolicy(bucketName string, policy string) error
- type Store
- func (_m *Store) BucketExists(name string) (bool, error)
- func (_m *Store) CompareBucketPolicy(name string, expected v1beta1.BucketPolicy) (bool, error)
- func (_m *Store) ContainsAllObjects(ctx context.Context, bucketName string, assetName string, files []string) (bool, error)
- func (_m *Store) CreateBucket(namespace string, crName string, region string) (string, error)
- func (_m *Store) DeleteBucket(ctx context.Context, name string) error
- func (_m *Store) DeleteObjects(ctx context.Context, bucketName string, prefix string) error
- func (_m *Store) ListObjects(ctx context.Context, bucketName string, prefix string) ([]string, error)
- func (_m *Store) PutObjects(ctx context.Context, bucketName string, assetName string, ...) error
- func (_m *Store) SetBucketPolicy(name string, policy v1beta1.BucketPolicy) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MinioClient ¶
MinioClient is an autogenerated mock type for the MinioClient type
func (*MinioClient) BucketExists ¶
func (_m *MinioClient) BucketExists(bucketName string) (bool, error)
BucketExists provides a mock function with given fields: bucketName
func (*MinioClient) FPutObjectWithContext ¶
func (_m *MinioClient) FPutObjectWithContext(ctx context.Context, bucketName string, objectName string, filePath string, opts minio.PutObjectOptions) (int64, error)
FPutObjectWithContext provides a mock function with given fields: ctx, bucketName, objectName, filePath, opts
func (*MinioClient) GetBucketPolicy ¶
func (_m *MinioClient) GetBucketPolicy(bucketName string) (string, error)
GetBucketPolicy provides a mock function with given fields: bucketName
func (*MinioClient) ListObjects ¶
func (_m *MinioClient) ListObjects(bucketName string, objectPrefix string, recursive bool, doneCh <-chan struct{}) <-chan minio.ObjectInfo
ListObjects provides a mock function with given fields: bucketName, objectPrefix, recursive, doneCh
func (*MinioClient) MakeBucket ¶
func (_m *MinioClient) MakeBucket(bucketName string, location string) error
MakeBucket provides a mock function with given fields: bucketName, location
func (*MinioClient) RemoveBucket ¶
func (_m *MinioClient) RemoveBucket(bucketName string) error
RemoveBucket provides a mock function with given fields: bucketName
func (*MinioClient) RemoveObjectsWithContext ¶
func (_m *MinioClient) RemoveObjectsWithContext(ctx context.Context, bucketName string, objectsCh <-chan string) <-chan minio.RemoveObjectError
RemoveObjectsWithContext provides a mock function with given fields: ctx, bucketName, objectsCh
func (*MinioClient) SetBucketPolicy ¶
func (_m *MinioClient) SetBucketPolicy(bucketName string, policy string) error
SetBucketPolicy provides a mock function with given fields: bucketName, policy
type Store ¶
Store is an autogenerated mock type for the Store type
func (*Store) BucketExists ¶
BucketExists provides a mock function with given fields: name
func (*Store) CompareBucketPolicy ¶
CompareBucketPolicy provides a mock function with given fields: name, expected
func (*Store) ContainsAllObjects ¶
func (_m *Store) ContainsAllObjects(ctx context.Context, bucketName string, assetName string, files []string) (bool, error)
ContainsAllObjects provides a mock function with given fields: ctx, bucketName, assetName, files
func (*Store) CreateBucket ¶
CreateBucket provides a mock function with given fields: namespace, crName, region
func (*Store) DeleteBucket ¶
DeleteBucket provides a mock function with given fields: ctx, name
func (*Store) DeleteObjects ¶
DeleteObjects provides a mock function with given fields: ctx, bucketName, prefix
func (*Store) ListObjects ¶
func (_m *Store) ListObjects(ctx context.Context, bucketName string, prefix string) ([]string, error)
ListObjects provides a mock function with given fields: ctx, bucketName, prefix
func (*Store) PutObjects ¶
func (_m *Store) PutObjects(ctx context.Context, bucketName string, assetName string, sourceBasePath string, files []string) error
PutObjects provides a mock function with given fields: ctx, bucketName, assetName, sourceBasePath, files
func (*Store) SetBucketPolicy ¶
func (_m *Store) SetBucketPolicy(name string, policy v1beta1.BucketPolicy) error
SetBucketPolicy provides a mock function with given fields: name, policy