sftpgo-mirror/vfs/s3fs_disabled.go

20 lines
343 B
Go
Raw Normal View History

//go:build nos3
// +build nos3
package vfs
import (
"errors"
2021-06-26 05:31:41 +00:00
"github.com/drakkan/sftpgo/v2/version"
)
func init() {
2020-06-19 15:08:51 +00:00
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")
}