sftpgo-mirror/vfs/azblobfs_disabled.go

20 lines
399 B
Go
Raw Normal View History

//go:build noazblob
2020-10-25 07:18:48 +00:00
// +build noazblob
package vfs
import (
"errors"
2021-06-26 05:31:41 +00:00
"github.com/drakkan/sftpgo/v2/version"
2020-10-25 07:18:48 +00:00
)
func init() {
version.AddFeature("-azblob")
}
// NewAzBlobFs returns an error, Azure Blob storage is disabled
func NewAzBlobFs(connectionID, localTempDir, mountPath string, config AzBlobFsConfig) (Fs, error) {
2020-10-25 07:18:48 +00:00
return nil, errors.New("Azure Blob Storage disabled at build time")
}