gcsfs_disabled.go 368 B

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