barrel_server_spaces (barrel_server v1.0.0)

View Source

Agent-layer REST surface: spaces, capability grants, sessions, and handoffs over HTTP. Space and handoff creation are management operations (global bearer only); everything scoped to one space accepts a capability token checked per method through barrel_server_caps (GETs need read, mutations write, grant administration admin).

Spaces open with default runtime options: an encrypted space needs its key spec on open, which HTTP callers cannot supply in v1, so encrypted spaces are Erlang-API-only for now.

Summary

Functions

accept_handoff(Req)

add_message(Req)

complete_handoff(Req)

create_grant(Req)

create_handoff(Req)

create_session(Req)

create_space(Req)

delete_session(Req)

drop_space(Req)

get_data(Req)

get_messages(Req)

get_session(Req)

list_grants(Req)

list_handoffs(Req)

list_sessions(Req)

list_spaces(Req)

revoke_grant(Req)

routes()

set_data(Req)

space_info(Req)

touch_session(Req)