Documentation
¶
Overview ¶
Package resource provides testsdk handling of the managed resource concept.
Index ¶
- type CreateRequest
- type CreateResponse
- type DeleteRequest
- type DeleteResponse
- type IdentitySchemaRequest
- type IdentitySchemaResponse
- 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 DeleteRequest ¶
type DeleteResponse ¶
type DeleteResponse struct {
Diagnostics []*tfprotov6.Diagnostic
}
type IdentitySchemaRequest ¶ added in v1.13.0
type IdentitySchemaRequest struct{}
type IdentitySchemaResponse ¶ added in v1.13.0
type IdentitySchemaResponse struct {
Diagnostics []*tfprotov6.Diagnostic
Schema *tfprotov6.ResourceIdentitySchema
}
type ImportStateRequest ¶
type ImportStateResponse ¶
type PlanChangeRequest ¶
type PlanChangeResponse ¶
type PlanChangeResponse struct {
Deferred *tfprotov6.Deferred
Diagnostics []*tfprotov6.Diagnostic
PlannedState tftypes.Value
PlannedIdentity *tftypes.Value
RequiresReplace []*tftypes.AttributePath
}
type ReadRequest ¶
type ReadResponse ¶
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)
IdentitySchema(context.Context, IdentitySchemaRequest, *IdentitySchemaResponse)
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 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.