-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update resources to match latest SDK.
- Loading branch information
1 parent
5253ac3
commit a84e35a
Showing
12 changed files
with
643 additions
and
312 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,3 +23,6 @@ _testmain.go | |
*.test | ||
*.prof | ||
terraform.tfstate* | ||
|
||
openapi.yaml | ||
spec.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# Crawler Resource | ||
|
||
Provides a crawler resource to manage crawlers in Quant. | ||
|
||
## Example Usage | ||
|
||
```hcl | ||
resource "quant_crawler" "crawler" { | ||
project = quant_project.test.machine_name | ||
name = "test-crawler" | ||
domain = "example.com" | ||
urls = ["/"] | ||
browser_mode = false | ||
exclude = ["/admin"] | ||
headers = { | ||
"X-Header" = "value" | ||
} | ||
} | ||
``` | ||
|
||
## Argument Reference | ||
|
||
- `project` - (Required) The machine name of the project. | ||
- `name` - (Required) The name of the crawler. | ||
- `domain` - (Required) The domain to apply the crawler to. | ||
- `urls` - (Required) The URLs to apply the crawler to. | ||
- `browser_mode` - (Required) Whether to use browser mode. | ||
- `exclude` - (Required) The URLs to exclude from the crawler. |
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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# Crawler Schedule Resource | ||
|
||
Manages a Quant crawler schedule. | ||
|
||
## Example Usage | ||
|
||
```hcl | ||
resource "quant_crawler_schedule" "crawler_schedule" { | ||
project = quant_project.test.machine_name | ||
crawler = quant_crawler.crawler.uuid | ||
schedule_cron_string = "0 0 * * *" | ||
} | ||
``` | ||
|
||
## Argument Reference | ||
|
||
- `project` - (Required) The machine name of the project. | ||
- `crawler` - (Required) The UUID of the crawler. | ||
- `schedule_cron_string` - (Required) The cron string to schedule the crawler. | ||
|
||
## Attributes Reference | ||
|
||
- `id` - The ID of the crawler schedule. | ||
- `crawler_config_id` - The ID of the crawler configuration. | ||
- `project_id` - The ID of the project. | ||
- `crawler_last_run_id` - The ID of the last crawler run. | ||
- `schedule_cron_string` - The cron string to schedule the crawler. | ||
- `created_at` - The date and time the crawler schedule was created. |
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
Oops, something went wrong.