3e62ace8ed
This PS adds support for filtering revisions and revision documents documents by any legal filter (those enumerated in the design document). Deckhand now supports the following filter arguments: * schema * metadata.name * metadata.label * metadata.layeringDefinition.abstract * metadata.layeringDefinition.layer * status.bucket Deckhand now supports the following filter arguments for filtering revisions: * tag Deckhand now supports multiple filters, e.g.: * ?metdata.layeringDefinition.layer=site&metadata.name=foo Deckhand now supports repeated filters, e.g.: * ?metadata.label=foo=bar&metadata.label=baz=qux The following has yet to be implemented will be done in a future follow-up PS: - support sorting by specific keywords as well - support query limit and offset filters Change-Id: I8558481e075715fe7fab98140094d37782a986d9 |
||
---|---|---|
deckhand | ||
doc | ||
etc/deckhand | ||
releasenotes | ||
tools | ||
.coveragerc | ||
.gitignore | ||
.gitreview | ||
.testr.conf | ||
AUTHORS | ||
Dockerfile | ||
HACKING.rst | ||
LICENSE | ||
README.rst | ||
entrypoint.sh | ||
requirements.txt | ||
setup.cfg | ||
setup.py | ||
test-requirements.txt | ||
tox.ini |
README.rst
Deckhand
A foundational python REST YAML processing engine providing data and secrets management to other platform services.
To generate a configuration file automatically:
$ tox -e genconfig
Resulting deckhand.conf.sample file is output to :path:etc/deckhand/deckhand.conf.sample
Copy the config file to a directory discoverably by
oslo.conf
:
$ cp etc/deckhand/deckhand.conf.sample ~/deckhand.conf
To setup an in-memory database for testing:
[database]
#
# From oslo.db
#
# The SQLAlchemy connection string to use to connect to the database.
# (string value)
connection = sqlite:///:memory:
To run locally in a development environment:
$ sudo pip install uwsgi
$ virtualenv -p python3 /var/tmp/deckhand
$ . /var/tmp/deckhand/bin/activate
$ sudo pip install .
$ sudo python setup.py install
$ uwsgi --http :9000 -w deckhand.cmd --callable deckhand_callable --enable-threads -L