2011-06-04 04:52:56 +00:00
|
|
|
/*
|
|
|
|
Copyright 2011 Google Inc.
|
|
|
|
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
you may not use this file except in compliance with the License.
|
|
|
|
You may obtain a copy of the License at
|
|
|
|
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
See the License for the specific language governing permissions and
|
|
|
|
limitations under the License.
|
|
|
|
*/
|
|
|
|
|
2013-07-07 23:09:17 +00:00
|
|
|
/*
|
|
|
|
Package cond registers the "cond" conditional blobserver storage type
|
|
|
|
to select routing of get/put operations on blobs to other storage
|
|
|
|
targets as a function of their content.
|
|
|
|
|
|
|
|
Currently only the "isSchema" predicate is defined.
|
|
|
|
|
|
|
|
Example usage:
|
|
|
|
|
|
|
|
"/bs-and-maybe-also-index/": {
|
|
|
|
"handler": "storage-cond",
|
|
|
|
"handlerArgs": {
|
|
|
|
"write": {
|
|
|
|
"if": "isSchema",
|
|
|
|
"then": "/bs-and-index/",
|
|
|
|
"else": "/bs/"
|
|
|
|
},
|
|
|
|
"read": "/bs/"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
*/
|
2011-06-04 04:52:56 +00:00
|
|
|
package cond
|
|
|
|
|
|
|
|
import (
|
2011-06-04 15:46:42 +00:00
|
|
|
"bytes"
|
Update from r60 to [almost] Go 1.
A lot is still broken, but most stuff at least compiles now.
The directory tree has been rearranged now too. Go libraries are now
under "pkg". Fully qualified, they are e.g. "camlistore.org/pkg/jsonsign".
The go tool cannot yet fetch from arbitrary domains, but discussion is
happening now on which mechanism to use to allow that.
For now, put the camlistore root under $GOPATH/src. Typically $GOPATH
is $HOME, so Camlistore should be at $HOME/src/camlistore.org.
Then you can:
$ go build ./server/camlistored
... etc
The build.pl script is currently disabled. It'll be resurrected at
some point, but with a very different role (helping create a fake
GOPATH and running the go build command, if things are installed at
the wrong place, and/or running fileembed generators).
Many things are certainly broken.
Many things are disabled. (MySQL, all indexing, etc).
Many things need to be moved into
camlistore.org/third_party/{code.google.com,github.com} and updated
from their r60 to Go 1 versions, where applicable.
The GoMySQL stuff should be updated to use database/sql and the ziutek
library implementing database/sql/driver.
Help wanted.
Change-Id: If71217dc5c8f0e70dbe46e9504ca5131c6eeacde
2012-02-19 05:53:06 +00:00
|
|
|
"errors"
|
2011-06-04 15:46:42 +00:00
|
|
|
"fmt"
|
2011-06-04 04:52:56 +00:00
|
|
|
"io"
|
Update from r60 to [almost] Go 1.
A lot is still broken, but most stuff at least compiles now.
The directory tree has been rearranged now too. Go libraries are now
under "pkg". Fully qualified, they are e.g. "camlistore.org/pkg/jsonsign".
The go tool cannot yet fetch from arbitrary domains, but discussion is
happening now on which mechanism to use to allow that.
For now, put the camlistore root under $GOPATH/src. Typically $GOPATH
is $HOME, so Camlistore should be at $HOME/src/camlistore.org.
Then you can:
$ go build ./server/camlistored
... etc
The build.pl script is currently disabled. It'll be resurrected at
some point, but with a very different role (helping create a fake
GOPATH and running the go build command, if things are installed at
the wrong place, and/or running fileembed generators).
Many things are certainly broken.
Many things are disabled. (MySQL, all indexing, etc).
Many things need to be moved into
camlistore.org/third_party/{code.google.com,github.com} and updated
from their r60 to Go 1 versions, where applicable.
The GoMySQL stuff should be updated to use database/sql and the ziutek
library implementing database/sql/driver.
Help wanted.
Change-Id: If71217dc5c8f0e70dbe46e9504ca5131c6eeacde
2012-02-19 05:53:06 +00:00
|
|
|
"net/http"
|
|
|
|
"time"
|
2011-06-04 04:52:56 +00:00
|
|
|
|
2013-08-04 02:54:30 +00:00
|
|
|
"camlistore.org/pkg/blob"
|
Update from r60 to [almost] Go 1.
A lot is still broken, but most stuff at least compiles now.
The directory tree has been rearranged now too. Go libraries are now
under "pkg". Fully qualified, they are e.g. "camlistore.org/pkg/jsonsign".
The go tool cannot yet fetch from arbitrary domains, but discussion is
happening now on which mechanism to use to allow that.
For now, put the camlistore root under $GOPATH/src. Typically $GOPATH
is $HOME, so Camlistore should be at $HOME/src/camlistore.org.
Then you can:
$ go build ./server/camlistored
... etc
The build.pl script is currently disabled. It'll be resurrected at
some point, but with a very different role (helping create a fake
GOPATH and running the go build command, if things are installed at
the wrong place, and/or running fileembed generators).
Many things are certainly broken.
Many things are disabled. (MySQL, all indexing, etc).
Many things need to be moved into
camlistore.org/third_party/{code.google.com,github.com} and updated
from their r60 to Go 1 versions, where applicable.
The GoMySQL stuff should be updated to use database/sql and the ziutek
library implementing database/sql/driver.
Help wanted.
Change-Id: If71217dc5c8f0e70dbe46e9504ca5131c6eeacde
2012-02-19 05:53:06 +00:00
|
|
|
"camlistore.org/pkg/blobserver"
|
2013-12-02 21:20:51 +00:00
|
|
|
"camlistore.org/pkg/context"
|
Update from r60 to [almost] Go 1.
A lot is still broken, but most stuff at least compiles now.
The directory tree has been rearranged now too. Go libraries are now
under "pkg". Fully qualified, they are e.g. "camlistore.org/pkg/jsonsign".
The go tool cannot yet fetch from arbitrary domains, but discussion is
happening now on which mechanism to use to allow that.
For now, put the camlistore root under $GOPATH/src. Typically $GOPATH
is $HOME, so Camlistore should be at $HOME/src/camlistore.org.
Then you can:
$ go build ./server/camlistored
... etc
The build.pl script is currently disabled. It'll be resurrected at
some point, but with a very different role (helping create a fake
GOPATH and running the go build command, if things are installed at
the wrong place, and/or running fileembed generators).
Many things are certainly broken.
Many things are disabled. (MySQL, all indexing, etc).
Many things need to be moved into
camlistore.org/third_party/{code.google.com,github.com} and updated
from their r60 to Go 1 versions, where applicable.
The GoMySQL stuff should be updated to use database/sql and the ziutek
library implementing database/sql/driver.
Help wanted.
Change-Id: If71217dc5c8f0e70dbe46e9504ca5131c6eeacde
2012-02-19 05:53:06 +00:00
|
|
|
"camlistore.org/pkg/jsonconfig"
|
|
|
|
"camlistore.org/pkg/schema"
|
2011-06-04 04:52:56 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
const buffered = 8
|
|
|
|
|
2014-01-19 23:06:55 +00:00
|
|
|
// A storageFunc selects a destination for a given blob. It may consume from src but must always return
|
|
|
|
// a newSrc that is identical to the original src passed in.
|
|
|
|
type storageFunc func(br blob.Ref, src io.Reader) (dest blobserver.Storage, newSrc io.Reader, err error)
|
2011-06-04 15:46:42 +00:00
|
|
|
|
2011-06-04 04:52:56 +00:00
|
|
|
type condStorage struct {
|
2011-06-04 15:46:42 +00:00
|
|
|
storageForReceive storageFunc
|
|
|
|
read blobserver.Storage
|
|
|
|
remove blobserver.Storage
|
2011-10-28 05:08:55 +00:00
|
|
|
|
|
|
|
ctx *http.Request // optional per-request context
|
2011-06-04 04:52:56 +00:00
|
|
|
}
|
|
|
|
|
2012-11-07 19:55:37 +00:00
|
|
|
func (sto *condStorage) StorageGeneration() (initTime time.Time, random string, err error) {
|
|
|
|
if gener, ok := sto.read.(blobserver.Generationer); ok {
|
|
|
|
return gener.StorageGeneration()
|
|
|
|
}
|
|
|
|
err = blobserver.GenerationNotSupportedError(fmt.Sprintf("blobserver.Generationer not implemented on %T", sto.read))
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
func (sto *condStorage) ResetStorageGeneration() error {
|
|
|
|
if gener, ok := sto.read.(blobserver.Generationer); ok {
|
|
|
|
return gener.ResetStorageGeneration()
|
|
|
|
}
|
|
|
|
return blobserver.GenerationNotSupportedError(fmt.Sprintf("blobserver.Generationer not implemented on %T", sto.read))
|
|
|
|
}
|
|
|
|
|
Update from r60 to [almost] Go 1.
A lot is still broken, but most stuff at least compiles now.
The directory tree has been rearranged now too. Go libraries are now
under "pkg". Fully qualified, they are e.g. "camlistore.org/pkg/jsonsign".
The go tool cannot yet fetch from arbitrary domains, but discussion is
happening now on which mechanism to use to allow that.
For now, put the camlistore root under $GOPATH/src. Typically $GOPATH
is $HOME, so Camlistore should be at $HOME/src/camlistore.org.
Then you can:
$ go build ./server/camlistored
... etc
The build.pl script is currently disabled. It'll be resurrected at
some point, but with a very different role (helping create a fake
GOPATH and running the go build command, if things are installed at
the wrong place, and/or running fileembed generators).
Many things are certainly broken.
Many things are disabled. (MySQL, all indexing, etc).
Many things need to be moved into
camlistore.org/third_party/{code.google.com,github.com} and updated
from their r60 to Go 1 versions, where applicable.
The GoMySQL stuff should be updated to use database/sql and the ziutek
library implementing database/sql/driver.
Help wanted.
Change-Id: If71217dc5c8f0e70dbe46e9504ca5131c6eeacde
2012-02-19 05:53:06 +00:00
|
|
|
func newFromConfig(ld blobserver.Loader, conf jsonconfig.Obj) (storage blobserver.Storage, err error) {
|
2013-08-21 20:57:28 +00:00
|
|
|
sto := &condStorage{}
|
2011-06-04 15:46:42 +00:00
|
|
|
|
|
|
|
receive := conf.OptionalStringOrObject("write")
|
|
|
|
read := conf.RequiredString("read")
|
|
|
|
remove := conf.OptionalString("remove", "")
|
2011-06-04 04:52:56 +00:00
|
|
|
if err := conf.Validate(); err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
2011-06-04 15:46:42 +00:00
|
|
|
|
|
|
|
if receive != nil {
|
|
|
|
sto.storageForReceive, err = buildStorageForReceive(ld, receive)
|
|
|
|
if err != nil {
|
|
|
|
return
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
sto.read, err = ld.GetStorage(read)
|
|
|
|
if err != nil {
|
2011-07-02 16:09:50 +00:00
|
|
|
return
|
|
|
|
}
|
2011-06-04 15:46:42 +00:00
|
|
|
|
|
|
|
if remove != "" {
|
|
|
|
sto.remove, err = ld.GetStorage(remove)
|
|
|
|
if err != nil {
|
2011-07-02 16:09:50 +00:00
|
|
|
return
|
2011-06-04 15:46:42 +00:00
|
|
|
}
|
|
|
|
}
|
2011-06-04 04:52:56 +00:00
|
|
|
return sto, nil
|
|
|
|
}
|
|
|
|
|
Update from r60 to [almost] Go 1.
A lot is still broken, but most stuff at least compiles now.
The directory tree has been rearranged now too. Go libraries are now
under "pkg". Fully qualified, they are e.g. "camlistore.org/pkg/jsonsign".
The go tool cannot yet fetch from arbitrary domains, but discussion is
happening now on which mechanism to use to allow that.
For now, put the camlistore root under $GOPATH/src. Typically $GOPATH
is $HOME, so Camlistore should be at $HOME/src/camlistore.org.
Then you can:
$ go build ./server/camlistored
... etc
The build.pl script is currently disabled. It'll be resurrected at
some point, but with a very different role (helping create a fake
GOPATH and running the go build command, if things are installed at
the wrong place, and/or running fileembed generators).
Many things are certainly broken.
Many things are disabled. (MySQL, all indexing, etc).
Many things need to be moved into
camlistore.org/third_party/{code.google.com,github.com} and updated
from their r60 to Go 1 versions, where applicable.
The GoMySQL stuff should be updated to use database/sql and the ziutek
library implementing database/sql/driver.
Help wanted.
Change-Id: If71217dc5c8f0e70dbe46e9504ca5131c6eeacde
2012-02-19 05:53:06 +00:00
|
|
|
func buildStorageForReceive(ld blobserver.Loader, confOrString interface{}) (storageFunc, error) {
|
2011-06-04 15:46:42 +00:00
|
|
|
// Static configuration from a string
|
|
|
|
if s, ok := confOrString.(string); ok {
|
|
|
|
sto, err := ld.GetStorage(s)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
2014-01-19 23:06:55 +00:00
|
|
|
f := func(br blob.Ref, src io.Reader) (blobserver.Storage, io.Reader, error) {
|
|
|
|
return sto, src, nil
|
2011-06-04 15:46:42 +00:00
|
|
|
}
|
|
|
|
return f, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
conf := jsonconfig.Obj(confOrString.(map[string]interface{}))
|
|
|
|
|
|
|
|
ifStr := conf.RequiredString("if")
|
|
|
|
// TODO: let 'then' and 'else' point to not just strings but either
|
|
|
|
// a string or a JSON object with another condition, and then
|
|
|
|
// call buildStorageForReceive on it recursively
|
|
|
|
thenTarget := conf.RequiredString("then")
|
|
|
|
elseTarget := conf.RequiredString("else")
|
|
|
|
if err := conf.Validate(); err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
thenSto, err := ld.GetStorage(thenTarget)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
elseSto, err := ld.GetStorage(elseTarget)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
|
|
|
|
switch ifStr {
|
|
|
|
case "isSchema":
|
|
|
|
return isSchemaPicker(thenSto, elseSto), nil
|
|
|
|
}
|
|
|
|
return nil, fmt.Errorf("cond: unsupported 'if' type of %q", ifStr)
|
2011-06-04 04:52:56 +00:00
|
|
|
}
|
|
|
|
|
2011-06-04 15:46:42 +00:00
|
|
|
func isSchemaPicker(thenSto, elseSto blobserver.Storage) storageFunc {
|
2014-01-19 23:06:55 +00:00
|
|
|
return func(br blob.Ref, src io.Reader) (dest blobserver.Storage, newSrc io.Reader, err error) {
|
2011-06-04 15:46:42 +00:00
|
|
|
var buf bytes.Buffer
|
2014-01-19 23:06:55 +00:00
|
|
|
blob, err := schema.BlobFromReader(br, io.TeeReader(src, &buf))
|
|
|
|
newSrc = io.MultiReader(bytes.NewReader(buf.Bytes()), src)
|
2013-01-22 17:42:13 +00:00
|
|
|
if err != nil || blob.Type() == "" {
|
2014-01-19 23:06:55 +00:00
|
|
|
return elseSto, newSrc, nil
|
2011-06-04 15:46:42 +00:00
|
|
|
}
|
2014-01-19 23:06:55 +00:00
|
|
|
return thenSto, newSrc, nil
|
2011-06-04 15:46:42 +00:00
|
|
|
}
|
2011-06-04 04:52:56 +00:00
|
|
|
}
|
|
|
|
|
2014-01-19 23:06:55 +00:00
|
|
|
func (sto *condStorage) ReceiveBlob(br blob.Ref, src io.Reader) (sb blob.SizedRef, err error) {
|
|
|
|
destSto, src, err := sto.storageForReceive(br, src)
|
2011-06-04 15:46:42 +00:00
|
|
|
if err != nil {
|
|
|
|
return
|
|
|
|
}
|
2014-01-19 23:06:55 +00:00
|
|
|
return blobserver.Receive(destSto, br, src)
|
2011-06-04 04:52:56 +00:00
|
|
|
}
|
|
|
|
|
2013-08-04 02:54:30 +00:00
|
|
|
func (sto *condStorage) RemoveBlobs(blobs []blob.Ref) error {
|
2011-06-04 15:46:42 +00:00
|
|
|
if sto.remove != nil {
|
2013-08-21 20:57:28 +00:00
|
|
|
return sto.remove.RemoveBlobs(blobs)
|
2011-06-04 15:46:42 +00:00
|
|
|
}
|
Update from r60 to [almost] Go 1.
A lot is still broken, but most stuff at least compiles now.
The directory tree has been rearranged now too. Go libraries are now
under "pkg". Fully qualified, they are e.g. "camlistore.org/pkg/jsonsign".
The go tool cannot yet fetch from arbitrary domains, but discussion is
happening now on which mechanism to use to allow that.
For now, put the camlistore root under $GOPATH/src. Typically $GOPATH
is $HOME, so Camlistore should be at $HOME/src/camlistore.org.
Then you can:
$ go build ./server/camlistored
... etc
The build.pl script is currently disabled. It'll be resurrected at
some point, but with a very different role (helping create a fake
GOPATH and running the go build command, if things are installed at
the wrong place, and/or running fileembed generators).
Many things are certainly broken.
Many things are disabled. (MySQL, all indexing, etc).
Many things need to be moved into
camlistore.org/third_party/{code.google.com,github.com} and updated
from their r60 to Go 1 versions, where applicable.
The GoMySQL stuff should be updated to use database/sql and the ziutek
library implementing database/sql/driver.
Help wanted.
Change-Id: If71217dc5c8f0e70dbe46e9504ca5131c6eeacde
2012-02-19 05:53:06 +00:00
|
|
|
return errors.New("cond: Remove not configured")
|
2011-06-04 04:52:56 +00:00
|
|
|
}
|
|
|
|
|
2011-06-04 16:58:50 +00:00
|
|
|
func (sto *condStorage) IsFetcherASeeker() bool {
|
2013-08-04 02:54:30 +00:00
|
|
|
_, ok := sto.read.(blob.SeekFetcher)
|
2011-06-04 16:58:50 +00:00
|
|
|
return ok
|
|
|
|
}
|
|
|
|
|
2014-01-28 20:46:52 +00:00
|
|
|
func (sto *condStorage) FetchStreaming(b blob.Ref) (file io.ReadCloser, size uint32, err error) {
|
2011-06-04 15:46:42 +00:00
|
|
|
if sto.read != nil {
|
2013-08-21 20:57:28 +00:00
|
|
|
return sto.read.FetchStreaming(b)
|
2011-06-04 15:46:42 +00:00
|
|
|
}
|
Update from r60 to [almost] Go 1.
A lot is still broken, but most stuff at least compiles now.
The directory tree has been rearranged now too. Go libraries are now
under "pkg". Fully qualified, they are e.g. "camlistore.org/pkg/jsonsign".
The go tool cannot yet fetch from arbitrary domains, but discussion is
happening now on which mechanism to use to allow that.
For now, put the camlistore root under $GOPATH/src. Typically $GOPATH
is $HOME, so Camlistore should be at $HOME/src/camlistore.org.
Then you can:
$ go build ./server/camlistored
... etc
The build.pl script is currently disabled. It'll be resurrected at
some point, but with a very different role (helping create a fake
GOPATH and running the go build command, if things are installed at
the wrong place, and/or running fileembed generators).
Many things are certainly broken.
Many things are disabled. (MySQL, all indexing, etc).
Many things need to be moved into
camlistore.org/third_party/{code.google.com,github.com} and updated
from their r60 to Go 1 versions, where applicable.
The GoMySQL stuff should be updated to use database/sql and the ziutek
library implementing database/sql/driver.
Help wanted.
Change-Id: If71217dc5c8f0e70dbe46e9504ca5131c6eeacde
2012-02-19 05:53:06 +00:00
|
|
|
err = errors.New("cond: Read not configured")
|
2011-06-04 15:46:42 +00:00
|
|
|
return
|
|
|
|
}
|
|
|
|
|
2013-08-21 20:57:28 +00:00
|
|
|
func (sto *condStorage) StatBlobs(dest chan<- blob.SizedRef, blobs []blob.Ref) error {
|
2011-06-04 15:46:42 +00:00
|
|
|
if sto.read != nil {
|
2013-08-21 20:57:28 +00:00
|
|
|
return sto.read.StatBlobs(dest, blobs)
|
2011-06-04 15:46:42 +00:00
|
|
|
}
|
Update from r60 to [almost] Go 1.
A lot is still broken, but most stuff at least compiles now.
The directory tree has been rearranged now too. Go libraries are now
under "pkg". Fully qualified, they are e.g. "camlistore.org/pkg/jsonsign".
The go tool cannot yet fetch from arbitrary domains, but discussion is
happening now on which mechanism to use to allow that.
For now, put the camlistore root under $GOPATH/src. Typically $GOPATH
is $HOME, so Camlistore should be at $HOME/src/camlistore.org.
Then you can:
$ go build ./server/camlistored
... etc
The build.pl script is currently disabled. It'll be resurrected at
some point, but with a very different role (helping create a fake
GOPATH and running the go build command, if things are installed at
the wrong place, and/or running fileembed generators).
Many things are certainly broken.
Many things are disabled. (MySQL, all indexing, etc).
Many things need to be moved into
camlistore.org/third_party/{code.google.com,github.com} and updated
from their r60 to Go 1 versions, where applicable.
The GoMySQL stuff should be updated to use database/sql and the ziutek
library implementing database/sql/driver.
Help wanted.
Change-Id: If71217dc5c8f0e70dbe46e9504ca5131c6eeacde
2012-02-19 05:53:06 +00:00
|
|
|
return errors.New("cond: Read not configured")
|
2011-06-04 15:46:42 +00:00
|
|
|
}
|
2011-06-04 04:52:56 +00:00
|
|
|
|
2013-12-02 21:20:51 +00:00
|
|
|
func (sto *condStorage) EnumerateBlobs(ctx *context.Context, dest chan<- blob.SizedRef, after string, limit int) error {
|
2011-06-04 15:46:42 +00:00
|
|
|
if sto.read != nil {
|
2013-12-02 21:20:51 +00:00
|
|
|
return sto.read.EnumerateBlobs(ctx, dest, after, limit)
|
2011-06-04 15:46:42 +00:00
|
|
|
}
|
Update from r60 to [almost] Go 1.
A lot is still broken, but most stuff at least compiles now.
The directory tree has been rearranged now too. Go libraries are now
under "pkg". Fully qualified, they are e.g. "camlistore.org/pkg/jsonsign".
The go tool cannot yet fetch from arbitrary domains, but discussion is
happening now on which mechanism to use to allow that.
For now, put the camlistore root under $GOPATH/src. Typically $GOPATH
is $HOME, so Camlistore should be at $HOME/src/camlistore.org.
Then you can:
$ go build ./server/camlistored
... etc
The build.pl script is currently disabled. It'll be resurrected at
some point, but with a very different role (helping create a fake
GOPATH and running the go build command, if things are installed at
the wrong place, and/or running fileembed generators).
Many things are certainly broken.
Many things are disabled. (MySQL, all indexing, etc).
Many things need to be moved into
camlistore.org/third_party/{code.google.com,github.com} and updated
from their r60 to Go 1 versions, where applicable.
The GoMySQL stuff should be updated to use database/sql and the ziutek
library implementing database/sql/driver.
Help wanted.
Change-Id: If71217dc5c8f0e70dbe46e9504ca5131c6eeacde
2012-02-19 05:53:06 +00:00
|
|
|
return errors.New("cond: Read not configured")
|
2011-06-04 04:52:56 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func init() {
|
|
|
|
blobserver.RegisterStorageConstructor("cond", blobserver.StorageConstructor(newFromConfig))
|
|
|
|
}
|