Skip to content

Commit 5029a03

Browse files
committed
Add hidden files
1 parent 8acfbc8 commit 5029a03

File tree

5 files changed

+392
-0
lines changed

5 files changed

+392
-0
lines changed

.github/dependabot.yml

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: 'gomod' # See documentation for possible values
4+
directory: '/' # Location of package manifests
5+
open-pull-requests-limit: 25
6+
schedule:
7+
interval: 'daily'
8+
- package-ecosystem: 'github-actions' # See documentation for possible values
9+
directory: '/' # Location of package manifests
10+
open-pull-requests-limit: 25
11+
schedule:
12+
interval: 'daily'
+107
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,107 @@
1+
name: Publish Provider
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v[0-9]+.[0-9]+.[0-9]+'
7+
8+
permissions:
9+
contents: write
10+
11+
jobs:
12+
build-and-test:
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- name: Checkout Repository
17+
uses: actions/checkout@v2
18+
19+
- name: Setup Go
20+
uses: actions/setup-go@v2
21+
with:
22+
go-version: '1.19'
23+
stable: true
24+
25+
- name: Cache Go Modules
26+
uses: actions/cache@v2
27+
with:
28+
path: ~/go/pkg/mod
29+
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
30+
restore-keys: |
31+
${{ runner.os }}-go-
32+
33+
- name: Tidy Modules
34+
run: go mod tidy
35+
36+
- name: Build the provider
37+
run: go build -o terraform-provider-liblab
38+
39+
- name: Run Unit Tests
40+
run: make unit-test
41+
42+
# Uncomment once you have acceptance tests set up and you want them to run on PR checks
43+
# - name: Run Acceptance Tests
44+
# run: make acceptance-test
45+
46+
release:
47+
needs: build-and-test
48+
runs-on: ubuntu-latest
49+
steps:
50+
- name: Checkout Repository
51+
uses: actions/checkout@v2
52+
53+
- name: Setup Go
54+
uses: actions/setup-go@v2
55+
with:
56+
go-version: '1.19'
57+
stable: true
58+
59+
# Import the GPG key before the build step that requires it
60+
- name: Import GPG key
61+
uses: crazy-max/ghaction-import-gpg@v6
62+
id: import_gpg
63+
with:
64+
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
65+
passphrase: ${{ secrets.PASSPHRASE }}
66+
env:
67+
GPG_FINGERPRINT: ${{ steps.import_gpg.outputs.fingerprint }}
68+
69+
- name: Create Release
70+
id: create_release
71+
uses: actions/create-release@v1
72+
env:
73+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
74+
with:
75+
tag_name: ${{ github.ref_name }}
76+
release_name: Release ${{ github.ref_name }}
77+
draft: false
78+
prerelease: false
79+
80+
publish:
81+
needs: release
82+
runs-on: ubuntu-latest
83+
steps:
84+
- uses: actions/checkout@v2
85+
with:
86+
# Allow goreleaser to access older tag information.
87+
fetch-depth: 0
88+
- uses: actions/setup-go@v2
89+
with:
90+
go-version-file: 'go.mod'
91+
cache: true
92+
- name: Import GPG key
93+
uses: crazy-max/ghaction-import-gpg@v6
94+
id: import_gpg
95+
with:
96+
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
97+
passphrase: ${{ secrets.PASSPHRASE }}
98+
env:
99+
GPG_FINGERPRINT: ${{ steps.import_gpg.outputs.fingerprint }}
100+
- name: Run GoReleaser
101+
uses: goreleaser/goreleaser-action@v5
102+
with:
103+
args: release --clean
104+
env:
105+
# GitHub sets the GITHUB_TOKEN secret automatically.
106+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
107+
GPG_FINGERPRINT: ${{ steps.import_gpg.outputs.fingerprint }}
+59
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
name: Pull Request Checks
2+
3+
on:
4+
pull_request:
5+
6+
permissions:
7+
pull-requests: write
8+
contents: write
9+
10+
jobs:
11+
linting-and-testing:
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- name: Checkout
16+
uses: actions/checkout@v2
17+
18+
- name: Setup Go
19+
uses: actions/setup-go@v2
20+
with:
21+
go-version: '1.19'
22+
stable: true
23+
24+
- name: Cache Go Modules
25+
uses: actions/cache@v2
26+
with:
27+
path: ~/go/pkg/mod
28+
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
29+
restore-keys: |
30+
${{ runner.os }}-go-
31+
32+
- name: Tidy Modules
33+
run: go mod tidy
34+
35+
- name: Build the provider
36+
run: go build -o terraform-provider-liblab .
37+
38+
- name: Generate Docs
39+
run: go generate ./...
40+
41+
- name: Run Unit Tests
42+
run: make unit-test
43+
44+
dependabot:
45+
name: 'Dependabot'
46+
needs: [linting-and-testing]
47+
runs-on: ubuntu-latest
48+
if: ${{ github.actor == 'dependabot[bot]' && github.event_name == 'pull_request'}}
49+
steps:
50+
- name: Dependabot metadata
51+
id: metadata
52+
uses: dependabot/[email protected]
53+
with:
54+
github-token: '${{ secrets.GITHUB_TOKEN }}'
55+
- name: Enable auto-merge for Dependabot PRs
56+
run: gh pr merge --auto --merge "$PR_URL"
57+
env:
58+
PR_URL: ${{github.event.pull_request.html_url}}
59+
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

.goreleaser.yml

+67
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
# This section defines how the artifacts should be archived
2+
archives:
3+
- format: zip
4+
name_template: '{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}'
5+
6+
# Set necessary hooks before go releaser executes
7+
before:
8+
hooks:
9+
- go mod tidy
10+
11+
# Build customization
12+
builds:
13+
- binary: '{{ .ProjectName }}_v{{ .Version }}'
14+
env:
15+
- CGO_ENABLED=0
16+
mod_timestamp: '{{ .CommitTimestamp }}'
17+
flags:
18+
- -trimpath
19+
ldflags:
20+
- '-s -w -X main.version={{.Version}} -X main.commit={{.Commit}}'
21+
goos:
22+
- freebsd
23+
- windows
24+
- linux
25+
- darwin
26+
goarch:
27+
- amd64
28+
- '386'
29+
- arm
30+
- arm64
31+
ignore:
32+
- goos: darwin
33+
goarch: '386'
34+
35+
# Include a changelog or not
36+
changelog:
37+
skip: true
38+
39+
# Checksum and signing configuration
40+
checksum:
41+
name_template: '{{ .ProjectName }}_{{ .Version }}_SHA256SUMS'
42+
algorithm: sha256
43+
extra_files:
44+
- glob: 'terraform-registry-manifest.json'
45+
name_template: '{{ .ProjectName }}_{{ .Version }}_manifest.json'
46+
47+
# This section defines how the artifacts should be published
48+
release:
49+
extra_files:
50+
- glob: 'terraform-registry-manifest.json'
51+
name_template: '{{ .ProjectName }}_{{ .Version }}_manifest.json'
52+
53+
# This section defines how the artifacts should be signed
54+
signs:
55+
- artifacts: checksum
56+
args:
57+
- '--batch'
58+
- '--local-user'
59+
- '{{ .Env.GPG_FINGERPRINT }}'
60+
- '--output'
61+
- '${signature}'
62+
- '--detach-sign'
63+
- '${artifact}'
64+
65+
# Snapshot configuration in case you want to create non-release builds
66+
snapshot:
67+
name_template: '{{ .Tag }}-snapshot'

.manifest.json

+147
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,147 @@
1+
{
2+
"liblabVersion": "2.0.20",
3+
"date": "2024-03-22T13:14:54.204Z",
4+
"config": {
5+
"usesFormData": false,
6+
"authentication": {
7+
"access": {
8+
"prefix": "Bearer"
9+
}
10+
},
11+
"environmentVariables": [],
12+
"inferServiceNames": false,
13+
"httpLibrary": {
14+
"name": "axios",
15+
"packages": {
16+
"axios": "^1.6.8"
17+
},
18+
"languages": ["typescript"]
19+
},
20+
"auth": ["bearer"],
21+
"sdkName": "client",
22+
"sdkVersion": "1.0.0",
23+
"retry": {
24+
"enabled": true,
25+
"maxAttempts": 3,
26+
"retryDelay": 150
27+
},
28+
"multiTenant": true,
29+
"customQueries": {
30+
"paths": [],
31+
"rawQueries": [],
32+
"queriesData": []
33+
},
34+
"generateEnv": true,
35+
"injectedModels": [],
36+
"includeWatermark": true,
37+
"license": {
38+
"type": "MIT"
39+
},
40+
"deliveryMethod": "zip",
41+
"apiId": 612,
42+
"liblabVersion": "1",
43+
"deliveryMethods": ["zip"],
44+
"languages": ["terraform"],
45+
"apiVersion": "1.0.0",
46+
"apiName": "liblab",
47+
"specFilePath": "./liblab.json",
48+
"createDocs": false,
49+
"languageOptions": {
50+
"go": {
51+
"goModuleName": "github.com/liblab-sdk"
52+
},
53+
"terraform": {
54+
"hideComputedDiff": false,
55+
"mockAcceptance": true,
56+
"providerGoModuleName": "github.com/terraform-provider-liblab",
57+
"providerName": "liblab",
58+
"providerVersion": "0.0.1"
59+
}
60+
},
61+
"publishing": {
62+
"githubOrg": ""
63+
},
64+
"includeOptionalSnippetParameters": true,
65+
"devContainer": false,
66+
"responseHeaders": false,
67+
"specUrl": "https://prod-liblab-api-stack-specs.s3.us-east-1.amazonaws.com/612/open-api-spec.json?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Credential=AKIA5P3QKKDKGVNIJ2H7%2F20240322%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20240322T131450Z&X-Amz-Expires=43200&X-Amz-Signature=f665b4a4baa9d9130fc76d9571da06129f752c07f8eaf663095947c1db6a59aa&X-Amz-SignedHeaders=host&x-id=GetObject",
68+
"language": "terraform",
69+
"goModuleName": "github.com/liblab-sdk",
70+
"hooks": {
71+
"enabled": false,
72+
"sourceDir": ""
73+
},
74+
"planModifiers": {
75+
"resources": {
76+
"enabled": false
77+
},
78+
"attributes": {
79+
"enabled": false
80+
}
81+
},
82+
"providerGoModuleName": "github.com/terraform-provider-liblab",
83+
"providerName": "liblab",
84+
"providerVersion": "0.0.1",
85+
"mockAcceptance": true,
86+
"hideComputedDiff": false
87+
},
88+
"files": [
89+
".github/dependabot.yml",
90+
"examples/provider/main.tf",
91+
"go.mod",
92+
".goreleaser.yml",
93+
"main.go",
94+
"GNUmakefile",
95+
"internal/provider/provider.go",
96+
".github/workflows/pull-request-checks.yml",
97+
"README.md",
98+
".github/workflows/publish-provider.yml",
99+
"terraform-registry-manifest.json",
100+
"internal/provider/token/resource_test.go",
101+
"tools/tools.go",
102+
"internal/utils/utils.go",
103+
"./LICENSE",
104+
"examples/resources/token/main.tf",
105+
"internal/provider/token/acceptance/resource_e2e_test.go",
106+
"internal/provider/token/resource.go",
107+
"internal/client/./LICENSE",
108+
"internal/client/.gitignore",
109+
"internal/client/cmd/examples/example.go",
110+
"internal/client/go.mod",
111+
"internal/client/internal/clients/rest/client.go",
112+
"internal/client/internal/clients/rest/handlers/bearer_token_handler.go",
113+
"internal/client/internal/clients/rest/handlers/default_headers_handler.go",
114+
"internal/client/internal/clients/rest/handlers/handler_chain.go",
115+
"internal/client/internal/clients/rest/handlers/hook_handler.go",
116+
"internal/client/internal/clients/rest/handlers/request_validation_handler.go",
117+
"internal/client/internal/clients/rest/handlers/response_validation_handler.go",
118+
"internal/client/internal/clients/rest/handlers/retry_handler.go",
119+
"internal/client/internal/clients/rest/handlers/terminating_handler.go",
120+
"internal/client/internal/clients/rest/handlers/unmarshal_handler.go",
121+
"internal/client/internal/clients/rest/hooks/default_hook.go",
122+
"internal/client/internal/clients/rest/hooks/hook.go",
123+
"internal/client/internal/clients/rest/httptransport/error_response.go",
124+
"internal/client/internal/clients/rest/httptransport/request.go",
125+
"internal/client/internal/clients/rest/httptransport/response.go",
126+
"internal/client/internal/configmanager/config_manager.go",
127+
"internal/client/internal/marshal/from_complex_object.go",
128+
"internal/client/internal/unmarshal/to_complex_object.go",
129+
"internal/client/internal/unmarshal/to_object.go",
130+
"internal/client/internal/unmarshal/to_primitive.go",
131+
"internal/client/internal/unmarshal/unmarshal.go",
132+
"internal/client/internal/utils/utils.go",
133+
"internal/client/internal/validation/validate_required.go",
134+
"internal/client/internal/validation/validation.go",
135+
"internal/client/pkg/client/client.go",
136+
"internal/client/pkg/clientconfig/config.go",
137+
"internal/client/pkg/clientconfig/environments.go",
138+
"internal/client/pkg/shared/client_error.go",
139+
"internal/client/pkg/shared/client_response.go",
140+
"internal/client/pkg/token/create_token_request.go",
141+
"internal/client/pkg/token/create_token_response.go",
142+
"internal/client/pkg/token/get_token_response.go",
143+
"internal/client/pkg/token/request_params.go",
144+
"internal/client/pkg/token/token_service.go",
145+
"internal/client/README.md"
146+
]
147+
}

0 commit comments

Comments
 (0)