Documentation ¶
Index ¶
- type GcpClient
- func (gcp *GcpClient) DeleteFolder(ctx context.Context, bucket, path string) (err error)
- func (gcp *GcpClient) GetAttributes(ctx context.Context, bucket, path string) (attrs *model.ObjAttrs, err error)
- func (gcp *GcpClient) GetPathSize(ctx context.Context, bucket string, path string) (size int64, err error)
- func (gcp *GcpClient) GetSignedDownloadURL(ctx context.Context, bucket, path string, expiry time.Time) (url string, err error)
- func (gcp *GcpClient) GetSignedUploadUrl(ctx context.Context, bucket, path string, expiry time.Time) (url string, err error)
- func (gcp *GcpClient) ListBuckets(ctx context.Context, projectId string) (buckets []string, err error)
- func (gcp *GcpClient) ListObjects(ctx context.Context, bucket string, path string) (objs []string, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GcpClient ¶
type GcpClient struct {
// contains filtered or unexported fields
}
func NewGcpClient ¶
func (*GcpClient) DeleteFolder ¶
deletes a folder in a bucket at a given path
func (*GcpClient) GetAttributes ¶
func (*GcpClient) GetPathSize ¶
func (gcp *GcpClient) GetPathSize(ctx context.Context, bucket string, path string) (size int64, err error)
returns the size of a folder in MB in a bucket at a given path
func (*GcpClient) GetSignedDownloadURL ¶
func (gcp *GcpClient) GetSignedDownloadURL(ctx context.Context, bucket, path string, expiry time.Time) (url string, err error)
returns a signed download URL for a file in a bucket at a given path
func (*GcpClient) GetSignedUploadUrl ¶
Click to show internal directories.
Click to hide internal directories.