garm/runner/common/pool.go
Gabriel Adrian Samfira 095b43ffb4 Add organizations
2022-05-04 16:27:24 +00:00

24 lines
477 B
Go

package common
import (
"garm/params"
)
type PoolType string
const (
RepositoryPool PoolType = "repository"
OrganizationPool PoolType = "organization"
)
type PoolManager interface {
WebhookSecret() string
HandleWorkflowJob(job params.WorkflowJob) error
RefreshState(param params.UpdatePoolStateParams) error
// AddPool(ctx context.Context, pool params.Pool) error
// PoolManager lifecycle functions. Start/stop pool.
Start() error
Stop() error
Wait() error
}