Documentation
¶
Index ¶
- type GoogleCloudStorage
- func (g *GoogleCloudStorage) BucketPath() string
- func (g *GoogleCloudStorage) Close()
- func (g *GoogleCloudStorage) IssueSignedUrl(remotePath string, method string, expires time.Duration) (string, error)
- func (g *GoogleCloudStorage) UploadFile(reader io.Reader, remotePath string, compress bool) error
- type MinioStorage
- type MockStorage
- type Storage
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GoogleCloudStorage ¶
type GoogleCloudStorage struct {
// contains filtered or unexported fields
}
func NewGoogleCloudStorage ¶
func NewGoogleCloudStorage(ctx context.Context, bucket string) (*GoogleCloudStorage, error)
func (*GoogleCloudStorage) BucketPath ¶
func (g *GoogleCloudStorage) BucketPath() string
func (*GoogleCloudStorage) Close ¶
func (g *GoogleCloudStorage) Close()
func (*GoogleCloudStorage) IssueSignedUrl ¶
func (*GoogleCloudStorage) UploadFile ¶
type MinioStorage ¶
type MinioStorage struct {
// contains filtered or unexported fields
}
func NewMinioStorage ¶
func NewMinioStorage(ctx context.Context, bucket string) (*MinioStorage, error)
func (*MinioStorage) BucketPath ¶
func (m *MinioStorage) BucketPath() string
func (*MinioStorage) Close ¶
func (m *MinioStorage) Close()
func (*MinioStorage) IssueSignedUrl ¶
func (*MinioStorage) UploadFile ¶
compress parameter hasn't been implemented for minio client
type MockStorage ¶
type MockStorage struct {
// contains filtered or unexported fields
}
A mock storage only used for job service testing
func NewMockStorage ¶
func NewMockStorage(ctx context.Context) *MockStorage
func (*MockStorage) BucketPath ¶
func (m *MockStorage) BucketPath() string
func (*MockStorage) Close ¶
func (m *MockStorage) Close()
func (*MockStorage) IssueSignedUrl ¶
func (*MockStorage) UploadFile ¶
Click to show internal directories.
Click to hide internal directories.