sftpgo-mirror/vfs/azblobfs_disabled.go

34 lines
1 KiB
Go
Raw Normal View History

// Copyright (C) 2019-2022 Nicola Murino
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published
// by the Free Software Foundation, version 3.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.
//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")
}