sftpgo-mirror/vfs/s3fs_disabled.go
2021-03-21 19:15:47 +01:00

18 lines
324 B
Go

// +build nos3
package vfs
import (
"errors"
"github.com/drakkan/sftpgo/version"
)
func init() {
version.AddFeature("-s3")
}
// NewS3Fs returns an error, S3 is disabled
func NewS3Fs(connectionID, localTempDir, mountPath string, config S3FsConfig) (Fs, error) {
return nil, errors.New("S3 disabled at build time")
}