From 396c173c53a014f6e8303931a0c100c08677647b Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Wed, 19 Apr 2023 20:47:36 +0300 Subject: rename execute to runChecks --- internal/check.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'internal/check.go') 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) } -- cgit v1.2.3