From bd030f01a3d95197c61a2866bc80c336f7ec66ef Mon Sep 17 00:00:00 2001 From: Eugene Burkov Date: Mon, 6 Oct 2025 18:31:15 +0300 Subject: [PATCH] ossvc: imp docs --- internal/ossvc/action.go | 2 +- internal/ossvc/defaultmanager.go | 3 ++- internal/ossvc/manager.go | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/internal/ossvc/action.go b/internal/ossvc/action.go index 6c947193..8a216096 100644 --- a/internal/ossvc/action.go +++ b/internal/ossvc/action.go @@ -1,6 +1,6 @@ package ossvc -// ActionName is the type for action's names. It has the following valid +// ActionName is the type for actions' names. It has the following valid // values: // - [ActionNameInstall] // - [ActionNameReload] diff --git a/internal/ossvc/defaultmanager.go b/internal/ossvc/defaultmanager.go index 5a0b6492..87e9587a 100644 --- a/internal/ossvc/defaultmanager.go +++ b/internal/ossvc/defaultmanager.go @@ -59,7 +59,8 @@ func (m *manager) install(ctx context.Context, action *ActionInstall) (err error return s.Install() } -// reload reloads the configured service in the service manager. +// reload stops, if not yet, and starts the configured service in the service +// manager. func (m *manager) reload(ctx context.Context, action *ActionReload) (err error) { m.logger.DebugContext(ctx, "reloading service", "name", action.ServiceConf.Name) diff --git a/internal/ossvc/manager.go b/internal/ossvc/manager.go index eaae61a4..465dd23f 100644 --- a/internal/ossvc/manager.go +++ b/internal/ossvc/manager.go @@ -16,7 +16,7 @@ type Manager interface { // Perform performs the specified action. Perform(ctx context.Context, action Action) (err error) - // Status returns the status of the service named name. + // Status returns the status of the service with the given name. Status(ctx context.Context, name ServiceName) (status Status, err error) }