Documentation ¶
Index ¶
- func NewSDK(c config.S3Cli) (*s3.S3, error)
- func Sign(req *request.Request)
- type S3Blobstore
- func (client *S3Blobstore) Delete(dest string) error
- func (client *S3Blobstore) Exists(dest string) (bool, error)
- func (client *S3Blobstore) Get(src string, dest io.WriterAt) error
- func (client *S3Blobstore) Put(src io.ReadSeeker, dest string) error
- func (client *S3Blobstore) Sign(objectID string, action string, expiration time.Duration) (string, error)
- type SignURLProvider
- type SwiftBlobstore
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type S3Blobstore ¶
type S3Blobstore struct {
// contains filtered or unexported fields
}
S3Blobstore encapsulates interactions with an S3 compatible blobstore
func (*S3Blobstore) Delete ¶
func (client *S3Blobstore) Delete(dest string) error
Delete removes a blob from an S3 compatible blobstore. If the object does not exist, Delete does not return an error.
func (*S3Blobstore) Exists ¶
func (client *S3Blobstore) Exists(dest string) (bool, error)
Exists checks if blob exists in an S3 compatible blobstore
func (*S3Blobstore) Get ¶
func (client *S3Blobstore) Get(src string, dest io.WriterAt) error
Get fetches a blob from an S3 compatible blobstore Destination will be overwritten if exists
func (*S3Blobstore) Put ¶
func (client *S3Blobstore) Put(src io.ReadSeeker, dest string) error
Put uploads a blob to an S3 compatible blobstore
type SignURLProvider ¶ added in v0.0.287
type SignURLProvider interface {
Sign(action string, objectID string, expiration time.Duration) (string, error)
}
func NewSignURLProvider ¶ added in v0.0.287
func NewSignURLProvider(s3BlobstoreClient S3Blobstore, s3cliConfig *config.S3Cli) (SignURLProvider, error)
type SwiftBlobstore ¶ added in v0.0.287
type SwiftBlobstore struct {
// contains filtered or unexported fields
}
func NewSwiftClient ¶ added in v0.0.287
func NewSwiftClient(s3cliConfig *config.S3Cli) SwiftBlobstore
Click to show internal directories.
Click to hide internal directories.