abstract polling and execution to runner-go library

This commit is contained in:
Brad Rydzewski
2019-12-06 16:10:27 -08:00
parent 99e80a0352
commit 2e48cd1b3b
27 changed files with 500 additions and 1394 deletions

View File

@@ -11,7 +11,7 @@ import (
)
// Lookup returns the named pipeline from the Manifest.
func Lookup(name string, manifest *manifest.Manifest) (*Pipeline, error) {
func Lookup(name string, manifest *manifest.Manifest) (manifest.Resource, error) {
for _, resource := range manifest.Resources {
if !isNameMatch(resource.GetName(), name) {
continue