mirror of
https://github.com/drakkan/sftpgo.git
synced 2025-11-23 22:04:50 +02:00
The following build tags are available: - "nogcs", disable Google Cloud Storage backend - "nos3", disable S3 Compabible Object Storage backends - "nobolt", disable Bolt data provider - "nomysql", disable MySQL data provider - "nopgsql", disable PostgreSQL data provider - "nosqlite", disable SQLite data provider - "noportable", disable portable mode
19 lines
333 B
Go
19 lines
333 B
Go
// +build nogcs
|
|
|
|
package vfs
|
|
|
|
import (
|
|
"errors"
|
|
|
|
"github.com/drakkan/sftpgo/utils"
|
|
)
|
|
|
|
func init() {
|
|
utils.AddFeature("-gcs")
|
|
}
|
|
|
|
// NewGCSFs returns an error, GCS is disabled
|
|
func NewGCSFs(connectionID, localTempDir string, config GCSFsConfig) (Fs, error) {
|
|
return nil, errors.New("Google Cloud Storage disabled at build time")
|
|
}
|