hcltypes

package
v0.26.0-rc.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 8, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OptionalSecret

type OptionalSecret struct {
	IsSecret bool
	Value    string
}

OptionalSecret holds a potentially sensitive value. When IsSecret is true, Value will be treated as a Secret and its value will be hidden from users.

HCL expressions permit converting both Strings and Secrets may be converted into OptionalSecret, which will set the IsSecret field accordingly.

HCL expressions may also convert OptionalSecret into a Secret regardless of the value of IsSecret. However, OptionalSecret may only be converted into a String if IsSecret is false.

type Secret

type Secret string

Secret holds a sensitive value. Secrets are never displayed to the user when rendering HCL.

HCL expressions permit implicitly converting string values to a Secret, but not the inverse. This ensures that a user can't accidentally leak a sensitive value.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL