Documentation ¶
Index ¶
- func NewLanguageRuntime(program ProgramFunc, requiredPlugins ...workspace.PluginInfo) plugin.LanguageRuntime
- func NewPluginHost(sink diag.Sink, languageRuntime plugin.LanguageRuntime, ...) plugin.Host
- type LoadProviderFunc
- 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(olds, news resource.PropertyMap) (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) (resource.ID, resource.PropertyMap, resource.Status, error)
- func (prov *Provider) Delete(urn resource.URN, id resource.ID, props resource.PropertyMap) (resource.Status, error)
- func (prov *Provider) Diff(urn resource.URN, id resource.ID, olds resource.PropertyMap, ...) (plugin.DiffResult, error)
- func (prov *Provider) DiffConfig(olds, news resource.PropertyMap) (plugin.DiffResult, error)
- func (prov *Provider) GetPluginInfo() (workspace.PluginInfo, 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, props resource.PropertyMap) (resource.PropertyMap, error)
- func (prov *Provider) SignalCancellation() 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, parent resource.URN, protect bool, ...) (resource.URN, resource.ID, resource.PropertyMap, error)
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 diag.Sink, languageRuntime plugin.LanguageRuntime, providerLoaders ...*ProviderLoader) plugin.Host
Types ¶
type LoadProviderFunc ¶
type ProgramFunc ¶
type ProgramFunc func(runInfo plugin.RunInfo, monitor *ResourceMonitor) error
type Provider ¶
type Provider struct { Name string Package tokens.Package Version semver.Version CheckConfigF func(olds, news resource.PropertyMap) (resource.PropertyMap, []plugin.CheckFailure, error) DiffConfigF func(olds, news resource.PropertyMap) (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) (plugin.DiffResult, error) CreateF func(urn resource.URN, inputs resource.PropertyMap) (resource.ID, resource.PropertyMap, resource.Status, error) UpdateF func(urn resource.URN, id resource.ID, olds, news resource.PropertyMap) (resource.PropertyMap, resource.Status, error) DeleteF func(urn resource.URN, id resource.ID, olds resource.PropertyMap) (resource.Status, error) ReadF func(urn resource.URN, id resource.ID, props resource.PropertyMap) (resource.PropertyMap, error) InvokeF func(tok tokens.ModuleMember, inputs resource.PropertyMap) (resource.PropertyMap, []plugin.CheckFailure, 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(olds, news resource.PropertyMap) (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) (plugin.DiffResult, error)
func (*Provider) DiffConfig ¶
func (prov *Provider) DiffConfig(olds, news resource.PropertyMap) (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) Read ¶
func (prov *Provider) Read(urn resource.URN, id resource.ID, props resource.PropertyMap) (resource.PropertyMap, error)
func (*Provider) SignalCancellation ¶
type ProviderLoader ¶
type ProviderLoader struct {
// contains filtered or unexported fields
}
func NewProviderLoader ¶
func NewProviderLoader(pkg tokens.Package, version semver.Version, load LoadProviderFunc) *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) (resource.PropertyMap, []*pulumirpc.CheckFailure, error)
func (*ResourceMonitor) ReadResource ¶
Click to show internal directories.
Click to hide internal directories.