garm/runner/runner.go

25 lines
385 B
Go
Raw Normal View History

package runner
import (
2022-04-15 15:22:47 +00:00
"context"
"runner-manager/config"
"runner-manager/runner/common"
"github.com/google/go-github/github"
)
2022-04-15 15:22:47 +00:00
func NewRunner(ctx context.Context, cfg *config.Config) (*Runner, error) {
return &Runner{
ctx: ctx,
config: cfg,
}, nil
}
type Runner struct {
2022-04-15 15:22:47 +00:00
ctx context.Context
ghc *github.Client
config *config.Config
pools []common.PoolManager
}