libbe.command.serve_storage
¶
Define the Serve
serving BE Storage over HTTP.
See Also¶
libbe.storage.http
: the associated client
-
class
libbe.command.serve_storage.
ServeStorage
(*args, **kwargs)¶ Serve bug directory storage over HTTP.
This allows you to run local be commands interfacing with remote data, transmitting file reads/writes/etc. over the network.
Command
wrapper aroundServerApp
.Methods
cleanup
()complete
([argument, fragment])help
(*args)run
([options, args])usage
()-
name
= 'serve-storage'¶
-
-
libbe.command.serve_storage.
Serve_storage
¶ alias of
ServeStorage
-
class
libbe.command.serve_storage.
ServerApp
(storage=None, notify=False, **kwargs)¶ WSGI server for a BE Storage instance over HTTP.
RESTful WSGI request handler for serving the libbe.storage.http.HTTP backend with GET, POST, and HEAD commands. For more information on authentication and REST, see John Calcote’s Open Sourcery article
This serves files from a connected storage instance, usually a VCS-based repository located on the local machine.
Notes
The GET and HEAD requests are identical except that the HEAD request omits the actual content of the file.
Methods
__call__
(environ, start_response)add
(environ, start_response)ancestors
(environ, start_response)changed
(environ, start_response)check_login
(environ)children
(environ, start_response)commit
(environ, start_response)data_get_boolean
(data, key[, default, source])data_get_id
(data[, key, default, source])data_get_string
(data, key[, default, source])error
(environ, start_response, error, message)Make it easy to call start_response for errors. exists
(environ, start_response)get
(environ, start_response)is_head
(environ)log_request
(environ[, status, bytes])ok_response
(environ, start_response, content)post_data
(environ)query_data
(environ)remove
(environ, start_response)revision_id
(environ, start_response)set
(environ, start_response)version
(environ, start_response)-
add
(environ, start_response)¶
-
ancestors
(environ, start_response)¶
-
changed
(environ, start_response)¶
-
check_login
(environ)¶
-
children
(environ, start_response)¶
-
commit
(environ, start_response)¶
-
exists
(environ, start_response)¶
-
get
(environ, start_response)¶
-
remove
(environ, start_response)¶
-
revision_id
(environ, start_response)¶
-
server_version
= 'BE-storage-server/1.1.1'¶
-
set
(environ, start_response)¶
-
version
(environ, start_response)¶
-