From eb9d5f861a7b46a1827c2caa6abbfb8d77e29ffb Mon Sep 17 00:00:00 2001 From: Julien Dessaux Date: Sat, 23 Mar 2024 14:50:37 +0100 Subject: chore(promises): make a Status function part of the Promise interface --- pkg/services.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'pkg/services.go') diff --git a/pkg/services.go b/pkg/services.go index 58c7383..658cd0e 100644 --- a/pkg/services.go +++ b/pkg/services.go @@ -78,6 +78,10 @@ func (s *ServicePromise) Resolve() { } } +func (s ServicePromise) Status() Status { + return s.status +} + // ----- Internal -------------------------------------------------------------- func resolveServices() (status Status) { status = KEPT -- cgit v1.2.3