Skip to content

Commit

Permalink
Add docs, goreleaser and GH actions
Browse files Browse the repository at this point in the history
  • Loading branch information
mathlu committed Aug 23, 2023
1 parent da3cb51 commit a2abf34
Show file tree
Hide file tree
Showing 13 changed files with 517 additions and 48 deletions.
63 changes: 63 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0

# Visit https://goreleaser.com for documentation on how to customize this
# behavior.
before:
hooks:
# this is just an example and not a requirement for provider building/publishing
- go mod tidy
builds:
- env:
# goreleaser does not work with CGO, it could also complicate
# usage by users in CI/CD systems like Terraform Cloud where
# they are unable to install libraries.
- CGO_ENABLED=0
mod_timestamp: '{{ .CommitTimestamp }}'
flags:
- -trimpath
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
name_template: '{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}'
checksum:
extra_files:
- glob: 'terraform-registry-manifest.json'
name_template: '{{ .ProjectName }}_{{ .Version }}_manifest.json'
name_template: '{{ .ProjectName }}_{{ .Version }}_SHA256SUMS'
algorithm: sha256
signs:
- artifacts: checksum
args:
# if you are using this in a GitHub action or some other automated pipeline, you
# need to pass the batch flag to indicate its not interactive.
- "--batch"
- "--local-user"
- "{{ .Env.GPG_FINGERPRINT }}" # set this environment variable for your signing key
- "--output"
- "${signature}"
- "--detach-sign"
- "${artifact}"
release:
extra_files:
- glob: 'terraform-registry-manifest.json'
name_template: '{{ .ProjectName }}_{{ .Version }}_manifest.json'
# If you want to manually examine the release before its live, uncomment this line:
# draft: true
changelog:
skip: true
24 changes: 24 additions & 0 deletions docs/data-sources/vs.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "loadmaster_vs Data Source - terraform-provider-loadmaster"
subcategory: ""
description: |-
---

# loadmaster_vs (Data Source)





<!-- schema generated by tfplugindocs -->
## Schema

### Read-Only

- `address` (String)
- `id` (Number) The ID of this resource.
- `nickname` (String)
- `port` (String)
- `protocol` (String)
21 changes: 21 additions & 0 deletions docs/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "loadmaster Provider"
subcategory: ""
description: |-
---

# loadmaster Provider





<!-- schema generated by tfplugindocs -->
## Schema

### Optional

- `api_token` (String, Sensitive)
- `server` (String)
27 changes: 27 additions & 0 deletions docs/resources/rs.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "loadmaster_rs Resource - terraform-provider-loadmaster"
subcategory: ""
description: |-
---

# loadmaster_rs (Resource)





<!-- schema generated by tfplugindocs -->
## Schema

### Required

- `address` (String)
- `port` (Number)
- `vsindex` (Number)

### Read-Only

- `id` (String) The ID of this resource.
- `status` (String)
105 changes: 105 additions & 0 deletions docs/resources/vs.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,105 @@
---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "loadmaster_vs Resource - terraform-provider-loadmaster"
subcategory: ""
description: |-
---

# loadmaster_vs (Resource)





<!-- schema generated by tfplugindocs -->
## Schema

### Required

- `address` (String)
- `port` (String)
- `protocol` (String)

### Optional

- `addvia` (Number)
- `alertthreshold` (Number)
- `allowhttp2` (Boolean)
- `anomalyscoringthreshold` (Number)
- `bandwidth` (Number)
- `blockingparanoia` (Number)
- `bodylimit` (Number)
- `cache` (Boolean)
- `checkport` (String)
- `checktype` (String)
- `checkuse11` (Boolean)
- `checkuseget` (Number)
- `chkinterval` (Number)
- `chkretrycount` (Number)
- `chktimeout` (Number)
- `clientcert` (Number)
- `compress` (Boolean)
- `connsperseclimit` (Number)
- `enable` (Boolean)
- `enhancedhealthchecks` (Boolean)
- `errorcode` (String)
- `espenabled` (Boolean)
- `executingparanoia` (Number)
- `followvsid` (Number)
- `forcel4` (Boolean)
- `forcel7` (Boolean)
- `httpreschedule` (Boolean)
- `idletime` (Number)
- `inputauthmode` (Number)
- `intercept` (Boolean)
- `interceptmode` (Number)
- `ipreputationblocking` (Boolean)
- `jsondlimit` (Number)
- `matchlen` (Number)
- `maxconnslimit` (Number)
- `multiconnect` (Boolean)
- `needhostname` (Boolean)
- `nickname` (String)
- `nmatchbodyrules` (Number)
- `npreprocessrules` (Number)
- `nrequestrules` (Number)
- `nresponserules` (Number)
- `nrules` (Number)
- `ocspverify` (Boolean)
- `outputauthmode` (Number)
- `passcipher` (Boolean)
- `passsni` (Boolean)
- `pcrelimit` (Number)
- `persisttimeout` (String)
- `qos` (Number)
- `refreshpersist` (Boolean)
- `requestsperseclimit` (Number)
- `rsminimum` (Number)
- `samesite` (Number)
- `schedule` (String)
- `securityheaderoptions` (Number)
- `serverinit` (Number)
- `sslreencrypt` (Boolean)
- `sslreverse` (Boolean)
- `starttlsmode` (Number)
- `subnetoriginating` (Boolean)
- `transactionlimit` (Number)
- `transparent` (Boolean)
- `type` (String)
- `useforsnat` (Boolean)
- `verify` (Number)
- `verifybearer` (Boolean)

### Read-Only

- `id` (String) The ID of this resource.
- `index` (Number)
- `interceptopts` (List of String)
- `istransparent` (Number)
- `layer` (Number)
- `mastervs` (Number)
- `mastervsid` (Number)
- `numberofrss` (Number)
- `owaspopts` (List of String)
- `status` (String)
40 changes: 32 additions & 8 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,45 +3,69 @@ module loadmaster
go 1.18

require (
github.com/hashicorp/terraform-plugin-docs v0.16.0
github.com/hashicorp/terraform-plugin-sdk/v2 v2.25.0
github.com/mathlu/loadmaster-go-client v0.0.0-20230408161004-f09945e47749
github.com/mathlu/loadmaster-go-client v0.0.0-20230823144318-b87753891c83
)

require (
github.com/Masterminds/goutils v1.1.1 // indirect
github.com/Masterminds/semver/v3 v3.1.1 // indirect
github.com/Masterminds/sprig/v3 v3.2.2 // indirect
github.com/ProtonMail/go-crypto v0.0.0-20230217124315-7d5c6f04bbb8 // indirect
github.com/agext/levenshtein v1.2.2 // indirect
github.com/apparentlymart/go-textseg/v13 v13.0.0 // indirect
github.com/armon/go-radix v1.0.0 // indirect
github.com/bgentry/speakeasy v0.1.0 // indirect
github.com/cloudflare/circl v1.3.3 // indirect
github.com/fatih/color v1.13.0 // indirect
github.com/golang/protobuf v1.5.2 // indirect
github.com/google/go-cmp v0.5.9 // indirect
github.com/hashicorp/errwrap v1.0.0 // indirect
github.com/google/uuid v1.3.0 // indirect
github.com/hashicorp/errwrap v1.1.0 // indirect
github.com/hashicorp/go-checkpoint v0.5.0 // indirect
github.com/hashicorp/go-cleanhttp v0.5.2 // indirect
github.com/hashicorp/go-cty v1.4.1-0.20200414143053-d3edf31b6320 // indirect
github.com/hashicorp/go-hclog v1.4.0 // indirect
github.com/hashicorp/go-multierror v1.1.1 // indirect
github.com/hashicorp/go-plugin v1.4.8 // indirect
github.com/hashicorp/go-uuid v1.0.3 // indirect
github.com/hashicorp/go-version v1.6.0 // indirect
github.com/hashicorp/hc-install v0.5.2 // indirect
github.com/hashicorp/hcl/v2 v2.16.1 // indirect
github.com/hashicorp/logutils v1.0.0 // indirect
github.com/hashicorp/terraform-exec v0.18.1 // indirect
github.com/hashicorp/terraform-json v0.17.1 // indirect
github.com/hashicorp/terraform-plugin-go v0.14.3 // indirect
github.com/hashicorp/terraform-plugin-log v0.8.0 // indirect
github.com/hashicorp/terraform-registry-address v0.1.0 // indirect
github.com/hashicorp/terraform-svchost v0.0.0-20200729002733-f050f53b9734 // indirect
github.com/hashicorp/yamux v0.0.0-20181012175058-2f1d1f20f75d // indirect
github.com/mattn/go-colorable v0.1.12 // indirect
github.com/mattn/go-isatty v0.0.14 // indirect
github.com/huandu/xstrings v1.3.2 // indirect
github.com/imdario/mergo v0.3.13 // indirect
github.com/mattn/go-colorable v0.1.13 // indirect
github.com/mattn/go-isatty v0.0.16 // indirect
github.com/mitchellh/cli v1.1.5 // indirect
github.com/mitchellh/copystructure v1.2.0 // indirect
github.com/mitchellh/go-testing-interface v1.14.1 // indirect
github.com/mitchellh/go-wordwrap v1.0.0 // indirect
github.com/mitchellh/mapstructure v1.5.0 // indirect
github.com/mitchellh/reflectwalk v1.0.2 // indirect
github.com/oklog/run v1.0.0 // indirect
github.com/posener/complete v1.2.3 // indirect
github.com/russross/blackfriday v1.6.0 // indirect
github.com/shopspring/decimal v1.3.1 // indirect
github.com/spf13/cast v1.5.0 // indirect
github.com/vmihailenco/msgpack v4.0.4+incompatible // indirect
github.com/vmihailenco/msgpack/v4 v4.3.12 // indirect
github.com/vmihailenco/tagparser v0.1.1 // indirect
github.com/zclconf/go-cty v1.12.1 // indirect
golang.org/x/net v0.7.0 // indirect
golang.org/x/sys v0.5.0 // indirect
golang.org/x/text v0.7.0 // indirect
github.com/zclconf/go-cty v1.13.2 // indirect
golang.org/x/crypto v0.8.0 // indirect
golang.org/x/exp v0.0.0-20230626212559-97b1e661b5df // indirect
golang.org/x/mod v0.11.0 // indirect
golang.org/x/net v0.9.0 // indirect
golang.org/x/sys v0.7.0 // indirect
golang.org/x/text v0.11.0 // indirect
google.golang.org/appengine v1.6.6 // indirect
google.golang.org/genproto v0.0.0-20200711021454-869866162049 // indirect
google.golang.org/grpc v1.51.0 // indirect
Expand Down
Loading

0 comments on commit a2abf34

Please sign in to comment.