generated from hashicorp/packer-plugin-scaffolding
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Generate post-processor argument docs from code.
- Loading branch information
1 parent
a91130d
commit 54ae34a
Showing
5 changed files
with
102 additions
and
71 deletions.
There are no files selected for viewing
30 changes: 30 additions & 0 deletions
30
docs-partials/post-processor/digitalocean-import/Config-not-required.mdx
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,30 @@ | ||
<!-- Code generated from the comments of the Config struct in post-processor/digitalocean-import/post-processor.go; DO NOT EDIT MANUALLY --> | ||
|
||
- `http_retry_max` (\*int) - The maximum number of retries for requests that fail with a 429 or 500-level error. | ||
The default value is 5. Set to 0 to disable reties. | ||
|
||
- `http_retry_wait_max` (\*float64) - The maximum wait time (in seconds) between failed API requests. Default: 30.0 | ||
|
||
- `http_retry_wait_min` (\*float64) - The minimum wait time (in seconds) between failed API requests. Default: 1.0 | ||
|
||
- `space_object_name` (string) - The name of the key used in the Space where the image file will be copied | ||
to for import. This is treated as a [template engine](/docs/templates/legacy_json_templates/engine). | ||
Therefore, you may use user variables and template functions in this field. | ||
If not specified, this will default to `packer-import-{{timestamp}}`. | ||
|
||
- `skip_clean` (bool) - Whether we should skip removing the image file uploaded to Spaces after | ||
the import process has completed. "true" means that we should leave it in | ||
the Space, "false" means to clean it out. Defaults to `false`. | ||
|
||
- `image_tags` ([]string) - A list of tags to apply to the resulting imported image. | ||
|
||
- `image_description` (string) - The description to set for the resulting imported image. | ||
|
||
- `image_distribution` (string) - The name of the distribution to set for the resulting imported image. | ||
|
||
- `timeout` (duration string | ex: "1h5m2s") - The length of time in minutes to wait for individual steps in the process | ||
to successfully complete. This includes both importing the image from Spaces | ||
as well as distributing the resulting image to additional regions. If not | ||
specified, this will default to 20. | ||
|
||
<!-- End of code generated from the comments of the Config struct in post-processor/digitalocean-import/post-processor.go; --> |
23 changes: 23 additions & 0 deletions
23
docs-partials/post-processor/digitalocean-import/Config-required.mdx
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,23 @@ | ||
<!-- Code generated from the comments of the Config struct in post-processor/digitalocean-import/post-processor.go; DO NOT EDIT MANUALLY --> | ||
|
||
- `api_token` (string) - A personal access token used to communicate with the DigitalOcean v2 API. | ||
This may also be set using the `DIGITALOCEAN_TOKEN` or | ||
`DIGITALOCEAN_ACCESS_TOKEN` environmental variables. | ||
|
||
- `spaces_key` (string) - The access key used to communicate with Spaces. This may also be set using | ||
the `DIGITALOCEAN_SPACES_ACCESS_KEY` environmental variable. | ||
|
||
- `spaces_secret` (string) - The secret key used to communicate with Spaces. This may also be set using | ||
the `DIGITALOCEAN_SPACES_SECRET_KEY` environmental variable. | ||
|
||
- `spaces_region` (string) - The name of the region, such as `nyc3`, in which to upload the image to Spaces. | ||
|
||
- `space_name` (string) - The name of the specific Space where the image file will be copied to for | ||
import. This Space must exist when the post-processor is run. | ||
|
||
- `image_name` (string) - The name to be used for the resulting DigitalOcean custom image. | ||
|
||
- `image_regions` ([]string) - A list of DigitalOcean regions, such as `nyc3`, where the resulting image | ||
will be available for use in creating Droplets. | ||
|
||
<!-- End of code generated from the comments of the Config struct in post-processor/digitalocean-import/post-processor.go; --> |
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
14 changes: 7 additions & 7 deletions
14
post-processor/digitalocean-import/post-processor.hcl2spec.go
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.