2021-08-19 13:51:43 +00:00
|
|
|
//go:build nos3
|
2020-05-23 09:58:05 +00:00
|
|
|
// +build nos3
|
|
|
|
|
|
|
|
package vfs
|
|
|
|
|
|
|
|
import (
|
|
|
|
"errors"
|
|
|
|
|
2021-06-26 05:31:41 +00:00
|
|
|
"github.com/drakkan/sftpgo/v2/version"
|
2020-05-23 09:58:05 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
func init() {
|
2020-06-19 15:08:51 +00:00
|
|
|
version.AddFeature("-s3")
|
2020-05-23 09:58:05 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// NewS3Fs returns an error, S3 is disabled
|
2021-03-21 18:15:47 +00:00
|
|
|
func NewS3Fs(connectionID, localTempDir, mountPath string, config S3FsConfig) (Fs, error) {
|
2020-05-23 09:58:05 +00:00
|
|
|
return nil, errors.New("S3 disabled at build time")
|
|
|
|
}
|