Documentation ¶
Overview ¶
Package parameters implements parameters for profiles
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AWS ¶
type AWS struct { Account string `yaml:"account"` KeyPairName string `yaml:"keyPairName"` PublicKeyPath string `yaml:"publicKeyPath"` PrivateKeyPath string `yaml:"privateKeyPath"` PrivateKeyPassword string `yaml:"privateKeyPassword"` TeamTag string `yaml:"teamTag"` }
AWS instance contains AWS related parameters
type CascadingValueStore ¶
type CascadingValueStore struct {
// contains filtered or unexported fields
}
CascadingValueStore instance contains an array of valueStore ordered by priority. Parameters in a cascading value store are looked up iterating through all value stores and return at first match
type Config ¶
type Config struct { ConfigParams ConfigParams `yaml:"configParams"` StackParams map[string]map[string]string `yaml:"stackParams"` }
Config instance contains ConfigParams and StackParams
type ConfigParams ¶
ConfigParams instance contains config relayed parameters
type ParameterNotFoundError ¶
type ParameterNotFoundError struct {
// contains filtered or unexported fields
}
ParameterNotFoundError instance is an error related to a key not found in a valu store
func (ParameterNotFoundError) Error ¶
func (e ParameterNotFoundError) Error() string
Error returns a printable ParameterNotFoundError
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store instance contains a valueStore
func NewCascadingStore ¶
NewCascadingStore creates a new cascading store
func NewConfigFileStore ¶
NewConfigFileStore creates a store from configFileValueStore from a path
func NewEnvStore ¶
NewEnvStore creates a new store based on environment variables
func (Store) GetBoolWithDefault ¶
GetBoolWithDefault returns a boolean value from the store with default on missing key
type StoreKey ¶
type StoreKey string
StoreKey alias to string
const ( // APIKey config file parameter name APIKey StoreKey = "api_key" // APPKey config file parameter name APPKey StoreKey = "app_key" // Environments config file parameter name Environments StoreKey = "env" // ExtraResourcesTags config file parameter name ExtraResourcesTags StoreKey = "extra_resources_tags" // KeyPairName config file parameter name KeyPairName StoreKey = "key_pair_name" // PrivateKeyPassword config file parameter name PrivateKeyPassword StoreKey = "private_key_password" // PrivateKeyPath config file parameter name PrivateKeyPath StoreKey = "private_key_path" // Profile config file parameter name Profile StoreKey = "profile" // PublicKeyPath config file parameter name PublicKeyPath StoreKey = "public_key_path" // PulumiPassword config file parameter name PulumiPassword StoreKey = "pulumi_password" // SkipDeleteOnFailure config file parameter name SkipDeleteOnFailure StoreKey = "skip_delete_on_failure" // StackParameters config file parameter name StackParameters StoreKey = "stack_params" // PipelineID config file parameter name PipelineID StoreKey = "pipeline_id" )