Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type StorageConfig ¶
type StorageConfig struct { Type string Context context.Context GcsOption []option.ClientOption }
type StorageFunctioner ¶
type StorageFunctioner interface { ListBuckets(ctx context.Context, projectId string) (buckets []string, err error) ListObjects(ctx context.Context, bucket, path string) (objs []string, err error) GetPathSize(ctx context.Context, bucket string, path string) (size int64, err error) DeleteFolder(ctx context.Context, bucket, path string) (err error) GetSignedDownloadURL(ctx context.Context, bucket, path string, expiry time.Time) (url string, err error) GetSignedUploadUrl(ctx context.Context, bucket, path string, expiry time.Time) (url string, err error) GetAttributes(ctx context.Context, bucket, path string) (attrs *model.ObjAttrs, err error) }
func NewClient ¶
func NewClient(configs StorageConfig) (storageClient StorageFunctioner, err error)
todo: Implement AWS client
Click to show internal directories.
Click to hide internal directories.