client

package
v0.0.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 17, 2026 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BlobProperties added in v0.0.8

type BlobProperties struct {
	ETag          string    `json:"etag,omitempty"`
	LastModified  time.Time `json:"last_modified,omitempty"`
	ContentLength *int64    `json:"content_length,omitempty"`
}

type DavBlobstore added in v0.0.8

type DavBlobstore struct {
	// contains filtered or unexported fields
}

func New added in v0.0.8

func New(config davconf.Config) (*DavBlobstore, error)

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) Sign added in v0.0.8

func (d *DavBlobstore) Sign(dest string, action string, expiration time.Duration) (string, error)

func (*DavBlobstore) SignInternal added in v0.0.8

func (d *DavBlobstore) SignInternal(dest string, action string, expiration time.Duration) (string, error)

func (*DavBlobstore) SignPublic added in v0.0.8

func (d *DavBlobstore) SignPublic(dest string, action string, expiration time.Duration) (string, error)

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

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL