This commit is contained in:
Adrien Delorme 2020-05-13 15:51:18 +02:00
parent c2d3e494b6
commit a50c27c05d
3 changed files with 8 additions and 8 deletions

View File

@ -19,13 +19,13 @@ import (
// Config of alicloud // Config of alicloud
type AlicloudAccessConfig struct { type AlicloudAccessConfig struct {
// Alicloud access key must be provided unless `profile` is set, but it can // Alicloud access key must be provided unless `profile` is set, but it can
// also be sourced from the ```ALICLOUD_ACCESS_KEY``` environment variable. // also be sourced from the `ALICLOUD_ACCESS_KEY` environment variable.
AlicloudAccessKey string `mapstructure:"access_key" required:"true"` AlicloudAccessKey string `mapstructure:"access_key" required:"true"`
// Alicloud secret key must be provided unless `profile` is set, but it can // Alicloud secret key must be provided unless `profile` is set, but it can
// also be sourced from the ```ALICLOUD_SECRET_KEY``` environment variable. // also be sourced from the `ALICLOUD_SECRET_KEY` environment variable.
AlicloudSecretKey string `mapstructure:"secret_key" required:"true"` AlicloudSecretKey string `mapstructure:"secret_key" required:"true"`
// Alicloud region must be provided unless `profile` is set, but it can // Alicloud region must be provided unless `profile` is set, but it can
// also be sourced from the ```ALICLOUD_REGION``` environment variable. // also be sourced from the `ALICLOUD_REGION` environment variable.
AlicloudRegion string `mapstructure:"region" required:"true"` AlicloudRegion string `mapstructure:"region" required:"true"`
// The region validation can be skipped if this value is true, the default // The region validation can be skipped if this value is true, the default
// value is false. // value is false.
@ -34,7 +34,7 @@ type AlicloudAccessConfig struct {
// value is false. // value is false.
AlicloudSkipImageValidation bool `mapstructure:"skip_image_validation" required:"false"` AlicloudSkipImageValidation bool `mapstructure:"skip_image_validation" required:"false"`
// Alicloud profile must be set unless `access_key` is set; it can also be // Alicloud profile must be set unless `access_key` is set; it can also be
// sourced from the ```ALICLOUD_PROFILE``` environment variable. // sourced from the `ALICLOUD_PROFILE` environment variable.
AlicloudProfile string `mapstructure:"profile" required:"false"` AlicloudProfile string `mapstructure:"profile" required:"false"`
// Alicloud shared credentials file path. If this file exists, access and // Alicloud shared credentials file path. If this file exists, access and
// secret keys will be read from this file. // secret keys will be read from this file.

View File

@ -7,7 +7,7 @@
value is false. value is false.
- `profile` (string) - Alicloud profile must be set unless `access_key` is set; it can also be - `profile` (string) - Alicloud profile must be set unless `access_key` is set; it can also be
sourced from the ```ALICLOUD_PROFILE``` environment variable. sourced from the `ALICLOUD_PROFILE` environment variable.
- `shared_credentials_file` (string) - Alicloud shared credentials file path. If this file exists, access and - `shared_credentials_file` (string) - Alicloud shared credentials file path. If this file exists, access and
secret keys will be read from this file. secret keys will be read from this file.

View File

@ -1,11 +1,11 @@
<!-- Code generated from the comments of the AlicloudAccessConfig struct in builder/alicloud/ecs/access_config.go; DO NOT EDIT MANUALLY --> <!-- Code generated from the comments of the AlicloudAccessConfig struct in builder/alicloud/ecs/access_config.go; DO NOT EDIT MANUALLY -->
- `access_key` (string) - Alicloud access key must be provided unless `profile` is set, but it can - `access_key` (string) - Alicloud access key must be provided unless `profile` is set, but it can
also be sourced from the ```ALICLOUD_ACCESS_KEY``` environment variable. also be sourced from the `ALICLOUD_ACCESS_KEY` environment variable.
- `secret_key` (string) - Alicloud secret key must be provided unless `profile` is set, but it can - `secret_key` (string) - Alicloud secret key must be provided unless `profile` is set, but it can
also be sourced from the ```ALICLOUD_SECRET_KEY``` environment variable. also be sourced from the `ALICLOUD_SECRET_KEY` environment variable.
- `region` (string) - Alicloud region must be provided unless `profile` is set, but it can - `region` (string) - Alicloud region must be provided unless `profile` is set, but it can
also be sourced from the ```ALICLOUD_REGION``` environment variable. also be sourced from the `ALICLOUD_REGION` environment variable.