File tree Expand file tree Collapse file tree 4 files changed +13
-0
lines changed Expand file tree Collapse file tree 4 files changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -155,6 +155,10 @@ func (t ctyTypeShim) IsObjectType() bool {
155155 return t .ty ().IsObjectType ()
156156}
157157
158+ func (t ctyTypeShim ) IsDynamicType () bool {
159+ return t .ty ().Equals (cty .DynamicPseudoType )
160+ }
161+
158162func (t ctyTypeShim ) AttributeType (name string ) (Type , bool ) {
159163 tt := t .ty ()
160164 if ! tt .IsObjectType () {
Original file line number Diff line number Diff line change @@ -154,6 +154,10 @@ func (t hctyTypeShim) IsObjectType() bool {
154154 return t .ty ().IsObjectType ()
155155}
156156
157+ func (t hctyTypeShim ) IsDynamicType () bool {
158+ return t .ty ().Equals (cty .DynamicPseudoType )
159+ }
160+
157161func (t hctyTypeShim ) AttributeType (name string ) (Type , bool ) {
158162 tt := t .ty ()
159163 if ! tt .IsObjectType () {
Original file line number Diff line number Diff line change @@ -57,6 +57,7 @@ type Type interface {
5757 IsMapType () bool
5858 IsSetType () bool
5959 IsObjectType () bool
60+ IsDynamicType () bool
6061 AttributeType (name string ) (Type , bool )
6162 ElementType () (Type , bool )
6263 GoString () string
Original file line number Diff line number Diff line change @@ -192,6 +192,10 @@ func (t tTypeShim) IsObjectType() bool {
192192 return t .ty ().Is (tftypes.Object {})
193193}
194194
195+ func (t tTypeShim ) IsDynamicType () bool {
196+ return t .ty ().Is (tftypes .DynamicPseudoType )
197+ }
198+
195199func (t tTypeShim ) GoString () string {
196200 return t .ty ().String ()
197201}
You can’t perform that action at this time.
0 commit comments