s3fs_disabled.go 343 B

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