Module riak_control_wm_partitions

Returns a list of all partitions, how many primary replicas are available, what the current n_val and quorum configuration is, as well as the unavailable nodes for each partition.

Description

Returns a list of all partitions, how many primary replicas are available, what the current n_val and quorum configuration is, as well as the unavailable nodes for each partition.

Data Types

context()

context() = #context{}

Function Index

content_types_provided/2Return available content types.
forbidden/2Validate origin.
init/1Get partition list at the start of the request.
is_authorized/2Handle authorization.
routes/0Route handling.
service_available/2Determine if it's available.
to_json/2Return a list of partitions.

Function Details

content_types_provided/2

content_types_provided(ReqData::wrq:reqdata(), Context::context()) -> {[{ContentType::string(), HandlerFunction::atom()}], wrq:reqdata(), context()}

Return available content types.

forbidden/2

forbidden(ReqData::wrq:reqdata(), Context::context()) -> {boolean(), wrq:reqdata(), context()}

Validate origin.

init/1

init(X1::list()) -> {ok, context()}

Get partition list at the start of the request.

is_authorized/2

is_authorized(ReqData::wrq:reqdata(), Context::context()) -> {true | string(), wrq:reqdata(), context()}

Handle authorization.

routes/0

routes() -> [webmachine_dispatcher:matchterm()]

Route handling.

service_available/2

service_available(ReqData::wrq:reqdata(), Context::context()) -> {boolean() | {halt, non_neg_integer()}, wrq:reqdata(), context()}

Determine if it's available.

to_json/2

to_json(ReqData::wrq:reqdata(), Context::context()) -> {iolist(), wrq:reqdata(), context()}

Return a list of partitions.


Generated by EDoc