swift.cr is a Swift API wrapper writes with Crystal Language.
Inspired from gitlab.
- Add the dependency to your
shard.yml:
dependencies:
swift:
github: devops-israel/swift.cr- Run
shards install
require "swift"
# configuration
endpoint = "https://charts.example.com" # No tailing forward slash
username = "<username>"
password = "<password>"
# initialize a new client with user and password for basic auth
swift_client = Swift.client(endpoint, username, password)
# => #<Swift::Client:0x101653f20 @endpoint="https://charts.example.com", @username="xxx", @password="xxx>
# server health
swift_client.available?
# trueGET /tiller/v2/releases/json- List releasesGET /tiller/v2/releases/[name]/status/json- list release statusGET /tiller/v2/releases/[name]/content/json- list release contentGET /tiller/v2/releases/[name]/json- list release historyGET /tiller/v2/releases/[name]/rollback/json- rollback a releasePOST /tiller/v2/releases/[name]/json- install a new releasePUT /tiller/v2/releases/[name]/json- upgrade a new releaseDELETE /tiller/v2/releases/[name]/json- delete a release
GET /tiller/v2/version/json- returns 200 OK
- From inside the root of the project run
docker-compose up - The container is configured to run tests every time a file is changed so just start developing.
- Fork it (https://github.com/devops-israel/swift.cr/fork)
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create a new Pull Request
- Josh Dvir - creator and maintainer
MIT License © devops-israel