Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
func New ¶
func New(client api.SchedulerClient, executor Executor, concurrency int) *Controller
func (*Controller) ApproveJob ¶
func (c *Controller) ApproveJob(project string, workspace string) error
func (*Controller) CancelJob ¶
func (c *Controller) CancelJob(project string, workspace string) error
func (*Controller) Start ¶
func (c *Controller) Start() error
func (*Controller) Stop ¶
func (c *Controller) Stop() error
type Executor ¶
type Executor interface { Plan(project string, workspace string) (Process, error) Apply(project string, workspace string) (Process, error) }
func NewEcsExecutor ¶
func NewEcsExecutor(config *ExecutorEcsConfig) Executor
func NewLocalExecutor ¶
type ExecutorEcs ¶
type ExecutorEcs struct {
// contains filtered or unexported fields
}
type ExecutorEcsConfig ¶
type ExecutorLocal ¶
type ExecutorLocal struct {
// contains filtered or unexported fields
}
type ExecutorMock ¶
func NewExecutorMock ¶
func NewExecutorMock() *ExecutorMock
Click to show internal directories.
Click to hide internal directories.