Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,8 @@ else ()
elseif ("${BACKEND}" STREQUAL "bolt")
set (DVID_BACKEND_DEPEND "gobolt" ${DVID_BACKEND_DEPEND})
message ("Installing pure Go LMDB-inspired Bolt key-value store.")
elseif ("${BACKEND}" STREQUAL "gbucket")
message ("Installing Google's Bucket store.")
elseif ("${BACKEND}" STREQUAL "couchbase" ${DVID_BACKEND_DEPEND})
message (FATAL_ERROR "Couchbase is currently not supported as a DVID storage engine.")
endif ()
Expand Down Expand Up @@ -153,7 +155,12 @@ else ()
${BUILDEM_ENV_STRING} go get ${GO_GET} gopkg.in/natefinch/lumberjack.v2
COMMENT "Adding lumberjack library...")

set (DVID_DEP_GO_PACKAGES gopackages gojsonschema goji msgp context lumberjack)
add_custom_target (gcloud
${BUILDEM_ENV_STRING} go get ${GO_GET} golang.org/x/net/context
COMMAND ${BUILDEM_ENV_STRING} go get ${GO_GET} google.golang.org/cloud/storage
COMMENT "Adding gcloud packages...")

set (DVID_DEP_GO_PACKAGES gopackages gojsonschema goji msgp context lumberjack gcloud)

add_custom_target (nrsc
${BUILDEM_ENV_STRING} ${GO_ENV} go build -o ${BUILDEM_BIN_DIR}/nrsc
Expand Down
5 changes: 5 additions & 0 deletions datastore/gbucket.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
// +build gbucket

package datastore

import _ "github.com/janelia-flyem/dvid/storage/gbucket"
3 changes: 3 additions & 0 deletions dvid/storage.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,7 @@ type EngineConfig struct {

// Testing is true if this store is to be used for testing.
Testing bool

// Bucket is name of Google Bucket
Bucket string
}
Loading