sftpgo-mirror/vfs/azblobfs_disabled.go
2021-03-21 19:15:47 +01:00

18 lines
376 B
Go

// +build noazblob
package vfs
import (
"errors"
"github.com/drakkan/sftpgo/version"
)
func init() {
version.AddFeature("-azblob")
}
// NewAzBlobFs returns an error, Azure Blob storage is disabled
func NewAzBlobFs(connectionID, localTempDir, mountPath string, config AzBlobFsConfig) (Fs, error) {
return nil, errors.New("Azure Blob Storage disabled at build time")
}