Documentation ¶
Index ¶
- func NewFile(mgr *S3Manager, object *minio.Object, name string, memoryUploadMode bool, ...) *file
- type Connector
- type S3Manager
- func (s *S3Manager) AWSClient() (*awsclient.AWSClient, error)
- func (s *S3Manager) BucketName() string
- func (s *S3Manager) Chmod(ppath string, mode os.FileMode) error
- func (s *S3Manager) Chown(ppath string, uid, gid int) error
- func (s *S3Manager) Clear(ctx context.Context) error
- func (s *S3Manager) Client() (*minio.Client, error)
- func (s *S3Manager) ConnError() error
- func (s *S3Manager) Connect() (*minio.Client, error)
- func (s *S3Manager) Copy(ctx context.Context, from, to string) error
- func (s *S3Manager) CreateFile(ctx echo.Context, ppath string, content string, encoding string) (err error)
- func (s *S3Manager) Download(ctx echo.Context, ppath string) error
- func (s *S3Manager) Edit(ctx echo.Context, ppath string, content string, encoding string) (interface{}, error)
- func (s *S3Manager) ErrIsAccessDenied(err error) bool
- func (s *S3Manager) ErrIsNotExist(err error) bool
- func (s *S3Manager) Exists(ctx context.Context, ppath string) (bool, error)
- func (s *S3Manager) FPutObject(ctx context.Context, filePath string, objectName string) (int64, error)
- func (s *S3Manager) Get(ctx context.Context, ppath string) (*minio.Object, error)
- func (s *S3Manager) GetCORSRules() ([]*s3.CORSRule, error)
- func (s *S3Manager) List(ctx echo.Context, ppath string, sortBy ...string) (dirs []os.FileInfo, exit bool, err error)
- func (s *S3Manager) ListTransfer(dirs []os.FileInfo) (dirList []echo.H, fileList []echo.H)
- func (s *S3Manager) Mkbucket(ctx context.Context, bucketName string, regions ...string) error
- func (s *S3Manager) Mkdir(ctx context.Context, ppath, newName string) error
- func (s *S3Manager) Move(ctx context.Context, from, to string) error
- func (s *S3Manager) PresignedPutObject(ctx context.Context, objectName string, expires time.Duration) (putURL *url.URL, err error)
- func (s *S3Manager) Put(ctx context.Context, reader io.Reader, objectName string, size int64) (err error)
- func (s *S3Manager) PutCORSRule(ctx echo.Context) error
- func (s *S3Manager) PutObject(ctx context.Context, reader io.Reader, objectName string, size int64) (int64, error)
- func (s *S3Manager) Remove(ctx context.Context, ppath string) error
- func (s *S3Manager) RemoveDir(ctx context.Context, ppath string) error
- func (s *S3Manager) Rename(ctx context.Context, ppath, newName string) error
- func (s *S3Manager) Search(ctx context.Context, ppath string, prefix string, num int) []string
- func (s *S3Manager) SetBucketName(bucketName string) *S3Manager
- func (s *S3Manager) Stat(ctx context.Context, ppath string) (minio.ObjectInfo, error)
- func (s *S3Manager) StatIsExists(f minio.ObjectInfo, err error) (bool, error)
- func (s *S3Manager) Upload(ctx echo.Context, ppath string, chunkUpload *uploadClient.ChunkUpload, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type S3Manager ¶
type S3Manager struct { EditableMaxSize int // contains filtered or unexported fields }
func New ¶
func New(connector Connector, config *dbschema.NgingCloudStorage, editableMaxSize int) *S3Manager
func (*S3Manager) BucketName ¶
func (*S3Manager) CreateFile ¶
func (*S3Manager) ErrIsAccessDenied ¶ added in v5.2.1
func (*S3Manager) ErrIsNotExist ¶
func (*S3Manager) FPutObject ¶
func (*S3Manager) GetCORSRules ¶ added in v5.2.6
func (*S3Manager) ListTransfer ¶
func (*S3Manager) PresignedPutObject ¶
func (s *S3Manager) PresignedPutObject(ctx context.Context, objectName string, expires time.Duration) (putURL *url.URL, err error)
PresignedPutObject 获取直链上传url
func (*S3Manager) Put ¶
func (s *S3Manager) Put(ctx context.Context, reader io.Reader, objectName string, size int64) (err error)
Put 提交数据
func (*S3Manager) PutCORSRule ¶ added in v5.2.6
func (*S3Manager) SetBucketName ¶
func (*S3Manager) StatIsExists ¶
StatIsExists 对象是否存在
func (*S3Manager) Upload ¶
func (s *S3Manager) Upload(ctx echo.Context, ppath string, chunkUpload *uploadClient.ChunkUpload, chunkOpts ...uploadClient.ChunkInfoOpter) error
Click to show internal directories.
Click to hide internal directories.