sftpgo-mirror/vfs/gcsfs_disabled.go
2021-06-26 07:31:41 +02:00

18 lines
351 B
Go

// +build nogcs
package vfs
import (
"errors"
"github.com/drakkan/sftpgo/v2/version"
)
func init() {
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")
}