Versions in this module Expand all Collapse all v6 v6.0.0 Dec 23, 2020 Changes in this version + const TEST_FILE_PATH + func CheckMandatoryS3Fields(settings *model.FileSettings) error + type FileBackend interface + AppendFile func(fr io.Reader, path string) (int64, error) + CopyFile func(oldPath, newPath string) error + FileExists func(path string) (bool, error) + FileSize func(path string) (int64, error) + ListDirectory func(path string) (*[]string, error) + MoveFile func(oldPath, newPath string) error + ReadFile func(path string) ([]byte, error) + Reader func(path string) (ReadCloseSeeker, error) + RemoveDirectory func(path string) error + RemoveFile func(path string) error + TestConnection func() error + WriteFile func(fr io.Reader, path string) (int64, error) + func NewFileBackend(settings *model.FileSettings, enableComplianceFeatures bool) (FileBackend, error) + type LocalFileBackend struct + func (b *LocalFileBackend) AppendFile(fr io.Reader, path string) (int64, error) + func (b *LocalFileBackend) CopyFile(oldPath, newPath string) error + func (b *LocalFileBackend) FileExists(path string) (bool, error) + func (b *LocalFileBackend) FileSize(path string) (int64, error) + func (b *LocalFileBackend) ListDirectory(path string) (*[]string, error) + func (b *LocalFileBackend) MoveFile(oldPath, newPath string) error + func (b *LocalFileBackend) ReadFile(path string) ([]byte, error) + func (b *LocalFileBackend) Reader(path string) (ReadCloseSeeker, error) + func (b *LocalFileBackend) RemoveDirectory(path string) error + func (b *LocalFileBackend) RemoveFile(path string) error + func (b *LocalFileBackend) TestConnection() error + func (b *LocalFileBackend) WriteFile(fr io.Reader, path string) (int64, error) + type ReadCloseSeeker interface + type S3FileBackend struct + func NewS3FileBackend(settings *model.FileSettings, enableComplianceFeatures bool) (*S3FileBackend, error) + func (b *S3FileBackend) AppendFile(fr io.Reader, path string) (int64, error) + func (b *S3FileBackend) CopyFile(oldPath, newPath string) error + func (b *S3FileBackend) FileExists(path string) (bool, error) + func (b *S3FileBackend) FileSize(path string) (int64, error) + func (b *S3FileBackend) ListDirectory(path string) (*[]string, error) + func (b *S3FileBackend) MoveFile(oldPath, newPath string) error + func (b *S3FileBackend) ReadFile(path string) ([]byte, error) + func (b *S3FileBackend) Reader(path string) (ReadCloseSeeker, error) + func (b *S3FileBackend) RemoveDirectory(path string) error + func (b *S3FileBackend) RemoveFile(path string) error + func (b *S3FileBackend) TestConnection() error + func (b *S3FileBackend) WriteFile(fr io.Reader, path string) (int64, error) Other modules containing this package github.com/adacta-ru/mattermost-server github.com/adacta-ru/mattermost-server/v5