Skip to content

Commit e120891

Browse files
committed
Release 0.1.0
1 parent 7ebeff4 commit e120891

File tree

4 files changed

+60
-3
lines changed

4 files changed

+60
-3
lines changed

.github/workflows/go.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,12 @@ jobs:
1818

1919
- name: Test
2020
run: go test -v ./...
21+
22+
- name: Run goreleaser in release mode
23+
if: success() && startsWith(github.ref, 'refs/tags/v')
24+
uses: goreleaser/goreleaser-action@v2
25+
with:
26+
version: latest
27+
args: release --rm-dist
28+
env:
29+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
# Binaries for programs and plugins
77
/build/
8+
/dist/
89
*.exe
910
*.exe~
1011
*.dll

.goreleaser.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# See documentation at https://goreleaser.com
2+
before:
3+
hooks:
4+
- go mod download
5+
build:
6+
skip: true
7+
release:
8+
github:
9+
changelog:
10+
sort: asc
11+
filters:
12+
exclude:
13+
- '^docs:'
14+
- '^test:'

README.md

Lines changed: 36 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,56 @@
11
go-check
22
========
33

4+
[![GitHub release (latest by date)](https://img.shields.io/github/v/release/NETWAYS/go-check?label=version)](https://github.com/NETWAYS/go-check/releases)
45
[![GoDoc](https://img.shields.io/static/v1?label=godoc&message=reference&color=blue)](https://pkg.go.dev/github.com/NETWAYS/go-check)
56
[![Test Status](https://github.com/NETWAYS/go-check/workflows/Go/badge.svg)](https://github.com/NETWAYS/go-check/actions?query=workflow%3AGo)
7+
![GitHub go.mod Go version](https://img.shields.io/github/go-mod/go-version/NETWAYS/go-check)
68
![GitHub](https://img.shields.io/github/license/NETWAYS/go-check?color=green)
79

810
go-check is a library to help with development of monitoring plugins for tools like Icinga.
911

1012
## Usage
1113

1214
```go
13-
import "github.com/NETWAYS/go-check"
15+
package main
16+
17+
import (
18+
"github.com/NETWAYS/go-check"
19+
log "github.com/sirupsen/logrus"
20+
"os"
21+
)
22+
23+
func main() {
24+
config := check.NewConfig()
25+
config.Name = "check_test"
26+
config.Readme = `Test Plugin`
27+
config.Version = "1.0.0"
28+
29+
_ = config.FlagSet.StringP("hostname", "H", "localhost", "Hostname to check")
30+
31+
os.Args = []string{"check_example", "--help"}
32+
33+
config.ParseArguments()
34+
35+
log.Info("test")
36+
}
1437
```
1538

16-
<!-- TODO: add more information and usage examples -->
39+
See the [documentation on pkg.go.dev](https://pkg.go.dev/github.com/NETWAYS/go-check) for more details and examples.
40+
41+
## Plugins
42+
43+
A few plugins using go-check:
44+
45+
* [check_cloud_aws](https://github.com/NETWAYS/check_cloud_aws)
46+
* [check_cloud_azure](https://github.com/NETWAYS/check_cloud_azure)
47+
* [check_cloud_gcp](https://github.com/NETWAYS/check_cloud_gcp)
48+
* [check_sentinelone](https://github.com/NETWAYS/check_sentinelone)
49+
* [check_sophos_central](https://github.com/NETWAYS/check_sophos_central)
1750

1851
## License
1952

20-
Copyright (c) 2020 [NETWAYS GmbH]([email protected])
53+
Copyright (c) 2020 [NETWAYS GmbH](mailto:[email protected])
2154

2255
This library is distributed under the GPL-2.0 or newer license found in the [COPYING](./COPYING)
2356
file.

0 commit comments

Comments
 (0)