summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2021-07-10 11:17:29 +0300
committerValery Piashchynski <[email protected]>2021-07-10 11:17:29 +0300
commit96d437f96785ada6aa5eb6d6ec9505b977ab3e74 (patch)
treee413299670acfe94d983029f9b9137571d925b10 /common
parentfa57fa609d14e4ebf4cbffc154804402906eecaa (diff)
Update Consumer interface, List method returns []string of the
pipelines. Update packing and unpacking Signed-off-by: Valery Piashchynski <[email protected]>
Diffstat (limited to 'common')
-rw-r--r--common/jobs/interface.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/common/jobs/interface.go b/common/jobs/interface.go
index 3c29447d..a75ba760 100644
--- a/common/jobs/interface.go
+++ b/common/jobs/interface.go
@@ -11,7 +11,8 @@ type Consumer interface {
Push(job *structs.Job) error
Register(pipeline *pipeline.Pipeline) error
Consume(pipeline *pipeline.Pipeline) error
- List() []*pipeline.Pipeline
+ // List of the pipelines
+ List() []string
Pause(pipeline string)
Resume(pipeline string)