Documentation
¶
Index ¶
- type BlobProperties
- type DavBlobstore
- func (d *DavBlobstore) Copy(srcBlob string, dstBlob string) error
- func (d *DavBlobstore) Delete(dest string) error
- func (d *DavBlobstore) DeleteRecursive(prefix string) error
- func (d *DavBlobstore) EnsureStorageExists() error
- func (d *DavBlobstore) Exists(dest string) (bool, error)
- func (d *DavBlobstore) Get(source string, dest string) error
- func (d *DavBlobstore) List(prefix string) ([]string, error)
- func (d *DavBlobstore) Properties(dest string) error
- func (d *DavBlobstore) Put(sourceFilePath string, dest string) error
- func (d *DavBlobstore) Sign(dest string, action string, expiration time.Duration) (string, error)
- func (d *DavBlobstore) SignInternal(dest string, action string, expiration time.Duration) (string, error)
- func (d *DavBlobstore) SignPublic(dest string, action string, expiration time.Duration) (string, error)
- type StorageClient
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlobProperties ¶ added in v0.0.8
type DavBlobstore ¶ added in v0.0.8
type DavBlobstore struct {
// contains filtered or unexported fields
}
func NewWithStorageClient ¶ added in v0.0.8
func NewWithStorageClient(storageClient StorageClient) *DavBlobstore
func (*DavBlobstore) Copy ¶ added in v0.0.8
func (d *DavBlobstore) Copy(srcBlob string, dstBlob string) error
func (*DavBlobstore) Delete ¶ added in v0.0.8
func (d *DavBlobstore) Delete(dest string) error
func (*DavBlobstore) DeleteRecursive ¶ added in v0.0.8
func (d *DavBlobstore) DeleteRecursive(prefix string) error
func (*DavBlobstore) EnsureStorageExists ¶ added in v0.0.8
func (d *DavBlobstore) EnsureStorageExists() error
func (*DavBlobstore) Exists ¶ added in v0.0.8
func (d *DavBlobstore) Exists(dest string) (bool, error)
func (*DavBlobstore) Get ¶ added in v0.0.8
func (d *DavBlobstore) Get(source string, dest string) error
func (*DavBlobstore) List ¶ added in v0.0.8
func (d *DavBlobstore) List(prefix string) ([]string, error)
func (*DavBlobstore) Properties ¶ added in v0.0.8
func (d *DavBlobstore) Properties(dest string) error
func (*DavBlobstore) Put ¶ added in v0.0.8
func (d *DavBlobstore) Put(sourceFilePath string, dest string) error
func (*DavBlobstore) SignInternal ¶ added in v0.0.8
func (*DavBlobstore) SignPublic ¶ added in v0.0.8
type StorageClient ¶ added in v0.0.8
type StorageClient interface {
Get(path string) (content io.ReadCloser, err error)
Put(path string, content io.ReadCloser, contentLength int64) (err error)
Exists(path string) (bool, error)
Delete(path string) (err error)
DeleteRecursive(prefix string) error
Sign(objectID, action string, duration time.Duration) (string, error)
SignInternal(objectID, action string, duration time.Duration) (string, error)
SignPublic(objectID, action string, duration time.Duration) (string, error)
Copy(srcBlob, dstBlob string) error
List(prefix string) ([]string, error)
Properties(path string) error
EnsureStorageExists() error
}
func NewStorageClient ¶ added in v0.0.8
func NewStorageClient(config davconf.Config, httpClient httpclient.Client) StorageClient
Click to show internal directories.
Click to hide internal directories.