sovereign
=========
Mission statement
-----------------
This project implements a JSON control-plane based on the [envoy](https://envoyproxy.io) [data-plane-api](https://github.com/envoyproxy/data-plane-api)
The purpose of `sovereign` is to supply downstream envoy proxies with
configuration in near-realtime by responding to discovery requests.
Features
--------
1. Accepts data from source(s) e.g. file, http, custom
2. (optional) Applies modifications to the received data
3. Renders the data into a Jinja2 template (or returns a static response)
4. Serializes the rendered configuration as JSON and returns it to the Envoy proxy
The idea behind this architecture is to enable high-extensibility.
Users can add their own entry point to the package (todo: documentation) which the control-plane
will automatically use to retrieve data to be turned into configuration on the fly.
Requirements
------------
* Python 3.7+
Installation
------------
```
pip install sovereign
```
Documentation
-------------
[Read the docs here!](https://vsyrakis.bitbucket.io/sovereign/docs/html/index.html)
Local development
=================
Requirements
------------
* Docker
* Docker-compose
Installing dependencies for dev
-------------------------------
I recommend creating a virtualenv before doing any dev work
```
python3 -m venv venv
source venv/bin/activate
pip install -r requirements-dev.txt
```
Running locally
---------------
Running the test env
```
make run
```
Running the test env daemonized
```
make run-daemon
```
Pylint
```
make lint
```
Unit tests
```
make unit
```
Acceptance tests
```
make run-daemon acceptance
```
Contributors
============
Pull requests, issues and comments welcome. For pull requests:
* Add tests for new features and bug fixes
* Follow the existing style
* Separate unrelated changes into multiple pull requests
See the existing issues for things to start contributing.
For bigger changes, make sure you start a discussion first by creating
an issue and explaining the intended change.
Atlassian requires contributors to sign a Contributor License Agreement,
known as a CLA. This serves as a record stating that the contributor is
entitled to contribute the code/documentation/translation to the project
and is willing to have it used in distributions and derivative works
(or is willing to transfer ownership).
Prior to accepting your contributions we ask that you please follow the appropriate
link below to digitally sign the CLA. The Corporate CLA is for those who are
contributing as a member of an organization and the individual CLA is for
those contributing as an individual.
* [CLA for corporate contributors](https://na2.docusign.net/Member/PowerFormSigning.aspx?PowerFormId=e1c17c66-ca4d-4aab-a953-2c231af4a20b)
* [CLA for individuals](https://na2.docusign.net/Member/PowerFormSigning.aspx?PowerFormId=3f94fbdc-2fbe-46ac-b14c-5d152700ae5d)
License
========
Copyright (c) 2018 Atlassian and others.
Apache 2.0 licensed, see [LICENSE.txt](LICENSE.txt) file.
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
共49个文件
py:31个
txt:6个
html:3个
资源分类:Python库 所属语言:Python 资源全名:sovereign-0.5.8.tar.gz 资源来源:官方 安装方法:https://lanzao.blog.csdn.net/article/details/101784059
资源推荐
资源详情
资源评论
收起资源包目录
sovereign-0.5.8.tar.gz (49个子文件)
sovereign-0.5.8
MANIFEST.in 127B
PKG-INFO 4KB
bin
sovereign 699B
src
sovereign.egg-info
PKG-INFO 4KB
requires.txt 181B
SOURCES.txt 1KB
entry_points.txt 97B
top_level.txt 10B
dependency_links.txt 1B
zip-safe 1B
sovereign
logs.py 138B
app.py 3KB
middlewares.py 2KB
statistics.py 1KB
templates
base.html 1KB
ul_filter.html 632B
resources.html 2KB
config_loader.py 3KB
discovery.py 5KB
modifiers
lib.py 3KB
__init__.py 2KB
static
style.css 2KB
decorators.py 1KB
views
crypto.py 2KB
healthchecks.py 977B
interface.py 4KB
discovery.py 2KB
__init__.py 0B
admin.py 2KB
__init__.py 1KB
context.py 535B
schemas.py 5KB
utils
crypto.py 1KB
auth.py 2KB
mock.py 675B
__init__.py 0B
eds.py 3KB
weighted_clusters.py 833B
dictupdate.py 3KB
templates.py 981B
sources
lib.py 726B
__init__.py 4KB
file.py 2KB
inline.py 915B
setup.cfg 38B
VERSION 6B
requirements.txt 102B
setup.py 2KB
README.md 3KB
共 49 条
- 1
资源评论
挣扎的蓝藻
- 粉丝: 12w+
- 资源: 15万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功