blobwebdav

package
v0.0.0-...-3cb0c2f Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2023 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Webdav

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

func New

func New(server, collection, user, pass string) (*Webdav, error)

New returns a new webdav storage backend.

func (*Webdav) DeleteBlobData

func (w *Webdav) DeleteBlobData(ctx context.Context, id blid.Blid) (bool, error)

DeleteBlobData removes data from the backend.

func (*Webdav) GetBlobReader

func (w *Webdav) GetBlobReader(ctx context.Context, offset uint64, id blid.Blid) (io.ReadCloser, bool, error)

GetBlobReader returns a blob reader of the given id.

func (*Webdav) GetBlobWriter

func (w *Webdav) GetBlobWriter(ctx context.Context, id blid.Blid) (io.Writer, func(bool) error, error)

GetBlobWriter acquires a writer for the given blob id.

func (*Webdav) String

func (w *Webdav) String() string

String implements the stringer interface for this package.

Jump to

Keyboard shortcuts

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