azblobfs_disabled.go 365 B

123456789101112131415161718
  1. // +build noazblob
  2. package vfs
  3. import (
  4. "errors"
  5. "github.com/drakkan/sftpgo/version"
  6. )
  7. func init() {
  8. version.AddFeature("-azblob")
  9. }
  10. // NewAzBlobFs returns an error, Azure Blob storage is disabled
  11. func NewAzBlobFs(connectionID, localTempDir string, config AzBlobFsConfig) (Fs, error) {
  12. return nil, errors.New("Azure Blob Storage disabled at build time")
  13. }