automock

package
v0.0.0-...-1ac4f16 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Code generated by mockery v1.0.0

Code generated by mockery v1.0.0

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MinioClient

type MinioClient struct {
	mock.Mock
}

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

type Store struct {
	mock.Mock
}

Store is an autogenerated mock type for the Store type

func (*Store) BucketExists

func (_m *Store) BucketExists(name string) (bool, error)

BucketExists provides a mock function with given fields: name

func (*Store) CompareBucketPolicy

func (_m *Store) CompareBucketPolicy(name string, expected v1alpha2.BucketPolicy) (bool, error)

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

func (_m *Store) CreateBucket(namespace string, crName string, region string) (string, error)

CreateBucket provides a mock function with given fields: namespace, crName, region

func (*Store) DeleteBucket

func (_m *Store) DeleteBucket(ctx context.Context, name string) error

DeleteBucket provides a mock function with given fields: ctx, name

func (*Store) DeleteObjects

func (_m *Store) DeleteObjects(ctx context.Context, bucketName string, prefix string) error

DeleteObjects 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 v1alpha2.BucketPolicy) error

SetBucketPolicy provides a mock function with given fields: name, policy

Jump to

Keyboard shortcuts

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