Skip to content

Commit d4a065d

Browse files
committed
feat: Initial commit of code. We have one function working.
0 parents  commit d4a065d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+9945
-0
lines changed

.dcignore

+110
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,110 @@
1+
# Write glob rules for ignored files.
2+
# Check syntax on https://deepcode.freshdesk.com/support/solutions/articles/60000531055-how-can-i-ignore-files-or-directories-
3+
# Used by Snyk; https://docs.snyk.io/features/integrations/ide-tools/visual-studio-code-extension-for-snyk-code
4+
5+
# Hidden directories
6+
.*/
7+
8+
# Python
9+
__pycache__/
10+
build/
11+
develop-eggs/
12+
dist/
13+
downloads/
14+
eggs/
15+
lib/
16+
lib64/
17+
parts/
18+
sdist/
19+
var/
20+
wheels/
21+
share/python-wheels/
22+
*.egg-info/
23+
MANIFEST
24+
htmlcov/
25+
cover/
26+
instance/
27+
docs/_build/
28+
target/
29+
profile_default/
30+
__pypackages__/
31+
celerybeat-schedule
32+
env/
33+
venv/
34+
ENV/
35+
env.bak/
36+
venv.bak/
37+
/site
38+
cython_debug/
39+
40+
# JupyterNotebooks
41+
profile_default/
42+
43+
# Hugo
44+
/public/
45+
/resources/_gen/
46+
47+
# VirtualEnv
48+
[Bb]in
49+
[Ii]nclude
50+
[Ll]ib
51+
[Ll]ib64
52+
[Ll]ocal
53+
[Ss]cripts
54+
55+
# SublimeText
56+
Package Control.cache/
57+
Package Control.ca-certs/
58+
59+
# Windows
60+
$RECYCLE.BIN/
61+
62+
# Linux
63+
*~
64+
65+
# Emacs
66+
*~
67+
#*#
68+
auto-save-list
69+
tramp
70+
*_archive
71+
/eshell/history
72+
/eshell/lastdir
73+
/elpa/
74+
/auto/
75+
dist/
76+
/server/
77+
78+
# macOS
79+
Icon
80+
81+
Network Trash Folder
82+
Temporary Items
83+
84+
# JetBrains
85+
cmake-build-*/
86+
out/
87+
88+
# Vim
89+
*~
90+
tags
91+
92+
# Node
93+
logs
94+
pids
95+
lib-cov
96+
coverage
97+
bower_components
98+
build/Release
99+
node_modules/
100+
jspm_packages/
101+
web_modules/
102+
out
103+
dist
104+
105+
# Rust
106+
debug/
107+
target/
108+
109+
# Packer
110+
packer_cache/

.editorconfig

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# Uses editorconfig to maintain consistent coding styles
2+
# http://EditorConfig.org
3+
4+
root = true
5+
6+
[*]
7+
charset = utf-8
8+
end_of_line = lf
9+
indent_size = 4
10+
indent_style = space
11+
insert_final_newline = true
12+
max_line_length = 120
13+
trim_trailing_whitespace = true
14+
15+
[*.toml]
16+
indent_size = 4
17+
18+
[*.{css,html,js,json,less,sass,scss,yaml,yml}]
19+
indent_size = 2
20+
21+
[*.{tf,tfvars}]
22+
indent_size = 2
23+
indent_style = space
24+
25+
[*.py]
26+
indent_size = 4
27+
28+
[*.md]
29+
max_line_length = 0
30+
trim_trailing_whitespace = false
31+
32+
[Makefile*]
33+
indent_style = tab

.gitattributes

+132
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,132 @@
1+
# Helps Git use the right algorithms for diffs
2+
# https://git-scm.com/docs/gitattributes
3+
4+
# Auto detect text files and perform LF normalization
5+
# https://www.davidlaing.com/2012/09/19/customise-your-gitattributes-to-become-a-git-ninja/
6+
* text=auto
7+
8+
# Front-end
9+
*.css text eol=lf diff=css
10+
*.htm text eol=lf diff=html
11+
*.html text eol=lf diff=html
12+
*.js text eol=lf
13+
*.less text eol=lf diff=css
14+
*.sass text eol=lf diff=css
15+
*.scss text eol=lf diff=css
16+
*.ts text eol=lf
17+
*.xhtml text eol=lf diff=html
18+
19+
# Documents
20+
*.bibtex text diff=bibtex
21+
*.doc diff=astextplain
22+
*.DOC diff=astextplain
23+
*.docx diff=astextplain
24+
*.DOCX diff=astextplain
25+
*.dot diff=astextplain
26+
*.DOT diff=astextplain
27+
*.pdf diff=astextplain
28+
*.PDF diff=astextplain
29+
*.rtf diff=astextplain
30+
*.RTF diff=astextplain
31+
*.md text eol=lf diff=markdown
32+
*.tex text eol=lf diff=tex
33+
*.adoc text eol=lf
34+
*.textile text eol=lf
35+
*.mustache text eol=lf
36+
*.csv text eol=lf
37+
*.tab text eol=lf
38+
*.tsv text eol=lf
39+
*.txt text eol=lf
40+
*.sql text eol=lf
41+
*.markdown text eol=lf diff=markdown
42+
*.md text eol=lf diff=markdown
43+
*.mdwn text eol=lf diff=markdown
44+
*.mdown text eol=lf diff=markdown
45+
*.mkd text eol=lf diff=markdown
46+
*.mkdn text eol=lf diff=markdown
47+
*.mdtxt text eol=lf diff=markdown
48+
*.mdtext text eol=lf diff=markdown
49+
*.txt text eol=lf
50+
51+
# "Files"
52+
Dockerfile text eol=lf
53+
Makefile text eol=lf
54+
*README* text eol=lf
55+
56+
# Graphics
57+
*.png binary
58+
*.jpg binary
59+
*.jpeg binary
60+
*.gif binary
61+
*.tif binary
62+
*.tiff binary
63+
*.ico binary
64+
*.eps binary
65+
*.svg text eol=lf
66+
*.svgz binary
67+
*.webp binary
68+
69+
# Scripts
70+
*.bash text eol=lf
71+
*.fish text eol=lf
72+
*.sh text eol=lf
73+
# These are explicitly windows files and should use crlf
74+
*.bat text eol=crlf
75+
*.cmd text eol=crlf
76+
*.ps1 text eol=crlf
77+
78+
# Fonts
79+
*.ttf binary
80+
*.eot binary
81+
*.otf binary
82+
*.woff binary
83+
*.woff2 binary
84+
85+
# Serialization
86+
*.ini text eol=lf
87+
*.json text eol=lf
88+
*.toml text eol=lf
89+
*.xml text eol=lf
90+
*.yaml text eol=lf
91+
*.yml text eol=lf
92+
93+
# Configs
94+
*.conf text eol=lf
95+
*.config text eol=lf
96+
.editorconfig text eol=lf
97+
.env text eol=lf
98+
.gitattributes text eol=lf
99+
.gitconfig text eol=lf
100+
*.lock text eol=lf -diff
101+
package-lock.json text eol=lf -diff
102+
103+
# Archives
104+
*.7z binary
105+
*.gz binary
106+
*.tar binary
107+
*.tgz binary
108+
*.zip binary
109+
110+
# Database
111+
*.sql text eol=lf
112+
113+
# Text files where line endings should be preserved
114+
*.patch -text
115+
116+
# Exclude files from exporting
117+
.gitattributes export-ignore
118+
.gitignore export-ignore
119+
.gitkeep export-ignore
120+
121+
# Treat all Go files in this repo as binary, with no git magic updating
122+
# line endings. Windows users contributing to Go will need to use a
123+
# modern version of git and editors capable of LF line endings.
124+
*.go -text diff=golang
125+
126+
# Terraform
127+
*.tf text eol=lf
128+
*.tfvars text eol=lf
129+
*.hcl text eol=lf
130+
131+
# Ignore files (like .npmignore or .gitignore)
132+
*.*ignore text eol=lf

.github/CODE_OF_CONDUCT.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Code of Conduct
2+
3+
HashiCorp Community Guidelines apply to you when interacting with the community here on GitHub and contributing code.
4+
5+
Please read the full text at https://www.hashicorp.com/community-guidelines

.github/ISSUE_TEMPLATE.md

+43
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
Hi there,
2+
3+
Thank you for opening an issue. Please note that we try to keep the Terraform issue tracker reserved for bug reports and feature requests. For general usage questions, please see: https://www.terraform.io/community.html.
4+
5+
### Terraform Version
6+
Run `terraform -v` to show the version. If you are not running the latest version of Terraform, please upgrade because your issue may have already been fixed.
7+
8+
### Affected Resource(s)
9+
Please list the resources as a list, for example:
10+
- opc_instance
11+
- opc_storage_volume
12+
13+
If this issue appears to affect multiple resources, it may be an issue with Terraform's core, so please mention this.
14+
15+
### Terraform Configuration Files
16+
```hcl
17+
# Copy-paste your Terraform configurations here - for large Terraform configs,
18+
# please use a service like Dropbox and share a link to the ZIP file. For
19+
# security, you can also encrypt the files using our GPG public key.
20+
```
21+
22+
### Debug Output
23+
Please provider a link to a GitHub Gist containing the complete debug output: https://www.terraform.io/docs/internals/debugging.html. Please do NOT paste the debug output in the issue; just paste a link to the Gist.
24+
25+
### Panic Output
26+
If Terraform produced a panic, please provide a link to a GitHub Gist containing the output of the `crash.log`.
27+
28+
### Expected Behavior
29+
What should have happened?
30+
31+
### Actual Behavior
32+
What actually happened?
33+
34+
### Steps to Reproduce
35+
Please list the steps required to reproduce the issue, for example:
36+
1. `terraform apply`
37+
38+
### Important Factoids
39+
Are there anything atypical about your accounts that we should know? For example: Running in EC2 Classic? Custom version of OpenStack? Tight ACLs?
40+
41+
### References
42+
Are there any other GitHub issues (open or closed) or Pull Requests that should be linked here? For example:
43+
- GH-1234

.github/workflows/release.yml

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# This GitHub action can publish assets for release when a tag is created.
2+
# Currently its setup to run on any tag that matches the pattern "v*" (ie. v0.1.0).
3+
#
4+
# This uses an action (hashicorp/ghaction-import-gpg) that assumes you set your
5+
# private key in the `GPG_PRIVATE_KEY` secret and passphrase in the `PASSPHRASE`
6+
# secret. If you would rather own your own GPG handling, please fork this action
7+
# or use an alternative one for key handling.
8+
#
9+
# You will need to pass the `--batch` flag to `gpg` in your signing step
10+
# in `goreleaser` to indicate this is being used in a non-interactive mode.
11+
#
12+
name: release
13+
on:
14+
push:
15+
tags:
16+
- "v*"
17+
jobs:
18+
goreleaser:
19+
runs-on: ubuntu-latest
20+
steps:
21+
- name: Checkout
22+
uses: actions/checkout@v2
23+
- name: Unshallow
24+
run: git fetch --prune --unshallow
25+
- name: Set up Go
26+
uses: actions/setup-go@v2
27+
with:
28+
go-version: 1.14
29+
- name: Import GPG key
30+
id: import_gpg
31+
uses: hashicorp/ghaction-import-gpg@v2.1.0
32+
env:
33+
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }}
34+
PASSPHRASE: ${{ secrets.PASSPHRASE }}
35+
- name: Run GoReleaser
36+
uses: goreleaser/goreleaser-action@v2
37+
with:
38+
version: latest
39+
args: release --rm-dist
40+
env:
41+
GPG_FINGERPRINT: ${{ steps.import_gpg.outputs.fingerprint }}
42+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)