-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Refactoring attr doc gen to use Go templates (#274)
- Loading branch information
Showing
61 changed files
with
475 additions
and
280 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,6 +16,7 @@ type: docs | |
{{< plugin-resource-header "blackstork/builtin" "builtin" "v0.4.2" "http" "data source" >}} | ||
|
||
## Description | ||
|
||
Loads data from a URL. | ||
|
||
At the moment, the data source accepts only responses with UTF-8 charset and parses only responses | ||
|
@@ -25,6 +26,7 @@ If MIME type of the response is `text/csv` or `application/json`, the response | |
content will be parsed and returned as a JSON structure (similar to the behaviour of CSV and JSON data | ||
sources). Otherwise, the response content will be returned as text | ||
|
||
|
||
The data source is built-in, which means it's a part of `fabric` binary. It's available out-of-the-box, no installation required. | ||
|
||
## Configuration | ||
|
@@ -42,12 +44,14 @@ data http { | |
# Optional | ||
basic_auth { | ||
# Required string. | ||
# | ||
# For example: | ||
username = "[email protected]" | ||
# Note: avoid storing credentials in the templates. Use environment variables instead. | ||
# | ||
# Required string. | ||
# | ||
# For example: | ||
password = "passwd" | ||
} | ||
|
@@ -57,6 +61,7 @@ data http { | |
# | ||
# Required string. | ||
# Must be non-empty | ||
# | ||
# For example: | ||
url = "https://example.localhost/file.json" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,10 +16,12 @@ type: docs | |
{{< plugin-resource-header "blackstork/builtin" "builtin" "v0.4.2" "rss" "data source" >}} | ||
|
||
## Description | ||
|
||
Fetches RSS / Atom / JSON feed from a provided URL. | ||
|
||
The full content of the items can be fetched and added to the feed. The data source supports basic authentication. | ||
|
||
|
||
The data source is built-in, which means it's a part of `fabric` binary. It's available out-of-the-box, no installation required. | ||
|
||
## Configuration | ||
|
@@ -37,18 +39,21 @@ data rss { | |
# Optional | ||
basic_auth { | ||
# Required string. | ||
# | ||
# For example: | ||
username = "[email protected]" | ||
# Note: avoid storing credentials in the templates. Use environment variables instead. | ||
# | ||
# Required string. | ||
# | ||
# For example: | ||
password = "passwd" | ||
} | ||
# Required string. | ||
# | ||
# For example: | ||
url = "https://www.elastic.co/security-labs/rss/feed.xml" | ||
|
@@ -69,19 +74,31 @@ data rss { | |
# | ||
# Optional number. | ||
# Must be >= 0 | ||
# | ||
# For example: | ||
# max_items_to_fill = 10 | ||
# | ||
# Default value: | ||
max_items_to_fill = 10 | ||
# Return only items published after a specified timestamp. The timestamp format is "%Y-%m-%dT%H:%M:%S%Z". | ||
# | ||
# Optional string. | ||
# | ||
# For example: | ||
# fill_in_max_items = false | ||
# | ||
# items_after = "2024-12-23T00:00:00Z" | ||
# | ||
# Default value: | ||
fill_in_max_items = 10 | ||
items_after = null | ||
# Return only items after a specified date time, in the format "%Y-%m-%dT%H:%M:%S%Z". | ||
# Return only items published before a specified timestamp. The timestamp format is "%Y-%m-%dT%H:%M:%S%Z". | ||
# | ||
# Optional string. | ||
# | ||
# For example: | ||
# only_items_after_time = "2024-12-23T00:00:00Z" | ||
# | ||
# items_before = "2024-12-23T00:00:00Z" | ||
# | ||
# Default value: | ||
only_items_after_time = null | ||
items_before = null | ||
} | ||
``` |
Oops, something went wrong.