Documentation ¶
Index ¶
- func Register() error
- type RunnerClientService
- func (r *RunnerClientService) DockerPull(ctx context.Context, runner *model.Runner, image string)
- func (r *RunnerClientService) DockerRun(ctx context.Context, runner *model.Runner, image string)
- func (r *RunnerClientService) Exec(ctx context.Context, taskName string, ip string, port int, shell string, ...) (string, error)
- func (r *RunnerClientService) FetchRunnerConfig(ctx context.Context, runner *model.Runner) (string, error)
- type RunnerService
- func (r *RunnerService) FindById(ctx context.Context, id int64) (*model.Runner, error)
- func (r *RunnerService) FindDisableRunners(ctx context.Context) ([]*model.Runner, error)
- func (r *RunnerService) FindEnableRunners(ctx context.Context) ([]*model.Runner, error)
- func (r *RunnerService) FindRunnersByEnable(ctx context.Context, enable bool) ([]*model.Runner, error)
- func (r *RunnerService) PickOneEnableRunner(ctx context.Context) (*model.Runner, error)
- type Service
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type RunnerClientService ¶
type RunnerClientService struct {
// contains filtered or unexported fields
}
func NewRunnerClientService ¶
func NewRunnerClientService() *RunnerClientService
func (*RunnerClientService) DockerPull ¶
func (*RunnerClientService) FetchRunnerConfig ¶
type RunnerService ¶
type RunnerService struct { }
func NewRunnerService ¶
func NewRunnerService() *RunnerService
func (*RunnerService) FindDisableRunners ¶
func (*RunnerService) FindEnableRunners ¶
func (*RunnerService) FindRunnersByEnable ¶
func (*RunnerService) PickOneEnableRunner ¶
type Service ¶
type Service struct { RunnerService *RunnerService RunnerClientService *RunnerClientService }
var Services *Service
func NewService ¶
func NewService(runnerService *RunnerService, runnerClientService *RunnerClientService) *Service
Click to show internal directories.
Click to hide internal directories.