Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var CtxKey = ctxKey{}
The key used to retrieve tfbridge.Logger from a context.
Functions ¶
This section is empty.
Types ¶
type Host ¶
type Host[L any] struct { // contains filtered or unexported fields }
A user friendly interface to log against, shared by SDKv2 and PF providers.
Host[tfbridge.Log] implements [tfbridge.Logger].
Because [tfbridge.Logger] has a dependent type: [tfbridge.Log] and because we are unable to name either type here, we need to parameterize Host with `L`, where `L` is always [tfbridge.Log]. This allows us to return `L` from Host[tfbridge.Log].Status() and satisfy the [tfbridge.Logger] interface.
type Sink ¶
type Sink interface { Log(context context.Context, sev diag.Severity, urn resource.URN, msg string) error LogStatus(context context.Context, sev diag.Severity, urn resource.URN, msg string) error }
Abstracts the logging interface to HostClient. This is the interface providers use to report logging information back to the Pulumi CLI over gRPC.
Click to show internal directories.
Click to hide internal directories.