Skip to content

Commit a210798

Browse files
fincamdtyraziel
authored andcommitted
Add BaseDataSourceModel and BaseDataSource structs with refactored functions (#81)
* Add BaseDataSourceModel and BaseDataSource structs with refactored functions These functions come from the different DataSource entities defined in other files. We saw an opportunity to refactor these repeated functions and common fields out to a new base struct. * Add defensive programming to the BaseDataSource methods Checks for: - Contexts being active - resp and resp.Diagnostics pointers being not nil - HTTP Client defined before using it * Add BaseEntityAPIModel to contain entity base fields * Rename BaseDataSourceModel to BaseDataSourceModelWithOrg * Rework the base models for DataSource definitions * Add a ConfigValidators overload to BaseDataSourceWithOrg * Add Variables field back due to backwards compatibility w/Deprecation * Fix inventory_resource_test.go
1 parent c5a0ab3 commit a210798

File tree

3 files changed

+508
-14
lines changed

3 files changed

+508
-14
lines changed

0 commit comments

Comments
 (0)