Documentation
¶
Index ¶
- func DiffAttribute(o any, n any) *p.PropertyDiff
- func DiffAttributes(olds any, news any, attributes []string) p.DiffResponse
- func DiffTriggers(olds any, news any) p.DiffResponse
- func MergeDiffResponses(drs ...p.DiffResponse) p.DiffResponse
- type Config
- type Connection
- type ConnectionBase
- type ExecCommand
- type ExecLogging
- type ProxyConnection
- type TriggersInput
- type TriggersOutput
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DiffAttribute ¶ added in v0.0.3
func DiffAttribute(o any, n any) *p.PropertyDiff
DiffAttribute performs deep equality on two values and returns an Update PropertyDiff if they are different, but nil if they are equal.
func DiffAttributes ¶ added in v0.0.3
func DiffAttributes(olds any, news any, attributes []string) p.DiffResponse
DiffAttributes performs deep equality on two structs only for the attributes provided and returns a DiffResponse
func DiffTriggers ¶ added in v0.0.3
func DiffTriggers(olds any, news any) p.DiffResponse
DiffTriggers extracts the `Triggers` field from two structs and performs a diff on them, returning a DiffResponse with Update and/or UpdateReplace PropertyDiffs as needed.
func MergeDiffResponses ¶ added in v0.0.3
func MergeDiffResponses(drs ...p.DiffResponse) p.DiffResponse
MergeDiffResponses will merge an arbitrary number of DiffResponses together with the last taking the highest precedence. Any DiffResponse that has `HasChanges` or `DeleteBeforeReplace` set will result in the returned DiffResponse to have those set as well.
Types ¶
type Config ¶
type Config struct {
// remote endpoint connection configuration
Connection *Connection `pulumi:"connection" provider:"secret"`
// The value passed into the provider config for `deleteUnreachable`. It is
// generally a better idea to use `GetDeleteUnreachable()` instead of looking
// at this property directly.
DeleteUnreachable bool `pulumi:"deleteUnreachable,optional"`
}
provider configuration
func (Config) GetDeleteUnreachable ¶ added in v0.0.5
GetDeleteUnreachable determines if the environment should delete unreachable resources or not.
type Connection ¶
type Connection struct {
ConnectionBase
}
func (*Connection) Annotate ¶ added in v0.0.7
func (i *Connection) Annotate(a infer.Annotator)
type ConnectionBase ¶
type ExecCommand ¶ added in v0.0.3
type ExecCommand struct {
Command []string `pulumi:"command"`
Environment *map[string]string `pulumi:"environment,optional"`
Dir *string `pulumi:"dir,optional"`
Stdin *string `pulumi:"stdin,optional"`
}
func (*ExecCommand) Annotate ¶ added in v0.0.7
func (i *ExecCommand) Annotate(a infer.Annotator)
type ExecLogging ¶ added in v0.0.3
type ExecLogging string
const ( ExecLoggingStdout ExecLogging = "stdout" ExecLoggingStderr ExecLogging = "stderr" ExecLoggingStdoutAndStderr ExecLogging = "stdoutAndStderr" ExecLoggingNone ExecLogging = "none" )
type ProxyConnection ¶
type ProxyConnection struct {
ConnectionBase
}
type TriggersInput ¶
type TriggersInput struct {
Refresh *[]any `pulumi:"refresh,optional"`
Replace *[]any `pulumi:"replace,optional" provider:"replaceOnChanges"`
}
func (*TriggersInput) Annotate ¶ added in v0.0.7
func (i *TriggersInput) Annotate(a infer.Annotator)
type TriggersOutput ¶
type TriggersOutput struct {
Refresh *[]any `pulumi:"refresh,optional"`
Replace *[]any `pulumi:"replace,optional"`
LastChanged string `pulumi:"lastChanged"`
}
func UpdateTriggerState ¶ added in v0.0.3
func UpdateTriggerState(outs TriggersOutput, ins *TriggersInput, changed bool) TriggersOutput
UpdateTriggerState copies the replace and refresh triggers from `ins` to `outs` and updates `LastChanged` if `changed` is true.
func (*TriggersOutput) Annotate ¶ added in v0.0.7
func (i *TriggersOutput) Annotate(a infer.Annotator)