Skip to content

Commit

Permalink
Added support for 32-bit and arm platforms (#13)
Browse files Browse the repository at this point in the history
Adds the following platforms:
- darwin_amd64
- darwin_arm
- darwin_arm64
- freebsd_386
- freebsd_amd64
- freebsd_arm
- freebsd_arm64
- linux_386
- linux_arm
- linux_arm64
- windows_386
- windows_arm
- windows_arm64
  • Loading branch information
gramsa49 authored Oct 6, 2022
1 parent a896bdb commit dcb07ea
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 10 deletions.
8 changes: 8 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,18 @@ builds:
ldflags:
- '-s -w -X main.version={{.Version}} -X main.commit={{.Commit}}'
goos:
- freebsd
- windows
- linux
- darwin
goarch:
- amd64
- '386'
- arm
- arm64
ignore:
- goos: darwin
goarch: '386'
binary: '{{ .ProjectName }}_v{{ .Version }}'
archives:
- format: zip
Expand Down
8 changes: 4 additions & 4 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,10 @@ provider "wiz" {
- `ca_chain` (String) The CA chains to use when communicating with Wiz. If a proxy performs TLS interception/inspection, this will be the CA chain for the certificate used by the proxy.
- `http_client_retry_max` (Number) Maximum retry attempts.
- Defaults to `10`.
- `http_client_retry_wait_max` (Number) Maximum time to wait before retrying, in nanoseconds.
- Defaults to `10000000000`.
- `http_client_retry_wait_min` (Number) Minimum time to wait before retrying, in nanoseconds.
- Defaults to `1000000000`.
- `http_client_retry_wait_max` (Number) Maximum time to wait before retrying, in seconds.
- Defaults to `10`.
- `http_client_retry_wait_min` (Number) Minimum time to wait before retrying, in seconds.
- Defaults to `1`.
- `proxy` (Boolean) Use an http proxy server?
- `proxy_server` (String) Proxy server address. Syntax: http[s]://[host]:[port]
- `wiz_auth_audience` (String) Set this to 'beyond-api'.
Expand Down
4 changes: 2 additions & 2 deletions internal/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@ func GetHTTPClient(ctx context.Context, settings *Settings) *http.Client {

// override with the trusted certificate authorities
client.HTTPClient.Transport = transport
client.RetryWaitMin = time.Duration(settings.HTTPClientRetryWaitMin)
client.RetryWaitMax = time.Duration(settings.HTTPClientRetryWaitMax)
client.RetryWaitMin = time.Duration(settings.HTTPClientRetryWaitMin) * 1000000000
client.RetryWaitMax = time.Duration(settings.HTTPClientRetryWaitMax) * 1000000000
client.RetryMax = settings.HTTPClientRetryMax

return client.StandardClient()
Expand Down
8 changes: 4 additions & 4 deletions internal/provider/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -238,14 +238,14 @@ yLyKQXhw2W2Xs0qLeC1etA+jTGDK4UfLeC0SF7FSi8o5LL21L8IzApar2pR/
"http_client_retry_wait_min": {
Type: schema.TypeInt,
Optional: true,
Default: 1000000000,
Description: "Minimum time to wait before retrying, in nanoseconds.",
Default: 1,
Description: "Minimum time to wait before retrying, in seconds.",
},
"http_client_retry_wait_max": {
Type: schema.TypeInt,
Optional: true,
Default: 10000000000,
Description: "Maximum time to wait before retrying, in nanoseconds.",
Default: 10,
Description: "Maximum time to wait before retrying, in seconds.",
},
},
DataSourcesMap: map[string]*schema.Resource{
Expand Down

0 comments on commit dcb07ea

Please sign in to comment.