Documentation ¶
Index ¶
- func NewLanguageRuntime(program ProgramFunc, requiredPlugins ...workspace.PluginInfo) plugin.LanguageRuntime
- func NewPluginHost(sink, statusSink diag.Sink, languageRuntime plugin.LanguageRuntime, ...) plugin.Host
- type BackendClient
- type LoadProviderFunc
- type LoadProviderWithHostFunc
- type ProgramFunc
- type Provider
- func (prov *Provider) Check(urn resource.URN, olds, news resource.PropertyMap, _ bool) (resource.PropertyMap, []plugin.CheckFailure, error)
- func (prov *Provider) CheckConfig(urn resource.URN, olds, news resource.PropertyMap, allowUnknowns bool) (resource.PropertyMap, []plugin.CheckFailure, error)
- func (prov *Provider) Close() error
- func (prov *Provider) Configure(inputs resource.PropertyMap) error
- func (prov *Provider) Create(urn resource.URN, props resource.PropertyMap, timeout float64) (resource.ID, resource.PropertyMap, resource.Status, error)
- func (prov *Provider) Delete(urn resource.URN, id resource.ID, props resource.PropertyMap, timeout float64) (resource.Status, error)
- func (prov *Provider) Diff(urn resource.URN, id resource.ID, olds resource.PropertyMap, ...) (plugin.DiffResult, error)
- func (prov *Provider) DiffConfig(urn resource.URN, olds, news resource.PropertyMap, _ bool, ...) (plugin.DiffResult, error)
- func (prov *Provider) GetPluginInfo() (workspace.PluginInfo, error)
- func (prov *Provider) GetSchema(version int) ([]byte, error)
- func (prov *Provider) Invoke(tok tokens.ModuleMember, args resource.PropertyMap) (resource.PropertyMap, []plugin.CheckFailure, error)
- func (prov *Provider) Pkg() tokens.Package
- func (prov *Provider) Read(urn resource.URN, id resource.ID, inputs, state resource.PropertyMap) (plugin.ReadResult, resource.Status, error)
- func (prov *Provider) SignalCancellation() error
- func (prov *Provider) StreamInvoke(tok tokens.ModuleMember, args resource.PropertyMap, ...) ([]plugin.CheckFailure, error)
- func (prov *Provider) Update(urn resource.URN, id resource.ID, olds resource.PropertyMap, ...) (resource.PropertyMap, resource.Status, error)
- type ProviderLoader
- type ResourceMonitor
- func (rm *ResourceMonitor) Invoke(tok tokens.ModuleMember, inputs resource.PropertyMap, provider string, ...) (resource.PropertyMap, []*pulumirpc.CheckFailure, error)
- func (rm *ResourceMonitor) ReadResource(t tokens.Type, name string, id resource.ID, parent resource.URN, ...) (resource.URN, resource.PropertyMap, error)
- func (rm *ResourceMonitor) RegisterResource(t tokens.Type, name string, custom bool, options ...ResourceOptions) (resource.URN, resource.ID, resource.PropertyMap, error)
- type ResourceOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewLanguageRuntime ¶
func NewLanguageRuntime(program ProgramFunc, requiredPlugins ...workspace.PluginInfo) plugin.LanguageRuntime
func NewPluginHost ¶
func NewPluginHost(sink, statusSink diag.Sink, languageRuntime plugin.LanguageRuntime, providerLoaders ...*ProviderLoader) plugin.Host
Types ¶
type BackendClient ¶ added in v0.16.6
type BackendClient struct { GetStackOutputsF func(ctx context.Context, name string) (resource.PropertyMap, error) GetStackResourceOutputsF func(ctx context.Context, name string) (resource.PropertyMap, error) }
BackendClient provides a simple implementation of deploy.BackendClient that defers to a function value.
func (*BackendClient) GetStackOutputs ¶ added in v0.16.6
func (b *BackendClient) GetStackOutputs(ctx context.Context, name string) (resource.PropertyMap, error)
GetStackOutputs returns the outputs (if any) for the named stack or an error if the stack cannot be found.
func (*BackendClient) GetStackResourceOutputs ¶ added in v0.17.11
func (b *BackendClient) GetStackResourceOutputs( ctx context.Context, name string) (resource.PropertyMap, error)
GetStackResourceOutputs returns the resource outputs for a stack, or an error if the stack cannot be found. Resources are retrieved from the latest stack snapshot, which may include ongoing updates. They are returned in a `PropertyMap` mapping resource URN to another `Propertymap` with members `type` (containing the Pulumi type ID for the resource) and `outputs` (containing the resource outputs themselves).
type LoadProviderFunc ¶
type LoadProviderWithHostFunc ¶ added in v0.16.9
type ProgramFunc ¶
type ProgramFunc func(runInfo plugin.RunInfo, monitor *ResourceMonitor) error
type Provider ¶
type Provider struct { Name string Package tokens.Package Version semver.Version Config resource.PropertyMap CheckConfigF func(urn resource.URN, olds, news resource.PropertyMap, allowUnknowns bool) (resource.PropertyMap, []plugin.CheckFailure, error) DiffConfigF func(urn resource.URN, olds, news resource.PropertyMap, ignoreChanges []string) (plugin.DiffResult, error) ConfigureF func(news resource.PropertyMap) error CheckF func(urn resource.URN, olds, news resource.PropertyMap) (resource.PropertyMap, []plugin.CheckFailure, error) DiffF func(urn resource.URN, id resource.ID, olds, news resource.PropertyMap, ignoreChanges []string) (plugin.DiffResult, error) CreateF func(urn resource.URN, inputs resource.PropertyMap, timeout float64) (resource.ID, resource.PropertyMap, resource.Status, error) UpdateF func(urn resource.URN, id resource.ID, olds, news resource.PropertyMap, timeout float64, ignoreChanges []string) (resource.PropertyMap, resource.Status, error) DeleteF func(urn resource.URN, id resource.ID, olds resource.PropertyMap, timeout float64) (resource.Status, error) ReadF func(urn resource.URN, id resource.ID, inputs, state resource.PropertyMap) (plugin.ReadResult, resource.Status, error) InvokeF func(tok tokens.ModuleMember, inputs resource.PropertyMap) (resource.PropertyMap, []plugin.CheckFailure, error) CancelF func() error // contains filtered or unexported fields }
func (*Provider) Check ¶
func (prov *Provider) Check(urn resource.URN, olds, news resource.PropertyMap, _ bool) (resource.PropertyMap, []plugin.CheckFailure, error)
func (*Provider) CheckConfig ¶
func (prov *Provider) CheckConfig(urn resource.URN, olds, news resource.PropertyMap, allowUnknowns bool) (resource.PropertyMap, []plugin.CheckFailure, error)
func (*Provider) Diff ¶
func (prov *Provider) Diff(urn resource.URN, id resource.ID, olds resource.PropertyMap, news resource.PropertyMap, _ bool, ignoreChanges []string) (plugin.DiffResult, error)
func (*Provider) DiffConfig ¶
func (prov *Provider) DiffConfig(urn resource.URN, olds, news resource.PropertyMap, _ bool, ignoreChanges []string) (plugin.DiffResult, error)
func (*Provider) GetPluginInfo ¶
func (prov *Provider) GetPluginInfo() (workspace.PluginInfo, error)
func (*Provider) Invoke ¶
func (prov *Provider) Invoke(tok tokens.ModuleMember, args resource.PropertyMap) (resource.PropertyMap, []plugin.CheckFailure, error)
func (*Provider) SignalCancellation ¶
func (*Provider) StreamInvoke ¶ added in v1.5.0
func (prov *Provider) StreamInvoke( tok tokens.ModuleMember, args resource.PropertyMap, onNext func(resource.PropertyMap) error) ([]plugin.CheckFailure, error)
type ProviderLoader ¶
type ProviderLoader struct {
// contains filtered or unexported fields
}
func NewProviderLoader ¶
func NewProviderLoader(pkg tokens.Package, version semver.Version, load LoadProviderFunc) *ProviderLoader
func NewProviderLoaderWithHost ¶ added in v0.16.9
func NewProviderLoaderWithHost(pkg tokens.Package, version semver.Version, load LoadProviderWithHostFunc) *ProviderLoader
type ResourceMonitor ¶
type ResourceMonitor struct {
// contains filtered or unexported fields
}
func (*ResourceMonitor) Invoke ¶
func (rm *ResourceMonitor) Invoke(tok tokens.ModuleMember, inputs resource.PropertyMap, provider string, version string) (resource.PropertyMap, []*pulumirpc.CheckFailure, error)
func (*ResourceMonitor) ReadResource ¶
func (*ResourceMonitor) RegisterResource ¶
func (rm *ResourceMonitor) RegisterResource(t tokens.Type, name string, custom bool, options ...ResourceOptions) (resource.URN, resource.ID, resource.PropertyMap, error)
type ResourceOptions ¶ added in v0.17.26
type ResourceOptions struct { Parent resource.URN Protect bool Dependencies []resource.URN Provider string Inputs resource.PropertyMap PropertyDeps map[resource.PropertyKey][]resource.URN DeleteBeforeReplace *bool Version string IgnoreChanges []string Aliases []resource.URN ImportID resource.ID CustomTimeouts *resource.CustomTimeouts SupportsPartialValues *bool }
Click to show internal directories.
Click to hide internal directories.