Documentation
¶
Index ¶
- Variables
- type Client
- type Webdav
- func (w *Webdav) Init(cfg config.StorageConfig) error
- func (w *Webdav) JoinStoragePath(task types.Task) string
- func (w *Webdav) Name() string
- func (w *Webdav) NewUploadStream(ctx context.Context, storagePath string) (io.WriteCloser, error)
- func (w *Webdav) Save(ctx context.Context, filePath, storagePath string) error
- func (w *Webdav) Type() types.StorageType
- type WebdavWriter
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrFailedToCreateDirectory = errors.New("webdav: failed to create directory") ErrFailedToWriteFile = errors.New("webdav: failed to write file") )
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
BaseURL string
Username string
Password string
// contains filtered or unexported fields
}
type Webdav ¶
type Webdav struct {
// contains filtered or unexported fields
}
func (*Webdav) JoinStoragePath ¶ added in v0.11.0
func (*Webdav) NewUploadStream ¶ added in v0.15.0
func (*Webdav) Type ¶ added in v0.11.0
func (w *Webdav) Type() types.StorageType
type WebdavWriter ¶ added in v0.15.0
type WebdavWriter struct {
// contains filtered or unexported fields
}
func (*WebdavWriter) Close ¶ added in v0.15.0
func (w *WebdavWriter) Close() error
Click to show internal directories.
Click to hide internal directories.