mosby

command module
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 11, 2019 License: Apache-2.0 Imports: 8 Imported by: 0

README

mosby

Mosby is an executable that validates a yaml-config.

Build Status

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

Installation

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

Usage example

./mosby --path "test-resources/valid.config.yaml"

Run ./mosby help to see all possibilities.

Release History

  • v0.0.1
    • initial release
  • v0.1.0
    • local field is now supported
    • non-specified fields result in an error

ToDos

  • switch to cobra
  • increase test-coverage
  • parameter to specify if error should occur on local-flag
  • create test-configs at runtime

Meta

@fr3dch3n

Distributed under the Apache 2.0 license. See LICENSE for more information.

Contributing

  1. Fork it (https://github.com/fr3dch3n/mosby/fork)
  2. Create your feature branch (git checkout -b feature/fooBar)
  3. Commit your changes (git commit -am 'Add some fooBar')
  4. Push to the branch (git push origin feature/fooBar)
  5. Create a new Pull Request

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL