From b75ad3473d3630908ab30eb9b5b82c646b2586f4 Mon Sep 17 00:00:00 2001 From: aiordache Date: Fri, 4 Sep 2020 13:30:11 +0200 Subject: [PATCH] Fix lint issues Signed-off-by: aiordache --- compose/api.go | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/compose/api.go b/compose/api.go index 2d77e811..666290e7 100644 --- a/compose/api.go +++ b/compose/api.go @@ -56,20 +56,22 @@ type ServiceStatus struct { Ports []string Publishers []PortPublisher } + +// State of a compose stack type State string const ( - // Starting indicates that stack is being deployed + // STARTING indicates that stack is being deployed STARTING State = "starting" - // Runnning indicates that stack is deployed and services are running + // RUNNING indicates that stack is deployed and services are running RUNNING State = "running" - // Updating indicates that some stack resources are being recreated + // UPDATING indicates that some stack resources are being recreated UPDATING State = "updating" - // Removing indicates that stack is being deleted + // REMOVING indicates that stack is being deleted REMOVING State = "removing" ) -// StackStatus hold status about a compose application/stack +// Stack holds the name and state of a compose application/stack type Stack struct { ID string Name string