better type for []NameValue in docs
This commit is contained in:
parent
88297c796d
commit
78ac1e256b
|
@ -118,7 +118,7 @@ func main() {
|
|||
case "config.Trilean":
|
||||
fieldType = `boolean`
|
||||
case "hcl2template.NameValues":
|
||||
fieldType = `repeatable "name" & "value" object`
|
||||
fieldType = `[]{name string, value string}`
|
||||
}
|
||||
|
||||
field := Field{
|
||||
|
|
|
@ -51,7 +51,7 @@
|
|||
|
||||
- `tags` (map[string]string) - Tags applied to the destination image and relevant snapshots.
|
||||
|
||||
- `tag` (repeatable "name" & "value" object) - Same as [`tags`](#tags) but defined as a singular repeatable block
|
||||
- `tag` ([]{name string, value string}) - Same as [`tags`](#tags) but defined as a singular repeatable block
|
||||
containing a `name` and a `value` field. In HCL2 mode the
|
||||
[`dynamic_block`](https://packer.io/docs/configuration/from-1.5/expressions.html#dynamic-blocks)
|
||||
will allow you to create those programatically.
|
||||
|
|
|
@ -125,7 +125,7 @@
|
|||
engine](/docs/templates/engine.html), see [Build template
|
||||
data](#build-template-data) for more information.
|
||||
|
||||
- `root_volume_tag` (repeatable "name" & "value" object) - Same as [`root_volume_tags`](#root_volume_tags) but defined as a
|
||||
- `root_volume_tag` ([]{name string, value string}) - Same as [`root_volume_tags`](#root_volume_tags) but defined as a
|
||||
singular block containing a `name` and a `value` field. In HCL2 mode the
|
||||
[`dynamic_block`](https://packer.io/docs/configuration/from-1.5/expressions.html#dynamic-blocks)
|
||||
will allow you to create those programatically.
|
||||
|
|
|
@ -32,7 +32,7 @@
|
|||
[template engine](/docs/templates/engine.html), see [Build template
|
||||
data](#build-template-data) for more information.
|
||||
|
||||
- `tag` (repeatable "name" & "value" object) - Same as [`tags`](#tags) but defined as a singular repeatable block
|
||||
- `tag` ([]{name string, value string}) - Same as [`tags`](#tags) but defined as a singular repeatable block
|
||||
containing a `name` and a `value` field. In HCL2 mode the
|
||||
[`dynamic_block`](https://packer.io/docs/configuration/from-1.5/expressions.html#dynamic-blocks)
|
||||
will allow you to create those programatically.
|
||||
|
@ -103,7 +103,7 @@
|
|||
[template engine](../templates/engine.html), see [Build template
|
||||
data](#build-template-data) for more information.
|
||||
|
||||
- `snapshot_tag` (repeatable "name" & "value" object) - Same as [`snapshot_tags`](#snapshot_tags) but defined as a singular
|
||||
- `snapshot_tag` ([]{name string, value string}) - Same as [`snapshot_tags`](#snapshot_tags) but defined as a singular
|
||||
repeatable block containing a `name` and a `value` field. In HCL2 mode the
|
||||
[`dynamic_block`](https://packer.io/docs/configuration/from-1.5/expressions.html#dynamic-blocks)
|
||||
will allow you to create those programatically.
|
||||
|
|
|
@ -113,7 +113,7 @@
|
|||
EBS volumes. This is a [template engine](/docs/templates/engine.html),
|
||||
see [Build template data](#build-template-data) for more information.
|
||||
|
||||
- `run_tag` (repeatable "name" & "value" object) - Same as [`run_tags`](#run_tags) but defined as a singular repeatable
|
||||
- `run_tag` ([]{name string, value string}) - Same as [`run_tags`](#run_tags) but defined as a singular repeatable
|
||||
block containing a `name` and a `value` field. In HCL2 mode the
|
||||
[`dynamic_block`](https://packer.io/docs/configuration/from-1.5/expressions.html#dynamic-blocks)
|
||||
will allow you to create those programatically.
|
||||
|
@ -205,7 +205,7 @@
|
|||
- `spot_tags` (map[string]string) - Requires spot_price to be set. This tells Packer to apply tags to the
|
||||
spot request that is issued.
|
||||
|
||||
- `spot_tag` (repeatable "name" & "value" object) - Same as [`spot_tags`](#spot_tags) but defined as a singular repeatable block
|
||||
- `spot_tag` ([]{name string, value string}) - Same as [`spot_tags`](#spot_tags) but defined as a singular repeatable block
|
||||
containing a `name` and a `value` field. In HCL2 mode the
|
||||
[`dynamic_block`](https://packer.io/docs/configuration/from-1.5/expressions.html#dynamic-blocks)
|
||||
will allow you to create those programatically.
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
completes. This is a [template engine](/docs/templates/engine.html), see
|
||||
[Build template data](#build-template-data) for more information.
|
||||
|
||||
- `tag` (repeatable "name" & "value" object) - Same as [`tags`](#tags) but defined as a singular repeatable block
|
||||
- `tag` ([]{name string, value string}) - Same as [`tags`](#tags) but defined as a singular repeatable block
|
||||
containing a `name` and a `value` field. In HCL2 mode the
|
||||
[`dynamic_block`](https://packer.io/docs/configuration/from-1.5/expressions.html#dynamic-blocks)
|
||||
will allow you to create those programatically.
|
||||
|
|
|
@ -36,7 +36,7 @@
|
|||
configured in the `ebs_volumes` section as soon as the instance is
|
||||
reported as 'ready'.
|
||||
|
||||
- `run_volume_tag` (repeatable "name" & "value" object) - Same as [`run_volume_tags`](#run_volume_tags) but defined as a singular
|
||||
- `run_volume_tag` ([]{name string, value string}) - Same as [`run_volume_tags`](#run_volume_tags) but defined as a singular
|
||||
repeatable block containing a `name` and a `value` field. In HCL2 mode
|
||||
the
|
||||
[`dynamic_block`](https://packer.io/docs/configuration/from-1.5/expressions.html#dynamic-blocks)
|
||||
|
|
|
@ -100,7 +100,7 @@
|
|||
256 characters. Tags are applied to every resource deployed by a Packer
|
||||
build, i.e. Resource Group, VM, NIC, VNET, Public IP, KeyVault, etc.
|
||||
|
||||
- `azure_tag` (repeatable "name" & "value" object) - Same as [`azure_tags`](#azure_tags) but defined as a singular repeatable block
|
||||
- `azure_tag` ([]{name string, value string}) - Same as [`azure_tags`](#azure_tags) but defined as a singular repeatable block
|
||||
containing a `name` and a `value` field. In HCL2 mode the
|
||||
[`dynamic_block`](https://packer.io/docs/configuration/from-1.5/expressions.html#dynamic-blocks)
|
||||
will allow you to create those programatically.
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
|
||||
- `image_tags` (map[string]string) - Key/value pair tags to add to the created image.
|
||||
|
||||
- `image_tag` (repeatable "name" & "value" object) - Same as [`image_tags`](#image_tags) but defined as a singular repeatable
|
||||
- `image_tag` ([]{name string, value string}) - Same as [`image_tags`](#image_tags) but defined as a singular repeatable
|
||||
block containing a `name` and a `value` field. In HCL2 mode the
|
||||
[`dynamic_block`](https://packer.io/docs/configuration/from-1.5/expressions.html#dynamic-blocks)
|
||||
will allow you to create those programatically.
|
||||
|
@ -29,7 +29,7 @@
|
|||
- `vm_tags` (map[string]string) - Key/value pair tags to
|
||||
add to the created server.
|
||||
|
||||
- `vm_tag` (repeatable "name" & "value" object) - Same as [`vm_tags`](#vm_tags) but defined as a singular repeatable block
|
||||
- `vm_tag` ([]{name string, value string}) - Same as [`vm_tags`](#vm_tags) but defined as a singular repeatable block
|
||||
containing a `name` and a `value` field. In HCL2 mode the
|
||||
[`dynamic_block`](https://packer.io/docs/configuration/from-1.5/expressions.html#dynamic-blocks)
|
||||
will allow you to create those programatically.
|
||||
|
|
|
@ -55,7 +55,7 @@
|
|||
- `run_tags` (map[string]string) - Tags to apply to the instance that is *launched* to create the image.
|
||||
These tags are *not* applied to the resulting image.
|
||||
|
||||
- `run_tag` (repeatable "name" & "value" object) - Same as [`run_tags`](#run_tags) but defined as a singular repeatable
|
||||
- `run_tag` ([]{name string, value string}) - Same as [`run_tags`](#run_tags) but defined as a singular repeatable
|
||||
block containing a `name` and a `value` field. In HCL2 mode the
|
||||
[`dynamic_block`](https://packer.io/docs/configuration/from-1.5/expressions.html#dynamic-blocks)
|
||||
will allow you to create those programatically.
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
|
||||
- `source_machine_tags` (map[string]string) - Tags applied to the VM used to create the image.
|
||||
|
||||
- `source_machine_tag` (repeatable "name" & "value" object) - Same as [`source_machine_tags`](#source_machine_tags) but defined as a
|
||||
- `source_machine_tag` ([]{name string, value string}) - Same as [`source_machine_tags`](#source_machine_tags) but defined as a
|
||||
singular block containing a `name` and a `value` field. In HCL2 mode the
|
||||
[`dynamic_block`](https://packer.io/docs/configuration/from-1.5/expressions.html#dynamic-blocks)
|
||||
will allow you to create those programatically.
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
|
||||
- `image_tags` (map[string]string) - Tag applied to the image.
|
||||
|
||||
- `image_tag` (repeatable "name" & "value" object) - Same as [`image_tags`](#image_tags) but defined as a singular repeatable
|
||||
- `image_tag` ([]{name string, value string}) - Same as [`image_tags`](#image_tags) but defined as a singular repeatable
|
||||
block containing a `name` and a `value` field. In HCL2 mode the
|
||||
[`dynamic_block`](https://packer.io/docs/configuration/from-1.5/expressions.html#dynamic-blocks)
|
||||
will allow you to create those programatically.
|
||||
|
|
Loading…
Reference in New Issue