From b88ea2d876f97425d5bc5face35c68724ede1536 Mon Sep 17 00:00:00 2001 From: "bot-ahsoka[bot]" Date: Mon, 23 Dec 2024 15:54:41 +0000 Subject: [PATCH] Updated go coverprofiles Commit: c0890105018539c0e05510080053efd4c8e2d03c Signed-off-by: bot-ahsoka[bot] --- index.html | 53 +++++++++++++++++++++++++++++++++++++++++++++++++---- 1 file changed, 49 insertions(+), 4 deletions(-) diff --git a/index.html b/index.html index ca9fd4f..41d27c8 100644 --- a/index.html +++ b/index.html @@ -61,7 +61,7 @@ - + @@ -77,7 +77,7 @@ - + @@ -358,6 +358,30 @@ c.group = group return nil } + +// Get the fleetlock id +func (c *FleetlockClient) GetID() string { + if c == nil { + return "" + } + + c.mutex.RLock() + defer c.mutex.RUnlock() + + return c.appID +} + +// Change the fleetlock id +func (c *FleetlockClient) SetID(id string) error { + c.mutex.Lock() + defer c.mutex.Unlock() + + if id == "" { + return fmt.Errorf("the fleetlock id can't be empty") + } + c.appID = id + return nil +}