Documentation ¶
Index ¶
- Constants
- func Module(scope string) fx.Option
- type BucketConnector
- func (c *BucketConnector) DeleteFile(filePath string) error
- func (c *BucketConnector) DeleteFileWithPrefix(filePath string) error
- func (c *BucketConnector) GetBucket() *storage.BucketHandle
- func (c *BucketConnector) GetClient() *storage.Client
- func (c *BucketConnector) SaveFile(req *UploaderReq) (string, error)
- func (c *BucketConnector) WriteAsFile(filePath string, content []byte) (string, error)
- type Params
- type UploaderReq
Constants ¶
View Source
const ( DefaultBucketName = "example.com" DefaultJsonKey = "gcp.json" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BucketConnector ¶
type BucketConnector struct {
// contains filtered or unexported fields
}
func (*BucketConnector) DeleteFile ¶ added in v0.0.7
func (c *BucketConnector) DeleteFile(filePath string) error
func (*BucketConnector) DeleteFileWithPrefix ¶ added in v0.0.7
func (c *BucketConnector) DeleteFileWithPrefix(filePath string) error
func (*BucketConnector) GetBucket ¶ added in v0.0.7
func (c *BucketConnector) GetBucket() *storage.BucketHandle
func (*BucketConnector) GetClient ¶ added in v0.0.4
func (c *BucketConnector) GetClient() *storage.Client
func (*BucketConnector) SaveFile ¶
func (c *BucketConnector) SaveFile(req *UploaderReq) (string, error)
func (*BucketConnector) WriteAsFile ¶ added in v0.0.6
func (c *BucketConnector) WriteAsFile(filePath string, content []byte) (string, error)
type UploaderReq ¶
Click to show internal directories.
Click to hide internal directories.