-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Provider/migrate to plugin framework (#134)
* create instance of provider framework * migrate DefaultFunc field in provider from schema to Configure() func * fix provider_framework configuration logic * combine SDK and Framework providers via Protocol5 mux (legacy SDK) * improve provider_framework configure() method * migrate shceduler resource to framework * add id field to scheduler resource schema * collapse go.sum in diff viewer on Github.com * make provider fields optional to be able to be compatible with framework * fix provider tests to use server muxer * remove unnecessary planmodofier for interval in scheduler * addressing PR comments * put Computed:true back in resource_schedule
- Loading branch information
1 parent
af8c34b
commit fd2ec19
Showing
28 changed files
with
650 additions
and
317 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,2 @@ | ||
# do not expand these files by default in diff viewer | ||
go.sum linguist-generated |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package utils | ||
|
||
import ( | ||
"fmt" | ||
"strconv" | ||
) | ||
|
||
// ParseBool is wrapper around strconv.ParseBool to save few lines of code | ||
func ParseBool(v string) (bool, error) { | ||
res, err := strconv.ParseBool(v) | ||
if err != nil { | ||
return res, fmt.Errorf("could not parse %q as bool: %w", v, err) | ||
} | ||
|
||
return res, nil | ||
} |
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.