From ac4b1098729ed1ef40aebe4eff98f3797bc35eed Mon Sep 17 00:00:00 2001 From: InsanePrawn Date: Tue, 23 Mar 2021 18:12:20 +0100 Subject: [PATCH] status/interactive: Revert to simple wakeup/reset signalling Signed-off-by: InsanePrawn closes #452 --- client/status/client/client.go | 8 ++------ client/status/status.go | 3 +-- client/status/status_interactive.go | 4 ++-- 3 files changed, 5 insertions(+), 10 deletions(-) diff --git a/client/status/client/client.go b/client/status/client/client.go index 476ed25..07a53ea 100644 --- a/client/status/client/client.go +++ b/client/status/client/client.go @@ -55,12 +55,8 @@ func (c *Client) signal(job, sig string) error { ) } -func (c *Client) SignalReplication(job string) error { - return c.signal(job, "replication") -} - -func (c *Client) SignalSnapshot(job string) error { - return c.signal(job, "snapshot") +func (c *Client) SignalWakeup(job string) error { + return c.signal(job, "wakeup") } func (c *Client) SignalReset(job string) error { diff --git a/client/status/status.go b/client/status/status.go index 0ff0368..4eb0b16 100644 --- a/client/status/status.go +++ b/client/status/status.go @@ -19,8 +19,7 @@ import ( type Client interface { Status() (daemon.Status, error) StatusRaw() ([]byte, error) - SignalReplication(job string) error - SignalSnapshot(job string) error + SignalWakeup(job string) error SignalReset(job string) error } diff --git a/client/status/status_interactive.go b/client/status/status_interactive.go index e1d40f2..7f7bf49 100644 --- a/client/status/status_interactive.go +++ b/client/status/status_interactive.go @@ -281,8 +281,8 @@ func interactive(c Client, flag statusFlags) error { if !ok { return nil } - signals := []string{"replication", "snapshot", "reset"} - clientFuncs := []func(job string) error{c.SignalReplication, c.SignalSnapshot, c.SignalReset} + signals := []string{"wakeup", "reset"} + clientFuncs := []func(job string) error{c.SignalWakeup, c.SignalReset} sigMod := tview.NewModal() sigMod.SetBackgroundColor(tcell.ColorDefault) sigMod.SetBorder(true)