Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/summerwind/cloudevents-feed-notifier
Watch the update of XML feed and notify new entry as CloudEvents.
https://github.com/summerwind/cloudevents-feed-notifier
cloudevents feed golang rss
Last synced: about 2 months ago
JSON representation
Watch the update of XML feed and notify new entry as CloudEvents.
- Host: GitHub
- URL: https://github.com/summerwind/cloudevents-feed-notifier
- Owner: summerwind
- License: mit
- Created: 2019-01-15T14:19:25.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-01-25T10:39:17.000Z (almost 5 years ago)
- Last Synced: 2024-06-20T16:52:03.232Z (6 months ago)
- Topics: cloudevents, feed, golang, rss
- Language: Go
- Homepage:
- Size: 13.7 KB
- Stars: 7
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# cloudevents-feed-notifier
cloudevents-feed-notifier watches the update of XML feeds and notify the new entry of feed as CloudEvents.
## Install
Download the latest binary from the [Releases](https://github.com/summerwind/cloudevents-feed-notifier/releases) page.
Docker image is also available. Running with Docker is as follows.
```
$ docker run -it -v $PWD/config.yml:/config.yml summerwind/cloudevents-feed-notifier:latest
```## Usage
cloudevents-feed-notifier can be started from the command line as follows.
```
$ cloudevents-feed-notifier -c config.yml
```To start cloudevents-feed-notifier, specify the configuration file using the `-c` option. The configuration format is in YAML. Please see `example/config.yml` for the full configuration file format.
## Event
Event are sent as CloudEvents using HTTP Transport Binding (Binary Content Mode).
### Request headers
| Header | Value |
| --- | --- |
| ce-specversion | 1.0 |
| ce-type | feed.publish |
| ce-source | https://github.com/kubernetes/kubernetes/releases/tag/v1.13.2 (Entry URL) |
| ce-id | cffa4fa7-095b-485c-aaa8-a28e98a5f897 (Auto generated UUID) |
| ce-time | 2019-01-16T19:41:51+09:00 (Published time) |
| Content-Type | application/json |### Request body
```
{
"feed":{
"title": "Release notes from kubernetes",
"url": "https://github.com/kubernetes/kubernetes/releases.atom"
},
"entry":{
"title": "v1.13.2",
"url": "https://github.com/kubernetes/kubernetes/releases/tag/v1.13.2",
"published_at": "2019-01-11T02:18:07Z"
}
}
```