ezstorage

package module
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 22, 2024 License: MIT Imports: 6 Imported by: 0

README

EZ Storage

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

Directories

Path Synopsis
internal
aws
gcp

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL