Depend on iron-io/runner instead of iron-io/worker (#124)

This commit is contained in:
Seif Lotfy سيف لطفي
2016-10-05 20:42:12 +02:00
committed by GitHub
parent eed5422c59
commit fbcec6bf40
24 changed files with 142 additions and 146 deletions

View File

@@ -15,12 +15,11 @@ import (
"golang.org/x/net/context"
"github.com/Sirupsen/logrus"
"github.com/iron-io/worker/common"
"github.com/iron-io/worker/runner/agent"
"github.com/iron-io/worker/runner/drivers"
driverscommon "github.com/iron-io/worker/runner/drivers"
"github.com/iron-io/worker/runner/drivers/docker"
"github.com/iron-io/worker/runner/drivers/mock"
"github.com/iron-io/runner/common"
"github.com/iron-io/runner/drivers"
driverscommon "github.com/iron-io/runner/drivers"
"github.com/iron-io/runner/drivers/docker"
"github.com/iron-io/runner/drivers/mock"
)
type Config struct {
@@ -157,7 +156,7 @@ func (r *Runner) Run(ctx context.Context, cfg *Config) (drivers.RunResult, error
ctask := &containerTask{
ctx: ctx,
cfg: cfg,
auth: &agent.ConfigAuth{},
auth: &common.ConfigAuth{},
canRun: make(chan bool),
}
@@ -216,7 +215,7 @@ func (r *Runner) Run(ctx context.Context, cfg *Config) (drivers.RunResult, error
func (r Runner) EnsureImageExists(ctx context.Context, cfg *Config) error {
ctask := &containerTask{
cfg: cfg,
auth: &agent.ConfigAuth{},
auth: &common.ConfigAuth{},
}
err := r.driver.EnsureImageExists(ctx, ctask)