Documentation ¶
Index ¶
- Variables
- type FSBackend
- type FileInfo
- type MinioClient
- func (mc *MinioClient) DeleteFile(filename string) error
- func (mc *MinioClient) GetFile(filename string) (io.ReadCloser, error)
- func (mc *MinioClient) HeadFile(filename string) (*FileInfo, error)
- func (mc *MinioClient) ListFolder(folder string) ([]string, error)
- func (mc *MinioClient) PutFile(filename string, contentType string, override bool, fileReader io.Reader) (int64, error)
- func (mc *MinioClient) Start() error
- func (mc *MinioClient) Stop() error
- type SambaClient
- func (c *SambaClient) DeleteFile(filename string) error
- func (c *SambaClient) GetFile(filename string) (io.ReadCloser, error)
- func (c *SambaClient) HeadFile(filename string) (*FileInfo, error)
- func (c *SambaClient) PutFile(filename string, contentType string, override bool, fileReader io.Reader) (int64, error)
- func (c *SambaClient) Start() error
- func (c *SambaClient) Stop() error
- type WebdavClient
- func (c *WebdavClient) DeleteFile(filename string) error
- func (c *WebdavClient) GetFile(filename string) (io.ReadCloser, error)
- func (c *WebdavClient) HeadFile(filename string) (*FileInfo, error)
- func (c *WebdavClient) PutFile(filename string, contentType string, override bool, fileReader io.Reader) (int64, error)
- func (c *WebdavClient) Start() error
- func (c *WebdavClient) Stop() error
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrFileNotFound = errors.New("file not found")
Functions ¶
This section is empty.
Types ¶
type MinioClient ¶
type MinioClient struct {
// contains filtered or unexported fields
}
func NewMinioClient ¶
func NewMinioClient(config *configs.MinioConfig) *MinioClient
func (*MinioClient) DeleteFile ¶
func (mc *MinioClient) DeleteFile(filename string) error
func (*MinioClient) GetFile ¶
func (mc *MinioClient) GetFile(filename string) (io.ReadCloser, error)
func (*MinioClient) ListFolder ¶
func (mc *MinioClient) ListFolder(folder string) ([]string, error)
func (*MinioClient) Start ¶
func (mc *MinioClient) Start() error
func (*MinioClient) Stop ¶
func (mc *MinioClient) Stop() error
type SambaClient ¶
type SambaClient struct {
// contains filtered or unexported fields
}
func NewSambaClient ¶
func NewSambaClient(config *configs.SambaConfig) *SambaClient
func (*SambaClient) DeleteFile ¶
func (c *SambaClient) DeleteFile(filename string) error
func (*SambaClient) GetFile ¶
func (c *SambaClient) GetFile(filename string) (io.ReadCloser, error)
func (*SambaClient) Start ¶
func (c *SambaClient) Start() error
func (*SambaClient) Stop ¶
func (c *SambaClient) Stop() error
type WebdavClient ¶
type WebdavClient struct {
// contains filtered or unexported fields
}
func NewWebdavClient ¶
func NewWebdavClient(config *configs.WebdavConfig) *WebdavClient
func (*WebdavClient) DeleteFile ¶
func (c *WebdavClient) DeleteFile(filename string) error
func (*WebdavClient) GetFile ¶
func (c *WebdavClient) GetFile(filename string) (io.ReadCloser, error)
func (*WebdavClient) Start ¶
func (c *WebdavClient) Start() error
func (*WebdavClient) Stop ¶
func (c *WebdavClient) Stop() error
Click to show internal directories.
Click to hide internal directories.