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