sftpgo-mirror/vfs/gcsfs_disabled.go

20 lines
368 B
Go
Raw Normal View History

//go:build nogcs
// +build nogcs
package vfs
import (
"errors"
2021-06-26 05:31:41 +00:00
"github.com/drakkan/sftpgo/v2/version"
)
func init() {
2020-06-19 15:08:51 +00:00
version.AddFeature("-gcs")
}
// NewGCSFs returns an error, GCS is disabled
func NewGCSFs(connectionID, localTempDir, mountPath string, config GCSFsConfig) (Fs, error) {
return nil, errors.New("Google Cloud Storage disabled at build time")
}