Documentation ¶
Overview ¶
Package s3backend expose S3 interaction capabilities backended by the FileManager package. All operations are managed by a concurrent working queue and tend to be asyncronous.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Session ¶
type Session struct { // exposed vars ErrorChan chan error // returned errors; UploadedChan chan ct.OpResult // status of uploads; DownloadedChan chan ct.OpResult // return chan for async downloaded chunks; DeletedChan chan ct.OpResult // manage deletion results from wq. // contains filtered or unexported fields }
Session struct is composed of several private fields and expose the async mechanism chans.
func NewSession ¶
func NewSession(endpoint, region, id, secret, token string, workersize, queuesize int, verbose bool) (*Session, error)
NewSession initialise a new S3 session for the file storage capabilities-
func (*Session) Close ¶
func (bs *Session) Close()
Close close the actual opened connection with S3 storage, should normally be used with the defer keyword after invoking the NewSession function.
Click to show internal directories.
Click to hide internal directories.