Repository: couchdb-fabric Updated Branches: refs/heads/master 8539ca287 -> 9335f03e6
Fix type specs Project: http://git-wip-us.apache.org/repos/asf/couchdb-fabric/repo Commit: http://git-wip-us.apache.org/repos/asf/couchdb-fabric/commit/9335f03e Tree: http://git-wip-us.apache.org/repos/asf/couchdb-fabric/tree/9335f03e Diff: http://git-wip-us.apache.org/repos/asf/couchdb-fabric/diff/9335f03e Branch: refs/heads/master Commit: 9335f03e6f3279a146917a75c2fb12303ebeb9b6 Parents: 8539ca2 Author: Klaus Trainer <[email protected]> Authored: Wed Aug 19 11:52:46 2015 +0200 Committer: Klaus Trainer <[email protected]> Committed: Wed Aug 19 11:52:46 2015 +0200 ---------------------------------------------------------------------- src/fabric.erl | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/couchdb-fabric/blob/9335f03e/src/fabric.erl ---------------------------------------------------------------------- diff --git a/src/fabric.erl b/src/fabric.erl index fed8d11..07c4c9c 100644 --- a/src/fabric.erl +++ b/src/fabric.erl @@ -143,12 +143,18 @@ get_security(DbName, Options) -> try couch_db:get_security(Db) after catch couch_db:close(Db) end. %% @doc retrieve the security object for all shards of a database --spec get_all_security(dbname()) -> json_obj() | no_return(). +-spec get_all_security(dbname()) -> + {ok, json_obj()} | + {error, no_majority | timeout} | + {error, atom(), any()}. get_all_security(DbName) -> get_all_security(DbName, []). %% @doc retrieve the security object for all shards of a database --spec get_all_security(dbname(), [option()]) -> json_obj() | no_return(). +-spec get_all_security(dbname(), [option()]) -> + {ok, json_obj()} | + {error, no_majority | timeout} | + {error, atom(), any()}. get_all_security(DbName, Options) -> fabric_db_meta:get_all_security(dbname(DbName), opts(Options)).
