Skip to content

Commit 06fa33c

Browse files
committed
Initial commit
0 parents  commit 06fa33c

File tree

1,577 files changed

+761130
-0
lines changed

Some content is hidden

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

1,577 files changed

+761130
-0
lines changed

.dockerignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
.git
2+
vendor
3+
gocache-for-docker
4+
.idea
5+
.zed
6+
.vscode

.github/dependabot.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "github-actions"
4+
directory: "/"
5+
schedule:
6+
interval: "weekly"
7+
- package-ecosystem: "gomod"
8+
directory: "/"
9+
schedule:
10+
interval: "weekly"
11+
open-pull-requests-limit: 0
12+
- package-ecosystem: "docker"
13+
directory: "/"
14+
schedule:
15+
interval: "weekly"

.github/workflows/release.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: build
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*'
7+
8+
jobs:
9+
release:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout
13+
uses: actions/checkout@v4
14+
- name: Setup Go
15+
uses: actions/setup-go@v5
16+
with:
17+
go-version: 1.24.3
18+
- name: Check licenses and vulnerabilities
19+
run: make check
20+
- name: Lint source code
21+
uses: golangci/golangci-lint-action@v6
22+
with:
23+
version: v1.64.7
24+
- name: Tests
25+
run: make test
26+
#- uses: docker/login-action@v3
27+
# with:
28+
# registry: quai.io
29+
# username: ${{ secrets.TODO }}
30+
# password: ${{ secrets.TODO }}
31+
#- uses: docker/login-action@v3
32+
# with:
33+
# registry: docker.io
34+
# username: ${{ secrets.TODO }}
35+
# password: ${{ secrets.TODO }}
36+
- name: Build and release
37+
uses: goreleaser/goreleaser-action@v6
38+
if: success() && startsWith(github.ref, 'refs/tags/')
39+
with:
40+
args: release --clean --timeout 60m -f .goreleaser.yaml
41+
env:
42+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.gitignore

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
.idea
2+
.zed
3+
.vscode
4+
tmp/
5+
*.pprof
6+
main
7+
*.test
8+
*.swp
9+
/gocache-for-docker
10+
.DS_store
11+
*.tmp
12+
coverage.txt
13+
*~
14+
dist/
15+
bin/

.golangci.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
run:
2+
timeout: 2m
3+
4+
linters:
5+
enable:
6+
- revive

.goreleaser.yaml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
version: 2
2+
3+
builds:
4+
- env:
5+
- CGO_ENABLED=0
6+
goos:
7+
- linux
8+
- windows
9+
- darwin
10+
goarch:
11+
- amd64
12+
- arm64
13+
- arm
14+
- "386"
15+
main: ./cmd/mcp-victorialogs/main.go
16+
17+
archives:
18+
- formats: [tar.gz]
19+
# this name template makes the OS and Arch compatible with the results of `uname`.
20+
name_template: >-
21+
{{ .ProjectName }}_
22+
{{- title .Os }}_
23+
{{- if eq .Arch "amd64" }}x86_64
24+
{{- else if eq .Arch "386" }}i386
25+
{{- else }}{{ .Arch }}{{ end }}
26+
{{- if .Arm }}v{{ .Arm }}{{ end }}
27+
# use zip for windows archives
28+
format_overrides:
29+
- goos: windows
30+
formats: [zip]
31+
32+
#dockers:
33+
# - image_templates:
34+
# - "docker.io/victoriametrics/mcp-victoriametrics:{{ .Version }}"
35+
# - "quay.io/victoriametrics/mcp-victoriametrics:{{ .Version }}"
36+
# dockerfile: Dockerfile
37+
# build_flag_templates:
38+
# - --label=org.opencontainers.image.title={{ .ProjectName }}
39+
# - --label=org.opencontainers.image.description={{ .ProjectName }}
40+
# - --label=org.opencontainers.image.url=https://github.com/VictoriaMetrics-Community/mcp-victorialogs
41+
# - --label=org.opencontainers.image.source=https://github.com/VictoriaMetrics-Community/mcp-victorialogs
42+
# - --label=org.opencontainers.image.version={{ .Version }}
43+
# - --label=org.opencontainers.image.created={{ time "2006-01-02T15:04:05Z07:00" }}
44+
# - --label=org.opencontainers.image.revision={{ .FullCommit }}
45+
# - --label=org.opencontainers.image.licenses=MIT

.wwhrd.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
allowlist:
2+
- Apache-2.0
3+
- MIT
4+
- BSD-3-Clause
5+
- BSD-2-Clause
6+
- ISC
7+
- MPL-2.0

CODE_OF_CONDUCT.md

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
# Contributor Covenant Code of Conduct
2+
3+
## Our Pledge
4+
5+
In the interest of fostering an open and welcoming environment, we as
6+
contributors and maintainers pledge to making participation in our project and
7+
our community a harassment-free experience for everyone, regardless of age, body
8+
size, disability, ethnicity, sex characteristics, gender identity and expression,
9+
level of experience, education, socio-economic status, nationality, personal
10+
appearance, race, religion or sexual identity and orientation.
11+
12+
## Our Standards
13+
14+
Examples of behavior that contributes to creating a positive environment
15+
include:
16+
17+
* Using welcoming and inclusive language
18+
* Being respectful of differing viewpoints and experiences
19+
* Gracefully accepting constructive criticism
20+
* Focusing on what is best for the community
21+
* Showing empathy towards other community members
22+
23+
Examples of unacceptable behavior by participants include:
24+
25+
* The use of sexualized language or imagery and unwelcome sexual attention or
26+
advances
27+
* Trolling, insulting/derogatory comments and personal or political attacks
28+
* Public or private harassment
29+
* Publishing others' private information, such as physical or electronic
30+
address, without explicit permission
31+
* Other conduct which could reasonably be considered inappropriate in a
32+
professional setting
33+
34+
## Our Responsibilities
35+
36+
Project maintainers are responsible for clarifying the standards of acceptable
37+
behavior and are expected to take appropriate and fair corrective action in
38+
response to any instances of unacceptable behavior.
39+
40+
Project maintainers have the right and responsibility to remove, edit, or
41+
reject comments, commits, code, wiki edits, issues and other contributions
42+
that are not aligned to this Code of Conduct or to ban temporarily or
43+
permanently any contributor for other behaviors that they deem inappropriate,
44+
threatening, offensive or harmful.
45+
46+
## Scope
47+
48+
This Code of Conduct applies both within project spaces and in public spaces
49+
when an individual is representing the project or its community. Examples of
50+
representing a project or community include using an official project e-mail
51+
address, posting via an official social media account or acting as an appointed
52+
representative at an online or offline event. Representation of a project may be
53+
further defined and clarified by project maintainers.
54+
55+
## Enforcement
56+
57+
Instances of abusive, harassing or otherwise unacceptable behavior may be
58+
reported by contacting the project team at [email protected]. All
59+
complaints will be reviewed and investigated and will result in a response that
60+
is deemed necessary and appropriate for the circumstances. The project team is
61+
obligated to maintain confidentiality with regard to the reporter of an incident.
62+
Further details of specific enforcement policies may be posted separately.
63+
64+
Project maintainers who do not follow or enforce the Code of Conduct in good
65+
faith may face temporary or permanent repercussions as determined by other
66+
members of the project's leadership.
67+
68+
## Attribution
69+
70+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71+
available at <https://www.contributor-covenant.org/version/1/4/code-of-conduct.html>
72+
73+
[homepage]: https://www.contributor-covenant.org
74+
75+
For answers to common questions about this code of conduct, see
76+
<https://www.contributor-covenant.org/faq>

0 commit comments

Comments
 (0)