Documentation ¶
Index ¶
- type Context
- type Service
- func (s *Service) AsyncUpload(opts *UploadOptions) (respchan chan *UploadResponse)
- func (s *Service) GetBucket() string
- func (s *Service) GetEndPoint() string
- func (s *Service) GetLocation(objname string) string
- func (s *Service) SetBucket(bucket string)
- func (s *Service) SetEndPoint(endpoint string)
- func (s *Service) Upload(opts *UploadOptions) (resp *UploadResponse)
- type UploadOptions
- type UploadResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
Service service defines context
func (*Service) AsyncUpload ¶
func (s *Service) AsyncUpload(opts *UploadOptions) (respchan chan *UploadResponse)
AsyncUpload async upload
func (*Service) GetLocation ¶
GetLocation get location
func (*Service) SetEndPoint ¶
SetEndPoint set endpoint
func (*Service) Upload ¶
func (s *Service) Upload(opts *UploadOptions) (resp *UploadResponse)
Upload upload file
type UploadOptions ¶
type UploadOptions struct { ObjectName string Public bool Expire time.Duration IsFolder bool // Is file or folder ParentFolder string // Parent folder Meta map[string]string }
UploadOptions upload response
type UploadResponse ¶
UploadResponse upload response
Click to show internal directories.
Click to hide internal directories.