From 6cca9a43038a46052d787723ee9af4db02ec1e23 Mon Sep 17 00:00:00 2001 From: Vyacheslav Pryimak Date: Wed, 13 Feb 2019 16:01:41 +0200 Subject: [PATCH] canceled status added --- main.go | 2 ++ models/models.go | 9 +++++---- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/main.go b/main.go index 81e5dc2..878c469 100644 --- a/main.go +++ b/main.go @@ -109,6 +109,8 @@ func main() { } case models.Failed: log.Fatalln("pipeline failed!") + case models.Canceled: + log.Fatalln("pipeline canceled!") case models.Success: log.Println("pipeline success!") os.Exit(0) diff --git a/models/models.go b/models/models.go index a8bfbf4..e96469c 100644 --- a/models/models.go +++ b/models/models.go @@ -3,10 +3,11 @@ package models type PipelineStatus string const ( - Running PipelineStatus = "running" - Pending = "pending" - Failed = "failed" - Success = "success" + Running PipelineStatus = "running" + Pending = "pending" + Failed = "failed" + Success = "success" + Canceled = "canceled" ) type CreatePipelineResponse struct {