azblobfs_disabled.go 399 B

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