Documentation
¶
Index ¶
- Constants
- Variables
- func CollapseStackReference(stackRef string) string
- func ExpandStackReference(parentStack string, organization string, projectName string) string
- func GetParentOutput(ref *sdk.StackReference, outName string, parentRefString string, secret bool) (string, error)
- func GetValueFromStack[T any](ctx *sdk.Context, refName, stackName, outName string, secret bool) (T, error)
- func RegisterComputeProcessor(register map[string]ComputeProcessorFunc)
- func RegisterInitStateStore(providerType string, fnc InitStateStoreFunc)
- func RegisterProvider(providerType string, fnc ProvisionFunc)
- func RegisterRegistrar(providerType string, fnc RegistrarFunc)
- func RegisterResources(register map[string]ProvisionFunc)
- func StackNameInEnv(stackName string, environment string) string
- type BasicAuth
- type Collector
- func (c *Collector) AddDependency(res sdk.Resource)
- func (c *Collector) AddDependencyTplExtension(depName string, resName string, values map[string]string)
- func (c *Collector) AddEnvVariableIfNotExist(name, value, resType, resName, stackName string)
- func (c *Collector) AddOutput(ctx *sdk.Context, o sdk.Output)
- func (c *Collector) AddPostProcessor(forType any, processor PostProcessor)
- func (c *Collector) AddPreProcessor(forType any, processor PreProcessor)
- func (c *Collector) AddResourceTplExtension(resName string, values map[string]string)
- func (c *Collector) AddSecretEnvVariableIfNotExist(name, value, resType, resName, stackName string)
- func (c *Collector) Dependencies() []sdk.Resource
- func (c *Collector) EnvVariables() []ComputeEnvVariable
- func (c *Collector) GetPostProcessors(forType any) ([]PostProcessor, bool)
- func (c *Collector) GetPreProcessors(forType any) ([]PreProcessor, bool)
- func (c *Collector) Outputs() []sdk.Output
- func (c *Collector) ResolvePlaceholders(obj any) error
- func (c *Collector) RunPostProcessors(forType any, onObject any) error
- func (c *Collector) RunPreProcessors(forType any, onObject any) error
- func (c *Collector) SecretEnvVariables() []ComputeEnvVariable
- type ComputeContext
- type ComputeContextCollector
- type ComputeEnvVariable
- type ComputeProcessorFunc
- type DependencyProvider
- type DnsPreference
- type InitStateStoreFunc
- type OverrideHeaderRule
- type OverridePagesRule
- type ParentInfo
- type PostProcessor
- type PostProcessors
- type PreProcessor
- type PreProcessors
- type ProvisionFunc
- type ProvisionParams
- type Registrar
- type RegistrarFunc
- type RegistrarWithWorkerScripts
- type ResourcesOutputs
Constants ¶
View Source
const ( ConfigPassphraseEnvVar = "PULUMI_CONFIG_PASSPHRASE" DefaultPulumiPassphrase = "simple-container.com" )
Variables ¶
View Source
var ( InitStateStoreFuncByType = map[string]InitStateStoreFunc{} ProviderFuncByType = map[string]ProvisionFunc{} ProvisionFuncByType = map[string]ProvisionFunc{} RegistrarFuncByType = map[string]RegistrarFunc{} ComputeProcessorFuncByType = map[string]ComputeProcessorFunc{} )
Functions ¶
func CollapseStackReference ¶
func ExpandStackReference ¶
func GetParentOutput ¶
func GetValueFromStack ¶
func RegisterComputeProcessor ¶
func RegisterComputeProcessor(register map[string]ComputeProcessorFunc)
func RegisterInitStateStore ¶
func RegisterInitStateStore(providerType string, fnc InitStateStoreFunc)
func RegisterProvider ¶
func RegisterProvider(providerType string, fnc ProvisionFunc)
func RegisterRegistrar ¶
func RegisterRegistrar(providerType string, fnc RegistrarFunc)
func RegisterResources ¶
func RegisterResources(register map[string]ProvisionFunc)
func StackNameInEnv ¶
Types ¶
type Collector ¶
type Collector struct {
Stack string `json:"stackName" yaml:"stackName"`
Env string `json:"environment" yaml:"environment"`
EnvVars []ComputeEnvVariable `json:"envVariables" yaml:"envVariables"`
// contains filtered or unexported fields
}
func (*Collector) AddDependency ¶
func (*Collector) AddDependencyTplExtension ¶
func (*Collector) AddEnvVariableIfNotExist ¶
func (*Collector) AddPostProcessor ¶
func (c *Collector) AddPostProcessor(forType any, processor PostProcessor)
func (*Collector) AddPreProcessor ¶
func (c *Collector) AddPreProcessor(forType any, processor PreProcessor)
func (*Collector) AddResourceTplExtension ¶
func (*Collector) AddSecretEnvVariableIfNotExist ¶
func (*Collector) Dependencies ¶
func (*Collector) EnvVariables ¶
func (c *Collector) EnvVariables() []ComputeEnvVariable
func (*Collector) GetPostProcessors ¶
func (c *Collector) GetPostProcessors(forType any) ([]PostProcessor, bool)
func (*Collector) GetPreProcessors ¶
func (c *Collector) GetPreProcessors(forType any) ([]PreProcessor, bool)
func (*Collector) ResolvePlaceholders ¶
func (*Collector) RunPostProcessors ¶
func (*Collector) RunPreProcessors ¶
func (*Collector) SecretEnvVariables ¶
func (c *Collector) SecretEnvVariables() []ComputeEnvVariable
type ComputeContext ¶
type ComputeContext interface {
SecretEnvVariables() []ComputeEnvVariable
EnvVariables() []ComputeEnvVariable
Dependencies() []sdk.Resource
Outputs() []sdk.Output
ResolvePlaceholders(obj any) error
GetPreProcessors(forType any) ([]PreProcessor, bool)
GetPostProcessors(forType any) ([]PostProcessor, bool)
RunPreProcessors(forType any, onObject any) error
RunPostProcessors(forType any, onObject any) error
}
type ComputeContextCollector ¶
type ComputeContextCollector interface {
SecretEnvVariables() []ComputeEnvVariable
EnvVariables() []ComputeEnvVariable
AddEnvVariableIfNotExist(name, value, resType, resName, stackName string)
AddSecretEnvVariableIfNotExist(name, value, resType, resName, stackName string)
AddDependency(resource sdk.Resource)
Dependencies() []sdk.Resource
AddOutput(ctx *sdk.Context, o sdk.Output)
Outputs() []sdk.Output
ResolvePlaceholders(obj any) error
AddResourceTplExtension(resName string, value map[string]string)
AddDependencyTplExtension(depName string, resName string, values map[string]string)
GetPreProcessors(forType any) ([]PreProcessor, bool)
AddPreProcessor(forType any, processor PreProcessor)
GetPostProcessors(forType any) ([]PostProcessor, bool)
AddPostProcessor(forType any, processor PostProcessor)
RunPreProcessors(forType any, onObject any) error
RunPostProcessors(forType any, onObject any) error
}
type ComputeEnvVariable ¶
type ComputeProcessorFunc ¶
type ComputeProcessorFunc func(ctx *sdk.Context, stack api.Stack, input api.ResourceInput, collector ComputeContextCollector, params ProvisionParams) (*api.ResourceOutput, error)
type DependencyProvider ¶
type DependencyProvider struct {
Provider sdk.ProviderResource
Config api.Config
}
type DnsPreference ¶
type DnsPreference struct {
BaseZone string
}
type InitStateStoreFunc ¶
type OverrideHeaderRule ¶
type OverrideHeaderRule struct {
Name string
FromHost string
ToHost sdk.StringInput
PathPrefix string
BasicAuth *BasicAuth
OverridePages *OverridePagesRule
}
type OverridePagesRule ¶
type ParentInfo ¶
type PostProcessor ¶
type PostProcessors ¶
type PostProcessors map[reflect.Type][]PostProcessor
type PreProcessor ¶
type PreProcessors ¶
type PreProcessors map[reflect.Type][]PreProcessor
type ProvisionFunc ¶
type ProvisionFunc func(sdkCtx *sdk.Context, stack api.Stack, input api.ResourceInput, params ProvisionParams) (*api.ResourceOutput, error)
type ProvisionParams ¶
type ProvisionParams struct {
// normally required to be present
Provider sdk.ProviderResource
Registrar Registrar
Log logger.Logger
ComputeContext ComputeContext
// optionally set on per-case basis
DependencyProviders map[string]DependencyProvider
DnsPreference *DnsPreference
ParentStack *ParentInfo
StackDescriptor *api.StackDescriptor
BaseEnvVariables map[string]string
HelpersImage string
ResourceOutputs ResourcesOutputs // outputs from dependency resources
}
type Registrar ¶
type Registrar interface {
MainDomain() string
ProvisionRecords(ctx *sdk.Context, params ProvisionParams) (*api.ResourceOutput, error)
NewRecord(ctx *sdk.Context, dnsRecord api.DnsRecord) (*api.ResourceOutput, error)
// NewOverrideHeaderRule overrides host header from one to another (only supported on certain providers)
NewOverrideHeaderRule(ctx *sdk.Context, stack api.Stack, rule OverrideHeaderRule) (*api.ResourceOutput, error)
}
type RegistrarFunc ¶
type RegistrarFunc func(sdkCtx *sdk.Context, desc api.RegistrarDescriptor, params ProvisionParams) (Registrar, error)
type ResourcesOutputs ¶
type ResourcesOutputs map[string]*api.ResourceOutput
Click to show internal directories.
Click to hide internal directories.