Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var EphemeralResourceCloseTimeout = 10 * time.Second
This may be modified to expedite tests
Functions ¶
func ContextWithTracer ¶
ContextWithTracer returns a new context derived from parent that carries a Tracer.
Use the resulting context when calling [ApplyPlannedChanges], to get event notification callbacks throughout the planning process.
Types ¶
type EphemeralCloseFunc ¶
type EphemeralCloseFunc func(context.Context) tfdiags.Diagnostics
func OpenEphemeralResourceInstance ¶
func OpenEphemeralResourceInstance( ctx context.Context, addr addrs.AbsResourceInstance, schema *configschema.Block, providerAddr addrs.AbsProviderInstanceCorrect, provider providers.Interface, configVal cty.Value, ) (cty.Value, EphemeralCloseFunc, tfdiags.Diagnostics)
type Tracer ¶
type Tracer struct {
// StartEphemeralResourceInstanceOpen and EndEphemeralResourceInstanceOpen
// mark the beginning and end of the work to open the identified ephemeral
// resource instance.
StartEphemeralResourceInstanceOpen func(ctx context.Context, addr addrs.AbsResourceInstance) context.Context
EndEphemeralResourceInstanceOpen func(ctx context.Context, addr addrs.AbsResourceInstance, diags tfdiags.Diagnostics)
// StartEphemeralResourceInstanceRenew and EndEphemeralResourceInstanceRenew
// mark the beginning and end of the work to renew the identified ephemeral
// resource instance.
StartEphemeralResourceInstanceRenew func(ctx context.Context, addr addrs.AbsResourceInstance) context.Context
EndEphemeralResourceInstanceRenew func(ctx context.Context, addr addrs.AbsResourceInstance, diags tfdiags.Diagnostics)
// StartEphemeralResourceInstanceClose and EndEphemeralResourceInstanceClose
// mark the beginning and end of the work to close the identified ephemeral
// resource instance.
StartEphemeralResourceInstanceClose func(ctx context.Context, addr addrs.AbsResourceInstance) context.Context
EndEphemeralResourceInstanceClose func(ctx context.Context, addr addrs.AbsResourceInstance, diags tfdiags.Diagnostics)
}
Tracer represents a set of tracing event handlers for events that are common across the planning and applying phases.
Click to show internal directories.
Click to hide internal directories.