Skip to content

Commit 91b7c62

Browse files
committed
initial commit
0 parents  commit 91b7c62

File tree

14 files changed

+1229
-0
lines changed

14 files changed

+1229
-0
lines changed

.github/workflows/release.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: release
2+
on:
3+
push:
4+
tags:
5+
- v*
6+
permissions:
7+
contents: write
8+
jobs:
9+
goreleaser:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v2
13+
with:
14+
fetch-depth: 0
15+
- uses: actions/setup-go@v2
16+
with:
17+
go-version: 1.17.5
18+
- id: gpg
19+
uses: hashicorp/[email protected]
20+
env:
21+
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }}
22+
- uses: goreleaser/[email protected]
23+
env:
24+
GITHUB_TOKEN: ${{ github.token }}
25+
GPG_FINGERPRINT: ${{ steps.gpg.outputs.fingerprint }}

.goreleaser.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
builds:
2+
- mod_timestamp: '{{ .CommitTimestamp }}'
3+
flags:
4+
- -trimpath
5+
ldflags:
6+
- -s -w -X github.com/redpwn/terraform-provider-rctf/internal/version.Version={{.Version}}
7+
goos:
8+
- windows
9+
- linux
10+
- darwin
11+
goarch:
12+
- amd64
13+
- arm64
14+
binary: '{{ .ProjectName }}_v{{ .Version }}'
15+
archives:
16+
- format: zip
17+
name_template: '{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}'
18+
checksum:
19+
extra_files:
20+
- glob: terraform-registry-manifest.json
21+
name_template: '{{ .ProjectName }}_{{ .Version }}_manifest.json'
22+
name_template: '{{ .ProjectName }}_{{ .Version }}_SHA256SUMS'
23+
algorithm: sha256
24+
signs:
25+
- artifacts: checksum
26+
args:
27+
- --batch
28+
- --local-user
29+
- '{{ .Env.GPG_FINGERPRINT }}'
30+
- --output
31+
- ${signature}
32+
- --detach-sign
33+
- ${artifact}
34+
release:
35+
extra_files:
36+
- glob: terraform-registry-manifest.json
37+
name_template: '{{ .ProjectName }}_{{ .Version }}_manifest.json'
38+
changelog:
39+
skip: true

docs/index.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
---
2+
# generated by https://github.com/hashicorp/terraform-plugin-docs
3+
page_title: "rctf Provider"
4+
subcategory: ""
5+
description: |-
6+
7+
---
8+
9+
# rctf Provider
10+
11+
12+
13+
14+
15+
<!-- schema generated by tfplugindocs -->
16+
## Schema
17+
18+
### Required
19+
20+
- **auth_token** (String, Sensitive)
21+
- **url** (String)

docs/resources/challenge.md

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
---
2+
# generated by https://github.com/hashicorp/terraform-plugin-docs
3+
page_title: "rctf_challenge Resource - terraform-provider-rctf"
4+
subcategory: ""
5+
description: |-
6+
7+
---
8+
9+
# rctf_challenge (Resource)
10+
11+
12+
13+
14+
15+
<!-- schema generated by tfplugindocs -->
16+
## Schema
17+
18+
### Required
19+
20+
- **author** (String)
21+
- **category** (String)
22+
- **description** (String)
23+
- **flag** (String)
24+
- **max_points** (Number)
25+
- **min_points** (Number)
26+
- **name** (String)
27+
28+
### Optional
29+
30+
- **file** (Block List) (see [below for nested schema](#nestedblock--file))
31+
- **sort_weight** (Number)
32+
- **tiebreak_eligible** (Boolean)
33+
34+
### Read-Only
35+
36+
- **id** (String) The ID of this resource.
37+
38+
<a id="nestedblock--file"></a>
39+
### Nested Schema for `file`
40+
41+
Required:
42+
43+
- **name** (String)
44+
- **url** (String)
45+
46+

go.mod

Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
module github.com/redpwn/terraform-provider-rctf
2+
3+
go 1.17
4+
5+
require (
6+
github.com/hashicorp/terraform-plugin-docs v0.5.1
7+
github.com/hashicorp/terraform-plugin-sdk/v2 v2.10.1
8+
github.com/segmentio/ksuid v1.0.4
9+
)
10+
11+
require (
12+
cloud.google.com/go v0.61.0 // indirect
13+
cloud.google.com/go/storage v1.10.0 // indirect
14+
github.com/Masterminds/goutils v1.1.0 // indirect
15+
github.com/Masterminds/semver v1.5.0 // indirect
16+
github.com/Masterminds/sprig v2.22.0+incompatible // indirect
17+
github.com/agext/levenshtein v1.2.2 // indirect
18+
github.com/apparentlymart/go-textseg v1.0.0 // indirect
19+
github.com/apparentlymart/go-textseg/v13 v13.0.0 // indirect
20+
github.com/armon/go-radix v0.0.0-20180808171621-7fddfc383310 // indirect
21+
github.com/aws/aws-sdk-go v1.25.3 // indirect
22+
github.com/bgentry/go-netrc v0.0.0-20140422174119-9fd32a8b3d3d // indirect
23+
github.com/bgentry/speakeasy v0.1.0 // indirect
24+
github.com/fatih/color v1.7.0 // indirect
25+
github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect
26+
github.com/golang/protobuf v1.4.2 // indirect
27+
github.com/google/go-cmp v0.5.6 // indirect
28+
github.com/google/uuid v1.1.2 // indirect
29+
github.com/googleapis/gax-go/v2 v2.0.5 // indirect
30+
github.com/hashicorp/errwrap v1.0.0 // indirect
31+
github.com/hashicorp/go-checkpoint v0.5.0 // indirect
32+
github.com/hashicorp/go-cleanhttp v0.5.2 // indirect
33+
github.com/hashicorp/go-cty v1.4.1-0.20200414143053-d3edf31b6320 // indirect
34+
github.com/hashicorp/go-getter v1.5.3 // indirect
35+
github.com/hashicorp/go-hclog v0.16.1 // indirect
36+
github.com/hashicorp/go-multierror v1.1.1 // indirect
37+
github.com/hashicorp/go-plugin v1.4.1 // indirect
38+
github.com/hashicorp/go-safetemp v1.0.0 // indirect
39+
github.com/hashicorp/go-uuid v1.0.2 // indirect
40+
github.com/hashicorp/go-version v1.3.0 // indirect
41+
github.com/hashicorp/hcl/v2 v2.3.0 // indirect
42+
github.com/hashicorp/terraform-exec v0.15.0 // indirect
43+
github.com/hashicorp/terraform-json v0.13.0 // indirect
44+
github.com/hashicorp/terraform-plugin-go v0.5.0 // indirect
45+
github.com/hashicorp/terraform-plugin-log v0.2.0 // indirect
46+
github.com/hashicorp/terraform-registry-address v0.0.0-20210412075316-9b2996cce896 // indirect
47+
github.com/hashicorp/terraform-svchost v0.0.0-20200729002733-f050f53b9734 // indirect
48+
github.com/hashicorp/yamux v0.0.0-20181012175058-2f1d1f20f75d // indirect
49+
github.com/huandu/xstrings v1.3.2 // indirect
50+
github.com/imdario/mergo v0.3.12 // indirect
51+
github.com/jmespath/go-jmespath v0.0.0-20180206201540-c2b33e8439af // indirect
52+
github.com/jstemmer/go-junit-report v0.9.1 // indirect
53+
github.com/klauspost/compress v1.11.2 // indirect
54+
github.com/mattn/go-colorable v0.1.11 // indirect
55+
github.com/mattn/go-isatty v0.0.14 // indirect
56+
github.com/mitchellh/cli v1.1.2 // indirect
57+
github.com/mitchellh/copystructure v1.2.0 // indirect
58+
github.com/mitchellh/go-homedir v1.1.0 // indirect
59+
github.com/mitchellh/go-testing-interface v1.14.1 // indirect
60+
github.com/mitchellh/go-wordwrap v1.0.0 // indirect
61+
github.com/mitchellh/mapstructure v1.1.2 // indirect
62+
github.com/mitchellh/reflectwalk v1.0.2 // indirect
63+
github.com/oklog/run v1.0.0 // indirect
64+
github.com/posener/complete v1.1.1 // indirect
65+
github.com/russross/blackfriday v1.6.0 // indirect
66+
github.com/ulikunitz/xz v0.5.8 // indirect
67+
github.com/vmihailenco/msgpack v4.0.4+incompatible // indirect
68+
github.com/zclconf/go-cty v1.10.0 // indirect
69+
go.opencensus.io v0.22.4 // indirect
70+
golang.org/x/crypto v0.0.0-20210616213533-5ff15b29337e // indirect
71+
golang.org/x/lint v0.0.0-20200302205851-738671d3881b // indirect
72+
golang.org/x/mod v0.3.0 // indirect
73+
golang.org/x/net v0.0.0-20210326060303-6b1517762897 // indirect
74+
golang.org/x/oauth2 v0.0.0-20200107190931-bf48bf16ab8d // indirect
75+
golang.org/x/sys v0.0.0-20210927094055-39ccf1dd6fa6 // indirect
76+
golang.org/x/text v0.3.5 // indirect
77+
golang.org/x/tools v0.0.0-20200713011307-fd294ab11aed // indirect
78+
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543 // indirect
79+
google.golang.org/api v0.29.0 // indirect
80+
google.golang.org/appengine v1.6.6 // indirect
81+
google.golang.org/genproto v0.0.0-20200711021454-869866162049 // indirect
82+
google.golang.org/grpc v1.32.0 // indirect
83+
google.golang.org/protobuf v1.25.0 // indirect
84+
)

0 commit comments

Comments
 (0)