diff options
| author | Paul Buetow <paul@buetow.org> | 2023-04-19 20:47:36 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2023-04-19 20:47:36 +0300 |
| commit | 396c173c53a014f6e8303931a0c100c08677647b (patch) | |
| tree | 855e3a313437b9fd2eec901d24af91b8ec1b6788 /internal/check.go | |
| parent | 919cdfd15447846ee4d3acffb7570463897a7722 (diff) | |
rename execute to runChecks
Diffstat (limited to 'internal/check.go')
| -rw-r--r-- | internal/check.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/internal/check.go b/internal/check.go index 44e878d..8a554ee 100644 --- a/internal/check.go +++ b/internal/check.go @@ -23,7 +23,7 @@ type checkResult struct { status nagiosCode } -func (c check) execute(ctx context.Context, name string) checkResult { +func (c check) run(ctx context.Context, name string) checkResult { cmd := exec.CommandContext(ctx, c.Plugin, c.Args...) var bytes bytes.Buffer @@ -43,6 +43,6 @@ func (c check) execute(ctx context.Context, name string) checkResult { return checkResult{name, output, nagiosCode(cmd.ProcessState.ExitCode())} } -func (c namedCheck) execute(ctx context.Context) checkResult { - return c.check.execute(ctx, c.name) +func (c namedCheck) run(ctx context.Context) checkResult { + return c.check.run(ctx, c.name) } |
