camlistore: github.com/jbreiding/camlistore/pkg/blobserver/cond Index | Files

package cond

import "github.com/jbreiding/camlistore/pkg/blobserver/cond"

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

Index

Package Files

cond.go

Package cond imports 11 packages (graph). Updated 2018-06-25. Refresh now. Tools for package owners.