Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { // The JSON file containing your account credentials. Not required if you // run Packer on a HappyCloud instance with a service account. Instructions for // creating the file or using service accounts are above. AccountFile string `mapstructure:"account_file" required:"false"` // The project ID that will be used to launch instances and store images. ProjectId string `mapstructure:"project_id" required:"true"` // Number of guest accelerator cards to add to the launched instance. AcceleratorCount int64 `mapstructure:"accelerator_count" required:"false"` // The name of a pre-allocated static external IP address. Note, must be the // name and not the actual IP address. Address string `mapstructure:"address" required:"false"` // If true, the default service account will not be used if // service_account_email is not specified. Set this value to true and omit // service_account_email to provision a VM with no service account. DisableDefaultServiceAccount bool `mapstructure:"disable_default_service_account" required:"false"` }
Config is the configuration structure for the happycloud builder. It stores both the publicly settable state as well as the privately generated state of the config object.
type CustomerEncryptionKey ¶
type CustomerEncryptionKey struct { // KeyName: The name of the encryption key that is stored in happycloud KeyName string `mapstructure:"key_name" json:"key_name,omitempty"` // RawKey: Specifies a 256-bit customer-supplied encryption key, encoded in // RFC 4648 base64 to either encrypt or decrypt this resource. RawKey string `mapstructure:"raw_key" json:"raw_key,omitempty"` }
CustomerEncryptionKey helps configure a customer encryption key
func (*CustomerEncryptionKey) FlatMapstructure ¶
func (*CustomerEncryptionKey) FlatMapstructure() interface{ HCL2Spec() map[string]hcldec.Spec }
FlatMapstructure returns a new FlatCustomerEncryptionKey. FlatCustomerEncryptionKey is an auto-generated flat version of CustomerEncryptionKey. Where the contents a fields with a `mapstructure:,squash` tag are bubbled up.
type FlatConfig ¶
type FlatConfig struct { AccountFile *string `mapstructure:"account_file" required:"false" cty:"account_file" hcl:"account_file"` ProjectId *string `mapstructure:"project_id" required:"true" cty:"project_id" hcl:"project_id"` AcceleratorCount *int64 `mapstructure:"accelerator_count" required:"false" cty:"accelerator_count" hcl:"accelerator_count"` Address *string `mapstructure:"address" required:"false" cty:"address" hcl:"address"` DisableDefaultServiceAccount *bool `` /* 139-byte string literal not displayed */ }
FlatConfig is an auto-generated flat version of Config. Where the contents of a field with a `mapstructure:,squash` tag are bubbled up.
type FlatCustomerEncryptionKey ¶
type FlatCustomerEncryptionKey struct { KeyName *string `mapstructure:"key_name" json:"key_name,omitempty" cty:"key_name" hcl:"key_name"` RawKey *string `mapstructure:"raw_key" json:"raw_key,omitempty" cty:"raw_key" hcl:"raw_key"` }
FlatCustomerEncryptionKey is an auto-generated flat version of CustomerEncryptionKey. Where the contents of a field with a `mapstructure:,squash` tag are bubbled up.
func (*FlatCustomerEncryptionKey) HCL2Spec ¶
func (*FlatCustomerEncryptionKey) HCL2Spec() map[string]hcldec.Spec
HCL2Spec returns the hcl spec of a CustomerEncryptionKey. This spec is used by HCL to read the fields of CustomerEncryptionKey. The decoded values from this spec will then be applied to a FlatCustomerEncryptionKey.