Documentation ¶
Overview ¶
Package gcs is a generated GoMock package.
Index ¶
- type GCSManager
- type MockGCSManager
- func (m *MockGCSManager) DeleteAllFilesInDirectory(bucketName, directory string) error
- func (m *MockGCSManager) DeleteFile(bucketName, objectName string) error
- func (m *MockGCSManager) DownloadFile(bucketName, objectName, destPath string) error
- func (m *MockGCSManager) EXPECT() *MockGCSManagerMockRecorder
- func (m *MockGCSManager) ListFiles(bucketName, directory string) ([]string, error)
- func (m *MockGCSManager) MoveFile(bucketName, srcObjectName, dstObjectName string) error
- func (m *MockGCSManager) Read(bucketName, objectName string) (*storage.Reader, error)
- func (m *MockGCSManager) UploadDirectory(bucketName, localDir, gcsPrefix string) error
- func (m *MockGCSManager) UploadFile(bucketName, objectName string, file os.File) error
- type MockGCSManagerMockRecorder
- func (mr *MockGCSManagerMockRecorder) DeleteAllFilesInDirectory(bucketName, directory interface{}) *gomock.Call
- func (mr *MockGCSManagerMockRecorder) DeleteFile(bucketName, objectName interface{}) *gomock.Call
- func (mr *MockGCSManagerMockRecorder) DownloadFile(bucketName, objectName, destPath interface{}) *gomock.Call
- func (mr *MockGCSManagerMockRecorder) ListFiles(bucketName, directory interface{}) *gomock.Call
- func (mr *MockGCSManagerMockRecorder) MoveFile(bucketName, srcObjectName, dstObjectName interface{}) *gomock.Call
- func (mr *MockGCSManagerMockRecorder) Read(bucketName, objectName interface{}) *gomock.Call
- func (mr *MockGCSManagerMockRecorder) UploadDirectory(bucketName, localDir, gcsPrefix interface{}) *gomock.Call
- func (mr *MockGCSManagerMockRecorder) UploadFile(bucketName, objectName, file interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GCSManager ¶
type GCSManager interface { UploadFile(bucketName, objectName string, file os.File) error DeleteFile(bucketName, objectName string) error ListFiles(bucketName, directory string) ([]string, error) MoveFile(bucketName, srcObjectName, dstObjectName string) error DeleteAllFilesInDirectory(bucketName, directory string) error DownloadFile(bucketName, objectName, destPath string) error UploadDirectory(bucketName, localDir, gcsPrefix string) error Read(bucketName, objectName string) (*storage.Reader, error) }
func NewGCSManager ¶
func NewGCSManager(credentialsFile string) (GCSManager, error)
type MockGCSManager ¶ added in v1.0.1
type MockGCSManager struct {
// contains filtered or unexported fields
}
MockGCSManager is a mock of GCSManager interface.
func NewMockGCSManager ¶ added in v1.0.1
func NewMockGCSManager(ctrl *gomock.Controller) *MockGCSManager
NewMockGCSManager creates a new mock instance.
func (*MockGCSManager) DeleteAllFilesInDirectory ¶ added in v1.0.1
func (m *MockGCSManager) DeleteAllFilesInDirectory(bucketName, directory string) error
DeleteAllFilesInDirectory mocks base method.
func (*MockGCSManager) DeleteFile ¶ added in v1.0.1
func (m *MockGCSManager) DeleteFile(bucketName, objectName string) error
DeleteFile mocks base method.
func (*MockGCSManager) DownloadFile ¶ added in v1.1.0
func (m *MockGCSManager) DownloadFile(bucketName, objectName, destPath string) error
DownloadFile mocks base method.
func (*MockGCSManager) EXPECT ¶ added in v1.0.1
func (m *MockGCSManager) EXPECT() *MockGCSManagerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockGCSManager) ListFiles ¶ added in v1.0.1
func (m *MockGCSManager) ListFiles(bucketName, directory string) ([]string, error)
ListFiles mocks base method.
func (*MockGCSManager) MoveFile ¶ added in v1.0.1
func (m *MockGCSManager) MoveFile(bucketName, srcObjectName, dstObjectName string) error
MoveFile mocks base method.
func (*MockGCSManager) Read ¶ added in v1.4.0
func (m *MockGCSManager) Read(bucketName, objectName string) (*storage.Reader, error)
Read mocks base method.
func (*MockGCSManager) UploadDirectory ¶ added in v1.3.0
func (m *MockGCSManager) UploadDirectory(bucketName, localDir, gcsPrefix string) error
UploadDirectory mocks base method.
func (*MockGCSManager) UploadFile ¶ added in v1.0.1
func (m *MockGCSManager) UploadFile(bucketName, objectName string, file os.File) error
UploadFile mocks base method.
type MockGCSManagerMockRecorder ¶ added in v1.0.1
type MockGCSManagerMockRecorder struct {
// contains filtered or unexported fields
}
MockGCSManagerMockRecorder is the mock recorder for MockGCSManager.
func (*MockGCSManagerMockRecorder) DeleteAllFilesInDirectory ¶ added in v1.0.1
func (mr *MockGCSManagerMockRecorder) DeleteAllFilesInDirectory(bucketName, directory interface{}) *gomock.Call
DeleteAllFilesInDirectory indicates an expected call of DeleteAllFilesInDirectory.
func (*MockGCSManagerMockRecorder) DeleteFile ¶ added in v1.0.1
func (mr *MockGCSManagerMockRecorder) DeleteFile(bucketName, objectName interface{}) *gomock.Call
DeleteFile indicates an expected call of DeleteFile.
func (*MockGCSManagerMockRecorder) DownloadFile ¶ added in v1.1.0
func (mr *MockGCSManagerMockRecorder) DownloadFile(bucketName, objectName, destPath interface{}) *gomock.Call
DownloadFile indicates an expected call of DownloadFile.
func (*MockGCSManagerMockRecorder) ListFiles ¶ added in v1.0.1
func (mr *MockGCSManagerMockRecorder) ListFiles(bucketName, directory interface{}) *gomock.Call
ListFiles indicates an expected call of ListFiles.
func (*MockGCSManagerMockRecorder) MoveFile ¶ added in v1.0.1
func (mr *MockGCSManagerMockRecorder) MoveFile(bucketName, srcObjectName, dstObjectName interface{}) *gomock.Call
MoveFile indicates an expected call of MoveFile.
func (*MockGCSManagerMockRecorder) Read ¶ added in v1.4.0
func (mr *MockGCSManagerMockRecorder) Read(bucketName, objectName interface{}) *gomock.Call
Read indicates an expected call of Read.
func (*MockGCSManagerMockRecorder) UploadDirectory ¶ added in v1.3.0
func (mr *MockGCSManagerMockRecorder) UploadDirectory(bucketName, localDir, gcsPrefix interface{}) *gomock.Call
UploadDirectory indicates an expected call of UploadDirectory.
func (*MockGCSManagerMockRecorder) UploadFile ¶ added in v1.0.1
func (mr *MockGCSManagerMockRecorder) UploadFile(bucketName, objectName, file interface{}) *gomock.Call
UploadFile indicates an expected call of UploadFile.