Documentation
¶
Index ¶
- type Chustorage
- func (chustorage *Chustorage) DeleteFile(ctx context.Context, bucket, bucketFilename string) error
- func (chustorage *Chustorage) DownloadFile(ctx context.Context, bucket, bucketFilename string, fileWriter io.Writer) error
- func (chustorage *Chustorage) ReadFile(ctx context.Context, bucket, bucketFilename string) ([]byte, error)
- func (chustorage *Chustorage) UploadFile(ctx context.Context, bucket, bucketFilename string, fileReader io.Reader) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Chustorage ¶
Chustorage - Google Cloud Storage (GCS) wrapper
func (*Chustorage) DeleteFile ¶
func (chustorage *Chustorage) DeleteFile(ctx context.Context, bucket, bucketFilename string) error
DeleteFile - Delete file from storage.
func (*Chustorage) DownloadFile ¶
func (chustorage *Chustorage) DownloadFile(ctx context.Context, bucket, bucketFilename string, fileWriter io.Writer) error
DownloadFile - Download file from storage.
func (*Chustorage) ReadFile ¶
func (chustorage *Chustorage) ReadFile(ctx context.Context, bucket, bucketFilename string) ([]byte, error)
ReadFile - Read file from storage as raw bytes.
func (*Chustorage) UploadFile ¶
func (chustorage *Chustorage) UploadFile(ctx context.Context, bucket, bucketFilename string, fileReader io.Reader) error
UploadFile - Upload file to storage.
Click to show internal directories.
Click to hide internal directories.