forked from hashicorp/terraform-plugin-framework
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement Resource Private State Management (hashicorp#433)
* Add privatestate pkg and Data type (hashicorp#399) Reference: hashicorp#399 * Fixing map merging and tests. Adding doc (hashicorp#399) Reference: hashicorp#399 * Amend diagnostic messages and add logging (hashicorp#399) Reference: hashicorp#399 * Setting up private data for use in ReadResource RPC (hashicorp#399) Reference: hashicorp#399 * Refactoring and fixing tests (hashicorp#399) Reference: hashicorp#399 * Call privatestate.NewData directly from fromproto5/6 (hashicorp#399) Reference: hashicorp#399 * Adding tests for proto5/6server private (hashicorp#399) Reference: hashicorp#399 * Additional tests for privatestate.NewData (hashicorp#399) Reference: hashicorp#399 * Additional tests for privatestate (hashicorp#399) Reference: hashicorp#399 * Calling Data.Bytes directly from toproto5/6/readresource (hashicorp#399) Reference: hashicorp#399 * Adding test coverage to verify SetKey behaviour (hashicorp#399) Reference: hashicorp#399 * Adding test coverage for fwserver readresource behaviour (hashicorp#399) Reference: hashicorp#399 * Apply suggestions from code review Co-authored-by: Brian Flad <[email protected]> * Adding test coverage for proto5/6server readresource behaviour (hashicorp#399) Reference: hashicorp#399 * Update resource/read.go Co-authored-by: Brian Flad <[email protected]> * Configuring private state data for use with create, update and delete (applyresourcechange) operations (hashicorp#399) Reference: hashicorp#399 * Refactoring Data to use a pointer to a ProviderData struct which holds an unexported data field containing map[string][]byte to prevent direct manipulation of the data and inadvertent addition of values that are not invalid (i.e., invalid JSON and/or UTF-8) (hashicorp#399) Reference: hashicorp#399 * Expanding test coverage around privatestate.Data (hashicorp#399) Reference: hashicorp#399 * Ensuring that all instances of privatestate.Provider data that passed through to provider code have been initialised (hashicorp#399) Reference: hashicorp#399 * Fixing tests following rebase (hashicorp#399) Reference: hashicorp#399 * Implementing private state management for import resource state (hashicorp#399) Reference: hashicorp#399 * Implementing private state management for ModifyAttribute and ModifyResource (hashicorp#399) Reference: hashicorp#399 * Apply suggestions from code review Co-authored-by: Brian Flad <[email protected]> * Updating following code review (hashicorp#399) Reference: hashicorp#399 * Apply suggestions from code review Co-authored-by: Brian Flad <[email protected]> * Updating following code review (hashicorp#399) Reference: hashicorp#399 * Refactoring to use EmptyData to avoid Data.Provider from being nil (hashicorp#399) Reference: hashicorp#399 * Updating changelog entry (hashicorp#399) Reference: hashicorp#399 Co-authored-by: Brian Flad <[email protected]>
- Loading branch information
1 parent
0ba16ff
commit 9e664c7
Showing
67 changed files
with
6,588 additions
and
174 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
```release-note:note | ||
A new internal package has been introduced which enables provider developers to read/write framework-managed private state data. | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.