Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/suhlig/concourse-resource-go
Concourse Resource Interface in Go
https://github.com/suhlig/concourse-resource-go
concourse resource
Last synced: 18 days ago
JSON representation
Concourse Resource Interface in Go
- Host: GitHub
- URL: https://github.com/suhlig/concourse-resource-go
- Owner: suhlig
- License: mit
- Created: 2024-01-22T13:31:51.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-08-27T21:34:31.000Z (2 months ago)
- Last Synced: 2024-08-27T23:15:08.010Z (2 months ago)
- Topics: concourse, resource
- Language: Go
- Homepage:
- Size: 3.37 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.markdown
- License: LICENSE
Awesome Lists containing this project
README
# Concourse Resource Interface in Go
This repo specifies an opinionated interface for Concourse resources in Go. It simplifies resource implementations, by providing
- Unmarshaling and validating the request from JSON,
- Calling the implementation of the interface, and
- Validating and marshaling the response to JSON.The interface is generic and expects concrete types for `Source`, `Version` and `Params`. You can add additional validation rules by annotating your types with the ones implemented by [go-playground/validator](https://pkg.go.dev/github.com/go-playground/validator).
For an example that uses this interface, check the [Euro Exchange Rates Resource](https://github.com/suhlig/euro-exchange-rates-resource).