s3fs_disabled.go 327 B

123456789101112131415161718
  1. // +build nos3
  2. package vfs
  3. import (
  4. "errors"
  5. "github.com/drakkan/sftpgo/v2/version"
  6. )
  7. func init() {
  8. version.AddFeature("-s3")
  9. }
  10. // NewS3Fs returns an error, S3 is disabled
  11. func NewS3Fs(connectionID, localTempDir, mountPath string, config S3FsConfig) (Fs, error) {
  12. return nil, errors.New("S3 disabled at build time")
  13. }