Documentation ¶
Index ¶
- Variables
- func Get(ctx *pulumi.Context, key string) string
- func GetBool(ctx *pulumi.Context, key string) bool
- func GetFloat64(ctx *pulumi.Context, key string) float64
- func GetInt(ctx *pulumi.Context, key string) int
- func GetObject(ctx *pulumi.Context, key string, output interface{}) error
- func GetSecret(ctx *pulumi.Context, key string) pulumi.StringOutput
- func GetSecretBool(ctx *pulumi.Context, key string) pulumi.BoolOutput
- func GetSecretFloat64(ctx *pulumi.Context, key string) pulumi.Float64Output
- func GetSecretInt(ctx *pulumi.Context, key string) pulumi.IntOutput
- func GetSecretObject(ctx *pulumi.Context, key string, output interface{}) (pulumi.Output, error)
- func Require(ctx *pulumi.Context, key string) string
- func RequireBool(ctx *pulumi.Context, key string) bool
- func RequireFloat64(ctx *pulumi.Context, key string) float64
- func RequireInt(ctx *pulumi.Context, key string) int
- func RequireObject(ctx *pulumi.Context, key string, output interface{})
- func RequireSecret(ctx *pulumi.Context, key string) pulumi.StringOutput
- func RequireSecretBool(ctx *pulumi.Context, key string) pulumi.BoolOutput
- func RequireSecretFloat64(ctx *pulumi.Context, key string) pulumi.Float64Output
- func RequireSecretInt(ctx *pulumi.Context, key string) pulumi.IntOutput
- func RequireSecretObject(ctx *pulumi.Context, key string, output interface{}) pulumi.Output
- func Try(ctx *pulumi.Context, key string) (string, error)
- func TryBool(ctx *pulumi.Context, key string) (bool, error)
- func TryFloat64(ctx *pulumi.Context, key string) (float64, error)
- func TryInt(ctx *pulumi.Context, key string) (int, error)
- func TryObject(ctx *pulumi.Context, key string, output interface{}) error
- func TrySecret(ctx *pulumi.Context, key string) (pulumi.StringOutput, error)
- func TrySecretBool(ctx *pulumi.Context, key string) (pulumi.BoolOutput, error)
- func TrySecretFloat64(ctx *pulumi.Context, key string) (pulumi.Float64Output, error)
- func TrySecretInt(ctx *pulumi.Context, key string) (pulumi.IntOutput, error)
- func TrySecretObject(ctx *pulumi.Context, key string, output interface{}) (pulumi.Output, error)
- type Config
- func (c *Config) Get(key string) string
- func (c *Config) GetBool(key string) bool
- func (c *Config) GetFloat64(key string) float64
- func (c *Config) GetInt(key string) int
- func (c *Config) GetObject(key string, output interface{}) error
- func (c *Config) GetSecret(key string) pulumi.StringOutput
- func (c *Config) GetSecretBool(key string) pulumi.BoolOutput
- func (c *Config) GetSecretFloat64(key string) pulumi.Float64Output
- func (c *Config) GetSecretInt(key string) pulumi.IntOutput
- func (c *Config) GetSecretObject(key string, output interface{}) (pulumi.Output, error)
- func (c *Config) Require(key string) string
- func (c *Config) RequireBool(key string) bool
- func (c *Config) RequireFloat64(key string) float64
- func (c *Config) RequireInt(key string) int
- func (c *Config) RequireObject(key string, output interface{})
- func (c *Config) RequireSecret(key string) pulumi.StringOutput
- func (c *Config) RequireSecretBool(key string) pulumi.BoolOutput
- func (c *Config) RequireSecretFloat64(key string) pulumi.Float64Output
- func (c *Config) RequireSecretInt(key string) pulumi.IntOutput
- func (c *Config) RequireSecretObject(key string, output interface{}) pulumi.Output
- func (c *Config) Try(key string) (string, error)
- func (c *Config) TryBool(key string) (bool, error)
- func (c *Config) TryFloat64(key string) (float64, error)
- func (c *Config) TryInt(key string) (int, error)
- func (c *Config) TryObject(key string, output interface{}) error
- func (c *Config) TrySecret(key string) (pulumi.StringOutput, error)
- func (c *Config) TrySecretBool(key string) (pulumi.BoolOutput, error)
- func (c *Config) TrySecretFloat64(key string) (pulumi.Float64Output, error)
- func (c *Config) TrySecretInt(key string) (pulumi.IntOutput, error)
- func (c *Config) TrySecretObject(key string, output interface{}) (pulumi.Output, error)
Constants ¶
This section is empty.
Variables ¶
var ErrMissingVar = missingVariable{}
Functions ¶
func GetBool ¶
GetBool loads an optional configuration value by its key, as a bool, or returns false if it doesn't exist.
func GetFloat64 ¶
GetFloat64 loads an optional configuration value by its key, as a float64, or returns 0 if it doesn't exist.
func GetInt ¶
GetInt loads an optional configuration value by its key, as a int, or returns 0 if it doesn't exist.
func GetObject ¶
GetObject attempts to load an optional configuration value by its key into the specified output variable.
func GetSecret ¶
func GetSecret(ctx *pulumi.Context, key string) pulumi.StringOutput
GetSecret loads an optional configuration value by its key, or "" if it does not exist, into a secret Output.
func GetSecretBool ¶
func GetSecretBool(ctx *pulumi.Context, key string) pulumi.BoolOutput
GetSecretBool loads an optional bool configuration value by its key, or false if it does not exist, into a secret Output.
func GetSecretFloat64 ¶
func GetSecretFloat64(ctx *pulumi.Context, key string) pulumi.Float64Output
GetSecretFloat64 loads an optional float64 configuration value by its key, or false if it does not exist, into a secret Output.
func GetSecretInt ¶
GetSecretInt loads an optional int configuration value by its key, or false if it does not exist, into a secret Output.
func GetSecretObject ¶
GetSecretObject attempts to load an optional configuration value by its key into the specified output variable.
func RequireBool ¶
RequireBool loads an optional configuration value by its key, as a bool, or panics if it doesn't exist.
func RequireFloat64 ¶
RequireFloat64 loads an optional configuration value by its key, as a float64, or panics if it doesn't exist.
func RequireInt ¶
RequireInt loads an optional configuration value by its key, as a int, or panics if it doesn't exist.
func RequireObject ¶
RequireObject loads an optional configuration value by its key into the output variable, or panics if unable to do so.
func RequireSecret ¶
func RequireSecret(ctx *pulumi.Context, key string) pulumi.StringOutput
RequireSecret loads a configuration value by its key returning it wrapped in a secret Output, or panics if it doesn't exist.
func RequireSecretBool ¶
func RequireSecretBool(ctx *pulumi.Context, key string) pulumi.BoolOutput
RequireSecretBool loads an optional configuration value by its key, as a bool wrapped in a secret Output, or panics if it doesn't exist.
func RequireSecretFloat64 ¶
func RequireSecretFloat64(ctx *pulumi.Context, key string) pulumi.Float64Output
RequireSecretFloat64 loads an optional configuration value by its key, as a float64 wrapped in a secret Output, or panics if it doesn't exist.
func RequireSecretInt ¶
RequireSecretInt loads an optional configuration value by its key, as a int wrapped in a secret Output, or panics if it doesn't exist.
func RequireSecretObject ¶
RequireSecretObject loads an optional configuration value by its key into the output variable, returning it wrapped in a secret Output, or panics if unable to do so.
func Try ¶
Try loads a configuration value by its key, returning a non-nil error if it doesn't exist.
func TryBool ¶
TryBool loads an optional configuration value by its key, as a bool, or returns an error if it doesn't exist or can't be parsed.
func TryFloat64 ¶
TryFloat64 loads an optional configuration value by its key, as a float64, or returns an error if it doesn't exist or can't be parsed.
func TryInt ¶
TryInt loads an optional configuration value by its key, as a int, or returns an error if it doesn't exist or can't be parsed.
func TryObject ¶
TryObject loads an optional configuration value by its key into the output variable, or returns an error if unable to do so.
func TrySecret ¶
TrySecret loads a configuration value by its key, returning a non-nil error if it doesn't exist.
func TrySecretBool ¶
TrySecretBool loads an optional configuration value by its key, as a bool, or returns an error if it doesn't exist.
func TrySecretFloat64 ¶
TrySecretFloat64 loads an optional configuration value by its key, as a float64, or returns an error if it doesn't exist.
func TrySecretInt ¶
TrySecretInt loads an optional configuration value by its key, as a int, or returns an error if it doesn't exist.
Types ¶
type Config ¶
type Config struct {
// contains filtered or unexported fields
}
Config is a struct that permits access to config as a "bag" with a package name. This avoids needing to access config with the fully qualified name all of the time (e.g., a bag whose namespace is "p" automatically translates attempted reads of keys "k" into "p:k"). This is optional but can save on some boilerplate when accessing config.
func (*Config) Get ¶
Get loads an optional configuration value by its key, or returns "" if it doesn't exist.
func (*Config) GetBool ¶
GetBool loads an optional bool configuration value by its key, or returns false if it doesn't exist.
func (*Config) GetFloat64 ¶
GetFloat64 loads an optional float64 configuration value by its key, or returns 0 if it doesn't exist.
func (*Config) GetInt ¶
GetInt loads an optional int configuration value by its key, or returns 0 if it doesn't exist.
func (*Config) GetObject ¶
GetObject loads an optional configuration value into the specified output by its key, or returns an error if unable to do so.
func (*Config) GetSecret ¶
func (c *Config) GetSecret(key string) pulumi.StringOutput
GetSecret loads an optional configuration value by its key or "" if it doesn't exist, and returns it wrapped in a secret Output.
func (*Config) GetSecretBool ¶
func (c *Config) GetSecretBool(key string) pulumi.BoolOutput
GetSecretBool loads an optional bool configuration value by its key or false if it doesn't exist, and returns it wrapped in a secret Output.
func (*Config) GetSecretFloat64 ¶
func (c *Config) GetSecretFloat64(key string) pulumi.Float64Output
GetSecretFloat64 loads an optional float64 configuration value by its key or 0 if it doesn't exist, and returns it wrapped in a secret Output.
func (*Config) GetSecretInt ¶
GetSecretInt loads an optional int configuration value by its key or 0 if it doesn't exist, and returns it wrapped in a secret Output.
func (*Config) GetSecretObject ¶
GetSecretObject loads an optional configuration value into the specified output by its key, returning it wrapped in a secret Output or an error if unable to do so.
func (*Config) Require ¶
Require loads a configuration value by its key, or panics if it doesn't exist.
func (*Config) RequireBool ¶
RequireBool loads a bool configuration value by its key, or panics if it doesn't exist.
func (*Config) RequireFloat64 ¶
RequireFloat64 loads a float64 configuration value by its key, or panics if it doesn't exist.
func (*Config) RequireInt ¶
RequireInt loads a int configuration value by its key, or panics if it doesn't exist.
func (*Config) RequireObject ¶
RequireObject loads a required configuration value into the specified output by its key, or panics if unable to do so.
func (*Config) RequireSecret ¶
func (c *Config) RequireSecret(key string) pulumi.StringOutput
RequireSecret loads a configuration value by its key and returns it wrapped in a secret output, or panics if it doesn't exist.
func (*Config) RequireSecretBool ¶
func (c *Config) RequireSecretBool(key string) pulumi.BoolOutput
RequireSecretBool loads a bool configuration value by its key and returns is wrapped in a secret Output, or panics if it doesn't exist.
func (*Config) RequireSecretFloat64 ¶
func (c *Config) RequireSecretFloat64(key string) pulumi.Float64Output
RequireSecretFloat64 loads a float64 configuration value by its key and returns is wrapped in a secret Output, or panics if it doesn't exist.
func (*Config) RequireSecretInt ¶
RequireSecretInt loads a int configuration value by its key and returns is wrapped in a secret Output, or panics if it doesn't exist.
func (*Config) RequireSecretObject ¶
RequireSecretObject loads a required configuration value into the specified output by its key and returns it wrapped in a secret Output, or panics if unable to do so.
func (*Config) Try ¶
Try loads a configuration value by its key, returning a non-nil error if it doesn't exist.
func (*Config) TryBool ¶
TryBool loads an optional bool configuration value by its key, or returns an error if it doesn't exist.
func (*Config) TryFloat64 ¶
TryFloat64 loads an optional float64 configuration value by its key, or returns an error if it doesn't exist.
func (*Config) TryInt ¶
TryInt loads an optional int configuration value by its key, or returns an error if it doesn't exist.
func (*Config) TryObject ¶
TryObject loads an optional configuration value into the specified output by its key, or returns an error if unable to do so.
func (*Config) TrySecret ¶
func (c *Config) TrySecret(key string) (pulumi.StringOutput, error)
TrySecret loads a configuration value by its key, returning a non-nil error if it doesn't exist.
func (*Config) TrySecretBool ¶
func (c *Config) TrySecretBool(key string) (pulumi.BoolOutput, error)
TrySecretBool loads an optional bool configuration value by its key into a secret Output, or returns an error if it doesn't exist.
func (*Config) TrySecretFloat64 ¶
func (c *Config) TrySecretFloat64(key string) (pulumi.Float64Output, error)
TrySecretFloat64 loads an optional float64 configuration value by its key into a secret Output, or returns an error if it doesn't exist.
func (*Config) TrySecretInt ¶
TrySecretInt loads an optional int configuration value by its key into a secret Output, or returns an error if it doesn't exist.