@@ -48,6 +48,7 @@ func (p *provider6) GetProviderSchema(_ context.Context, req *tfplugin6.GetProvi
48
48
EphemeralResourceSchemas : make (map [string ]* tfplugin6.Schema ),
49
49
Functions : make (map [string ]* tfplugin6.Function ),
50
50
ListResourceSchemas : make (map [string ]* tfplugin6.Schema ),
51
+ StateStoreSchemas : make (map [string ]* tfplugin6.Schema ),
51
52
}
52
53
53
54
resp .Provider = & tfplugin6.Schema {
@@ -88,6 +89,13 @@ func (p *provider6) GetProviderSchema(_ context.Context, req *tfplugin6.GetProvi
88
89
Block : convert .ConfigSchemaToProto (dat .Body ),
89
90
}
90
91
}
92
+
93
+ for typ , dat := range p .schema .StateStores {
94
+ resp .StateStoreSchemas [typ ] = & tfplugin6.Schema {
95
+ Version : int64 (dat .Version ),
96
+ Block : convert .ConfigSchemaToProto (dat .Body ),
97
+ }
98
+ }
91
99
if decls , err := convert .FunctionDeclsToProto (p .schema .Functions ); err == nil {
92
100
resp .Functions = decls
93
101
} else {
@@ -814,6 +822,46 @@ func (p *provider6) ListResource(*tfplugin6.ListResource_Request, tfplugin6.Prov
814
822
panic ("not implemented" )
815
823
}
816
824
825
+ func (p * provider6 ) ValidateStorageConfig (ctx context.Context , req * tfplugin6.ValidateStorage_Request ) (* tfplugin6.ValidateStorage_Response , error ) {
826
+ // TODO
827
+ return nil , nil
828
+ }
829
+
830
+ func (p * provider6 ) ConfigureStorage (ctx context.Context , req * tfplugin6.ConfigureStorage_Request ) (* tfplugin6.ConfigureStorage_Response , error ) {
831
+ // TODO
832
+ return nil , nil
833
+ }
834
+
835
+ func (p * provider6 ) ReadState (req * tfplugin6.ReadState_Request , srv tfplugin6.Provider_ReadStateServer ) error {
836
+ // TODO
837
+ return nil
838
+ }
839
+
840
+ func (p * provider6 ) WriteState (srv tfplugin6.Provider_WriteStateServer ) error {
841
+ // TODO
842
+ return nil
843
+ }
844
+
845
+ func (p * provider6 ) LockState (ctx context.Context , req * tfplugin6.LockState_Request ) (* tfplugin6.LockState_Response , error ) {
846
+ // TODO
847
+ return nil , nil
848
+ }
849
+
850
+ func (p * provider6 ) UnlockState (ctx context.Context , req * tfplugin6.UnlockState_Request ) (* tfplugin6.UnlockState_Response , error ) {
851
+ // TODO
852
+ return nil , nil
853
+ }
854
+
855
+ func (p * provider6 ) GetStates (ctx context.Context , req * tfplugin6.GetStates_Request ) (* tfplugin6.GetStates_Response , error ) {
856
+ // TODO
857
+ return nil , nil
858
+ }
859
+
860
+ func (p * provider6 ) DeleteState (ctx context.Context , req * tfplugin6.DeleteState_Request ) (* tfplugin6.DeleteState_Response , error ) {
861
+ // TODO
862
+ return nil , nil
863
+ }
864
+
817
865
func (p * provider6 ) StopProvider (context.Context , * tfplugin6.StopProvider_Request ) (* tfplugin6.StopProvider_Response , error ) {
818
866
resp := & tfplugin6.StopProvider_Response {}
819
867
err := p .provider .Stop ()
0 commit comments