Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[infer] Allow fetching the raw request #289

Open
iwahbe opened this issue Jan 21, 2025 · 0 comments
Open

[infer] Allow fetching the raw request #289

iwahbe opened this issue Jan 21, 2025 · 0 comments
Labels
kind/enhancement Improvements or new features

Comments

@iwahbe
Copy link
Member

iwahbe commented Jan 21, 2025

Hello!

  • Vote on this issue by adding a 👍 reaction
  • If you want to implement this feature, comment to let us know (we'll work with you on design, scheduling, etc.)

Issue details

Infer helpfully encapsulates much of the complexity of building a Pulumi provider, but sometimes it would be helpful to peek at that encapsulated information. We should add a function like:

// package infer
func GetRawRequest[T provider.Request](context.Context) T

// package provider (top level)
type Request interface {
    GetSchemaRequest | CheckRequest | DiffRequest | ConfigureRequest | ...
}

This would allow providers to access the raw inputs that infer is working from, directly check if a property is computed or secret, etc.

Affected area/feature

@iwahbe iwahbe added kind/enhancement Improvements or new features needs-triage Needs attention from the triage team labels Jan 21, 2025
@lunaris lunaris removed the needs-triage Needs attention from the triage team label Jan 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/enhancement Improvements or new features
Projects
None yet
Development

No branches or pull requests

2 participants