Documentation
¶
Overview ¶
Package middleware defines common interfaces multiple middleware components use.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ComponentResource ¶
type ComponentResource interface {
Construct(context.Context, p.ConstructRequest) (p.ConstructResponse, error)
}
ComponentResource provides a shared definition of a Pulumi component resource for middleware to use.
type CustomResource ¶
type CustomResource interface { Check(context.Context, p.CheckRequest) (p.CheckResponse, error) Diff(context.Context, p.DiffRequest) (p.DiffResponse, error) Create(context.Context, p.CreateRequest) (p.CreateResponse, error) Read(context.Context, p.ReadRequest) (p.ReadResponse, error) Update(context.Context, p.UpdateRequest) (p.UpdateResponse, error) Delete(context.Context, p.DeleteRequest) error }
CustomResource provides a shared high-level definition of a Pulumi custom resource.
type Invoke ¶
type Invoke interface {
Invoke(context.Context, p.InvokeRequest) (p.InvokeResponse, error)
}
Invoke provides a shared definition of a Pulumi function for middleware to use.
Directories
¶
Path | Synopsis |
---|---|
Package cancel provides a middle-ware that ties the Cancel gRPC call from Pulumi to Go's context.Context cancellation system.
|
Package cancel provides a middle-ware that ties the Cancel gRPC call from Pulumi to Go's context.Context cancellation system. |
internal/evict
Package evict is a helper package for github.com/pulumi/pulumi-go-provider/middleware/cancel.
|
Package evict is a helper package for github.com/pulumi/pulumi-go-provider/middleware/cancel. |
Package complexconfig adds middleware for schema informed complex configuration encoding/decoding as a work-around for https://github.com/pulumi/pulumi/pull/15032.
|
Package complexconfig adds middleware for schema informed complex configuration encoding/decoding as a work-around for https://github.com/pulumi/pulumi/pull/15032. |
Package context allows systemic wrapping of provider.Context before invoking a subsidiary provider.
|
Package context allows systemic wrapping of provider.Context before invoking a subsidiary provider. |
Package dispatch provides a provider that dispatches calls by URN such as `Create` to resource level invocations.
|
Package dispatch provides a provider that dispatches calls by URN such as `Create` to resource level invocations. |
Package rpc allows projecting a rpc.ResourceProviderServer into a p.Provider.
|
Package rpc allows projecting a rpc.ResourceProviderServer into a p.Provider. |
Package schema provides a middleware to respond to GetSchema.
|
Package schema provides a middleware to respond to GetSchema. |
Click to show internal directories.
Click to hide internal directories.