gcsfs_disabled.go 337 B

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