Documentation ¶
Index ¶
- type Service
- func (s *Service) Add(c context.Context, ap *model.AddParam) (err error)
- func (s *Service) AddBucket(c context.Context, abp *model.AddBucketParam) (err error)
- func (s *Service) AddDir(c context.Context, adp *model.AddDirParam) (err error)
- func (s *Service) Close()
- func (s *Service) Delete(c context.Context, dp *model.DeleteParam) (err error)
- func (s *Service) DeleteRaw(c context.Context, dp *model.DeleteRawParam) (err error)
- func (s *Service) DeleteV2(c context.Context, dp *model.DeleteV2Param) (err error)
- func (s *Service) DetailBucket(c context.Context, bucketName string) (bucket *model.Bucket, err error)
- func (s *Service) List(c context.Context, lp *model.ListParam) (listResSlice []*model.Record, err error)
- func (s *Service) ListBucket(c context.Context, lbp *model.ListBucketParam) (bucketPage *model.BucketListPage, err error)
- func (s *Service) ListPublicBucket(c context.Context, lbp *model.ListBucketParam) (bucketPage *model.BucketListPage, err error)
- func (s *Service) MultiList(c context.Context, lp *model.MultiListParam) (result []*model.MultiListResult, err error)
- func (s *Service) Ping(c context.Context) (err error)
- func (s *Service) UploadAdminRecord(ctx context.Context, action string, up *model.UploadParam, data []byte) (result *model.UploadResult, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service struct
func (*Service) DetailBucket ¶
func (s *Service) DetailBucket(c context.Context, bucketName string) (bucket *model.Bucket, err error)
DetailBucket .
func (*Service) List ¶
func (s *Service) List(c context.Context, lp *model.ListParam) (listResSlice []*model.Record, err error)
List lists records
func (*Service) ListBucket ¶
func (s *Service) ListBucket(c context.Context, lbp *model.ListBucketParam) (bucketPage *model.BucketListPage, err error)
ListBucket .
func (*Service) ListPublicBucket ¶
func (s *Service) ListPublicBucket(c context.Context, lbp *model.ListBucketParam) (bucketPage *model.BucketListPage, err error)
ListPublicBucket .
func (*Service) MultiList ¶
func (s *Service) MultiList(c context.Context, lp *model.MultiListParam) (result []*model.MultiListResult, err error)
MultiList lists records from multi bucket
func (*Service) UploadAdminRecord ¶
func (s *Service) UploadAdminRecord(ctx context.Context, action string, up *model.UploadParam, data []byte) (result *model.UploadResult, err error)
UploadAdminRecord upload file to bfs
Click to show internal directories.
Click to hide internal directories.