Documentation ¶
Overview ¶
Package resource provides testsdk handling of the managed resource concept.
Index ¶
- type CreateRequest
- type CreateResponse
- type DeleteRequest
- type DeleteResponse
- type ImportStateRequest
- type ImportStateResponse
- type PlanChangeRequest
- type PlanChangeResponse
- type ReadRequest
- type ReadResponse
- type Resource
- type SchemaRequest
- type SchemaResponse
- type UpdateRequest
- type UpdateResponse
- type UpgradeStateRequest
- type UpgradeStateResponse
- type ValidateConfigRequest
- type ValidateConfigResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateRequest ¶
type CreateResponse ¶
type CreateResponse struct { Diagnostics []*tfprotov6.Diagnostic NewState tftypes.Value }
type DeleteRequest ¶
type DeleteResponse ¶
type DeleteResponse struct {
Diagnostics []*tfprotov6.Diagnostic
}
type ImportStateRequest ¶
type ImportStateRequest struct {
ID string
}
type ImportStateResponse ¶
type ImportStateResponse struct { Diagnostics []*tfprotov6.Diagnostic State tftypes.Value }
type PlanChangeRequest ¶
type PlanChangeResponse ¶
type PlanChangeResponse struct { Deferred *tfprotov6.Deferred Diagnostics []*tfprotov6.Diagnostic PlannedState tftypes.Value RequiresReplace []*tftypes.AttributePath }
type ReadRequest ¶
type ReadResponse ¶
type ReadResponse struct { Diagnostics []*tfprotov6.Diagnostic NewState tftypes.Value }
type Resource ¶
type Resource interface { Create(context.Context, CreateRequest, *CreateResponse) Delete(context.Context, DeleteRequest, *DeleteResponse) ImportState(context.Context, ImportStateRequest, *ImportStateResponse) PlanChange(context.Context, PlanChangeRequest, *PlanChangeResponse) Read(context.Context, ReadRequest, *ReadResponse) Schema(context.Context, SchemaRequest, *SchemaResponse) Update(context.Context, UpdateRequest, *UpdateResponse) UpgradeState(context.Context, UpgradeStateRequest, *UpgradeStateResponse) ValidateConfig(context.Context, ValidateConfigRequest, *ValidateConfigResponse) }
type SchemaRequest ¶
type SchemaRequest struct{}
type SchemaResponse ¶
type SchemaResponse struct { Diagnostics []*tfprotov6.Diagnostic Schema *tfprotov6.Schema }
type UpdateRequest ¶
type UpdateResponse ¶
type UpdateResponse struct { Diagnostics []*tfprotov6.Diagnostic NewState tftypes.Value }
type UpgradeStateRequest ¶
type UpgradeStateResponse ¶
type UpgradeStateResponse struct { Diagnostics []*tfprotov6.Diagnostic UpgradedState tftypes.Value }
type ValidateConfigRequest ¶
type ValidateConfigResponse ¶
type ValidateConfigResponse struct {
Diagnostics []*tfprotov6.Diagnostic
}
Click to show internal directories.
Click to hide internal directories.