resource

package
v1.13.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 15, 2025 License: MPL-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package resource provides testsdk handling of the managed resource concept.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateRequest

type CreateRequest struct {
	Config          tftypes.Value
	PlannedIdentity *tftypes.Value
}

type CreateResponse

type CreateResponse struct {
	Diagnostics []*tfprotov6.Diagnostic
	NewState    tftypes.Value
	NewIdentity *tftypes.Value
}

type DeleteRequest

type DeleteRequest struct {
	PriorState tftypes.Value
}

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 ImportStateRequest struct {
	ID       string
	Identity *tftypes.Value
}

type ImportStateResponse

type ImportStateResponse struct {
	Diagnostics []*tfprotov6.Diagnostic
	State       tftypes.Value
	Identity    *tftypes.Value
}

type PlanChangeRequest

type PlanChangeRequest struct {
	Config           tftypes.Value
	PriorState       tftypes.Value
	PriorIdentity    *tftypes.Value
	ProposedNewState tftypes.Value
}

type PlanChangeResponse

type PlanChangeResponse struct {
	Deferred        *tfprotov6.Deferred
	Diagnostics     []*tfprotov6.Diagnostic
	PlannedState    tftypes.Value
	PlannedIdentity *tftypes.Value
	RequiresReplace []*tftypes.AttributePath
}

type ReadRequest

type ReadRequest struct {
	CurrentState    tftypes.Value
	CurrentIdentity *tftypes.Value
}

type ReadResponse

type ReadResponse struct {
	Diagnostics []*tfprotov6.Diagnostic
	NewState    tftypes.Value
	NewIdentity *tftypes.Value
}

type SchemaRequest

type SchemaRequest struct{}

type SchemaResponse

type SchemaResponse struct {
	Diagnostics []*tfprotov6.Diagnostic
	Schema      *tfprotov6.Schema
}

type UpdateRequest

type UpdateRequest struct {
	Config          tftypes.Value
	PlannedState    tftypes.Value
	PlannedIdentity *tftypes.Value
	PriorState      tftypes.Value
}

type UpdateResponse

type UpdateResponse struct {
	Diagnostics []*tfprotov6.Diagnostic
	NewState    tftypes.Value
	NewIdentity *tftypes.Value
}

type UpgradeStateRequest

type UpgradeStateRequest struct {
	RawState *tfprotov6.RawState
	Version  int64
}

type UpgradeStateResponse

type UpgradeStateResponse struct {
	Diagnostics   []*tfprotov6.Diagnostic
	UpgradedState tftypes.Value
}

type ValidateConfigRequest

type ValidateConfigRequest struct {
	Config tftypes.Value
}

type ValidateConfigResponse

type ValidateConfigResponse struct {
	Diagnostics []*tfprotov6.Diagnostic
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL