Mosby is an executable that validates a yaml-config.
Mosby checks if a yaml-file contains one or more of the following-configs:
- name: service1
context:
- service1
backend_configuration:
backends:
- host: service1.example.com
port: 443
connect_timeout: 2
first_byte_timeout: 2
between_bytes_timeout: 2
probe:
url: "/internal/health"
local: true
Current stable version: v0.1.0
Download pre-built binaries:
# for ubuntu
wget -O mosby https://github.com/fr3dch3n/mosby/releases/download/v0.1.0/mosby_amd64
# for alpine
wget -O mosby https://github.com/fr3dch3n/mosby/releases/download/v0.1.0/mosby_alpine
# for mac
wget -O mosby https://github.com/fr3dch3n/mosby/releases/download/v0.1.0/mosby_darwin
# for windows
wget -O mosby https://github.com/fr3dch3n/mosby/releases/download/v0.1.0/mosby.exe
Build binary yourself:
git clone https://github.com/fr3dch3n/mosby
cd mosby
make test
# for ubuntu
make mosby_amd64
# for alpine
make mosby_alpine
# for mac
make mosby_darwin
# for windows
mosby.exe
./mosby --path "test-resources/valid.config.yaml"
Run ./mosby help
to see all possibilities.
- v0.0.1
- initial release
- v0.1.0
- local field is now supported
- non-specified fields result in an error
- switch to cobra
- increase test-coverage
- parameter to specify if error should occur on local-flag
- create test-configs at runtime
Distributed under the Apache 2.0 license. See LICENSE
for more information.
- Fork it (https://github.com/fr3dch3n/mosby/fork)
- Create your feature branch (
git checkout -b feature/fooBar
) - Commit your changes (
git commit -am 'Add some fooBar'
) - Push to the branch (
git push origin feature/fooBar
) - Create a new Pull Request