Skip to content

Commit 71ccdf0

Browse files
author
Dmitriy Matrenichev
committed
chore: implement main functionality
Add To and SafeDeref functions Signed-off-by: Dmitriy Matrenichev <dmitry.matrenichev@siderolabs.com>
1 parent c1c3b23 commit 71ccdf0

16 files changed

+1171
-0
lines changed

.codecov.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# THIS FILE WAS AUTOMATICALLY GENERATED, PLEASE DO NOT EDIT.
2+
#
3+
# Generated on 2022-04-18T12:48:01Z by kres 4975f30.
4+
5+
codecov:
6+
require_ci_to_pass: false
7+
8+
coverage:
9+
status:
10+
project:
11+
default:
12+
target: 50%
13+
threshold: 0.5%
14+
base: auto
15+
if_ci_failed: success
16+
patch: off
17+
18+
comment: false

.conform.yaml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# THIS FILE WAS AUTOMATICALLY GENERATED, PLEASE DO NOT EDIT.
2+
#
3+
# Generated on 2022-04-18T12:48:01Z by kres 4975f30.
4+
5+
---
6+
policies:
7+
- type: commit
8+
spec:
9+
dco: true
10+
gpg:
11+
required: true
12+
identity:
13+
gitHubOrganization: siderolabs
14+
spellcheck:
15+
locale: US
16+
maximumOfOneCommit: true
17+
header:
18+
length: 89
19+
imperative: true
20+
case: lower
21+
invalidLastCharacters: .
22+
body:
23+
required: true
24+
conventional:
25+
types: ["chore","docs","perf","refactor","style","test","release"]
26+
scopes: [".*"]
27+
- type: license
28+
spec:
29+
skipPaths:
30+
- .git/
31+
- testdata/
32+
includeSuffixes:
33+
- .go
34+
excludeSuffixes:
35+
- .pb.go
36+
- .pb.gw.go
37+
header: "// This Source Code Form is subject to the terms of the Mozilla Public\u000A// License, v. 2.0. If a copy of the MPL was not distributed with this\u000A// file, You can obtain one at http://mozilla.org/MPL/2.0/.\u000A"

.dockerignore

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# THIS FILE WAS AUTOMATICALLY GENERATED, PLEASE DO NOT EDIT.
2+
#
3+
# Generated on 2022-04-18T12:48:01Z by kres 4975f30.
4+
5+
**
6+
!pointer.go
7+
!go.mod
8+
!go.sum
9+
!.golangci.yml
10+
!README.md
11+
!.markdownlint.json

.drone.yml

Lines changed: 244 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,244 @@
1+
---
2+
# THIS FILE WAS AUTOMATICALLY GENERATED, PLEASE DO NOT EDIT.
3+
#
4+
# Generated on 2022-04-18T12:48:01Z by kres 4975f30.
5+
6+
kind: pipeline
7+
type: kubernetes
8+
name: default
9+
10+
platform:
11+
os: linux
12+
arch: amd64
13+
14+
steps:
15+
- name: setup-ci
16+
pull: always
17+
image: autonomy/build-container:latest
18+
commands:
19+
- sleep 5
20+
- git fetch --tags
21+
- install-ci-key
22+
- docker buildx create --driver docker-container --platform linux/amd64 --name local --use unix:///var/outer-run/docker.sock
23+
- docker buildx inspect --bootstrap
24+
environment:
25+
SSH_KEY:
26+
from_secret: ssh_key
27+
volumes:
28+
- name: outer-docker-socket
29+
path: /var/outer-run
30+
- name: docker-socket
31+
path: /var/run
32+
- name: buildx
33+
path: /root/.docker/buildx
34+
- name: ssh
35+
path: /root/.ssh
36+
37+
- name: base
38+
pull: always
39+
image: autonomy/build-container:latest
40+
commands:
41+
- make base
42+
volumes:
43+
- name: outer-docker-socket
44+
path: /var/outer-run
45+
- name: docker-socket
46+
path: /var/run
47+
- name: buildx
48+
path: /root/.docker/buildx
49+
- name: ssh
50+
path: /root/.ssh
51+
depends_on:
52+
- setup-ci
53+
54+
- name: unit-tests
55+
pull: always
56+
image: autonomy/build-container:latest
57+
commands:
58+
- make unit-tests
59+
volumes:
60+
- name: outer-docker-socket
61+
path: /var/outer-run
62+
- name: docker-socket
63+
path: /var/run
64+
- name: buildx
65+
path: /root/.docker/buildx
66+
- name: ssh
67+
path: /root/.ssh
68+
depends_on:
69+
- base
70+
71+
- name: unit-tests-race
72+
pull: always
73+
image: autonomy/build-container:latest
74+
commands:
75+
- make unit-tests-race
76+
volumes:
77+
- name: outer-docker-socket
78+
path: /var/outer-run
79+
- name: docker-socket
80+
path: /var/run
81+
- name: buildx
82+
path: /root/.docker/buildx
83+
- name: ssh
84+
path: /root/.ssh
85+
depends_on:
86+
- base
87+
88+
- name: coverage
89+
pull: always
90+
image: autonomy/build-container:latest
91+
commands:
92+
- make coverage
93+
environment:
94+
CODECOV_TOKEN:
95+
from_secret: CODECOV_TOKEN
96+
volumes:
97+
- name: outer-docker-socket
98+
path: /var/outer-run
99+
- name: docker-socket
100+
path: /var/run
101+
- name: buildx
102+
path: /root/.docker/buildx
103+
- name: ssh
104+
path: /root/.ssh
105+
depends_on:
106+
- unit-tests
107+
108+
- name: lint
109+
pull: always
110+
image: autonomy/build-container:latest
111+
commands:
112+
- make lint
113+
volumes:
114+
- name: outer-docker-socket
115+
path: /var/outer-run
116+
- name: docker-socket
117+
path: /var/run
118+
- name: buildx
119+
path: /root/.docker/buildx
120+
- name: ssh
121+
path: /root/.ssh
122+
depends_on:
123+
- base
124+
125+
- name: release-notes
126+
pull: always
127+
image: autonomy/build-container:latest
128+
commands:
129+
- make release-notes
130+
volumes:
131+
- name: outer-docker-socket
132+
path: /var/outer-run
133+
- name: docker-socket
134+
path: /var/run
135+
- name: buildx
136+
path: /root/.docker/buildx
137+
- name: ssh
138+
path: /root/.ssh
139+
when:
140+
event:
141+
- tag
142+
depends_on:
143+
- unit-tests
144+
- coverage
145+
- lint
146+
147+
- name: release
148+
pull: always
149+
image: plugins/github-release
150+
settings:
151+
api_key:
152+
from_secret: github_token
153+
checksum:
154+
- sha256
155+
- sha512
156+
draft: true
157+
files:
158+
- _out/*
159+
note: _out/RELEASE_NOTES.md
160+
volumes:
161+
- name: outer-docker-socket
162+
path: /var/outer-run
163+
- name: docker-socket
164+
path: /var/run
165+
- name: buildx
166+
path: /root/.docker/buildx
167+
- name: ssh
168+
path: /root/.ssh
169+
when:
170+
event:
171+
- tag
172+
depends_on:
173+
- release-notes
174+
175+
services:
176+
- name: docker
177+
image: docker:20.10-dind
178+
entrypoint:
179+
- dockerd
180+
commands:
181+
- --dns=8.8.8.8
182+
- --dns=8.8.4.4
183+
- --mtu=1500
184+
- --log-level=error
185+
privileged: true
186+
volumes:
187+
- name: outer-docker-socket
188+
path: /var/outer-run
189+
- name: docker-socket
190+
path: /var/run
191+
- name: buildx
192+
path: /root/.docker/buildx
193+
- name: ssh
194+
path: /root/.ssh
195+
196+
volumes:
197+
- name: outer-docker-socket
198+
host:
199+
path: /var/ci-docker
200+
- name: docker-socket
201+
temp:
202+
medium: memory
203+
- name: buildx
204+
temp:
205+
medium: memory
206+
- name: ssh
207+
temp:
208+
medium: memory
209+
210+
---
211+
kind: pipeline
212+
type: kubernetes
213+
name: notify
214+
215+
platform:
216+
os: linux
217+
arch: amd64
218+
219+
clone:
220+
disable: true
221+
222+
steps:
223+
- name: slack
224+
image: plugins/slack
225+
settings:
226+
channel: proj-talos-maintainers
227+
link_names: true
228+
template: "{{#if build.pull }}\n*{{#success build.status}}✓ Success{{else}}✕ Fail{{/success}}*: {{ repo.owner }}/{{ repo.name }} - <https://github.com/{{ repo.owner }}/{{ repo.name }}/pull/{{ build.pull }}|Pull Request #{{ build.pull }}>\n{{else}}\n*{{#success build.status}}✓ Success{{else}}✕ Fail{{/success}}: {{ repo.owner }}/{{ repo.name }} - Build #{{ build.number }}* (type: `{{ build.event }}`)\n{{/if}}\nCommit: <https://github.com/{{ repo.owner }}/{{ repo.name }}/commit/{{ build.commit }}|{{ truncate build.commit 8 }}>\nBranch: <https://github.com/{{ repo.owner }}/{{ repo.name }}/commits/{{ build.branch }}|{{ build.branch }}>\nAuthor: {{ build.author }}\n<{{ build.link }}|Visit build page>"
229+
webhook:
230+
from_secret: slack_webhook
231+
when:
232+
status:
233+
- success
234+
- failure
235+
236+
trigger:
237+
status:
238+
- success
239+
- failure
240+
241+
depends_on:
242+
- default
243+
244+
...

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# THIS FILE WAS AUTOMATICALLY GENERATED, PLEASE DO NOT EDIT.
2+
#
3+
# Generated on 2022-04-18T12:48:01Z by kres 4975f30.
4+
5+
_out

0 commit comments

Comments
 (0)