Module riak_control_wm_cluster

Provides a resource for getting the current cluster status, as well as a resource for updating the staged cluster plan, and committing the staged cluster plan.

Description

Provides a resource for getting the current cluster status, as well as a resource for updating the staged cluster plan, and committing the staged cluster plan.

Function Index

allowed_methods/2Allowed methods.
content_types_accepted/2Return content-types which are acceptable.
content_types_provided/2Return content-types which are provided.
delete_resource/2Remove the staged plan.
forbidden/2Prevent requests coming from an invalid origin.
from_json/2Stage a series of changes.
init/1Initialize resource.
is_authorized/2Ensure user has access.
process_post/2Stage a series of changes, and commit the plan immediately.
routes/0Return routes this resource should respond to.
service_available/2Handle SSL requests.
to_json/2Return the current cluster, along with a plan if it's available.

Function Details

allowed_methods/2

allowed_methods(ReqData::wrq:reqdata(), Context::undefined) -> {[atom()], wrq:reqdata(), undefined}

Allowed methods.

content_types_accepted/2

content_types_accepted(ReqData::wrq:reqdata(), Context::undefined) -> {list(), wrq:reqdata(), undefined}

Return content-types which are acceptable.

content_types_provided/2

content_types_provided(ReqData::wrq:reqdata(), Context::undefined) -> {list(), wrq:reqdata(), undefined}

Return content-types which are provided.

delete_resource/2

delete_resource(ReqData::wrq:reqdata(), Context::undefined) -> {true, wrq:reqdata(), undefined}

Remove the staged plan.

forbidden/2

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

Prevent requests coming from an invalid origin.

from_json/2

from_json(ReqData::wrq:reqdata(), Context::undefined) -> {boolean(), wrq:reqdata(), undefined}

Stage a series of changes.

init/1

init(X1::[]) -> {ok, undefined}

Initialize resource.

is_authorized/2

is_authorized(ReqData::wrq:reqdata(), Context::undefined) -> {boolean(), wrq:reqdata(), undefined}

Ensure user has access.

process_post/2

process_post(ReqData::wrq:reqdata(), Context::undefined) -> {boolean(), wrq:reqdata(), undefined}

Stage a series of changes, and commit the plan immediately.

routes/0

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

Return routes this resource should respond to.

service_available/2

service_available(ReqData::wrq:reqdata(), Context::undefined) -> {boolean(), wrq:reqdata(), undefined}

Handle SSL requests.

to_json/2

to_json(ReqData::wrq:reqdata(), Context::undefined) -> {binary(), wrq:reqdata(), undefined}

Return the current cluster, along with a plan if it's available.


Generated by EDoc