Documentation ¶
Index ¶
- func NewAliyunFile() file.File
- type AliyunFile
- func (s *AliyunFile) Del(ctx context.Context, request *file.DelRequest) error
- func (s *AliyunFile) Get(ctx context.Context, st *file.GetFileStu) (io.ReadCloser, error)
- func (s *AliyunFile) Init(ctx context.Context, metadata *file.FileConfig) error
- func (s *AliyunFile) List(ctx context.Context, request *file.ListRequest) (*file.ListResp, error)
- func (s *AliyunFile) Put(ctx context.Context, st *file.PutFileStu) error
- func (s *AliyunFile) Stat(ctx context.Context, request *file.FileMetaRequest) (*file.FileMetaResp, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAliyunFile ¶
Types ¶
type AliyunFile ¶
type AliyunFile struct {
// contains filtered or unexported fields
}
AliyunFile is a binding for an AliCloud OSS storage bucketKey
func (*AliyunFile) Del ¶
func (s *AliyunFile) Del(ctx context.Context, request *file.DelRequest) error
func (*AliyunFile) Get ¶
func (s *AliyunFile) Get(ctx context.Context, st *file.GetFileStu) (io.ReadCloser, error)
func (*AliyunFile) Init ¶
func (s *AliyunFile) Init(ctx context.Context, metadata *file.FileConfig) error
Init does metadata parsing and connection creation
func (*AliyunFile) List ¶
func (s *AliyunFile) List(ctx context.Context, request *file.ListRequest) (*file.ListResp, error)
func (*AliyunFile) Put ¶
func (s *AliyunFile) Put(ctx context.Context, st *file.PutFileStu) error
func (*AliyunFile) Stat ¶
func (s *AliyunFile) Stat(ctx context.Context, request *file.FileMetaRequest) (*file.FileMetaResp, error)
Click to show internal directories.
Click to hide internal directories.