top

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/"
	}
  }

Imports 5 package(s)

  1. camlistore.org/pkg/blobserver
  2. go4.org/jsonconfig
  3. camlistore.org/pkg/blob
  4. golang.org/x/net/context
  5. camlistore.org/pkg/schema

Test imports 3 package(s)

  1. camlistore.org/pkg/blobserver/replica
  2. camlistore.org/pkg/blobserver/storagetest
  3. camlistore.org/pkg/test