service

package
v0.0.0-...-d807b53 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 2, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register() error

Types

type RunnerClientService

type RunnerClientService struct {
	// contains filtered or unexported fields
}

func NewRunnerClientService

func NewRunnerClientService() *RunnerClientService

func (*RunnerClientService) DockerPull

func (r *RunnerClientService) DockerPull(ctx context.Context, runner *model.Runner, image string)

func (*RunnerClientService) DockerRun

func (r *RunnerClientService) DockerRun(ctx context.Context, runner *model.Runner, image string)

func (*RunnerClientService) Exec

func (r *RunnerClientService) Exec(ctx context.Context, taskName string, ip string, port int, shell string, timeoutSecond int) (string, error)

func (*RunnerClientService) FetchRunnerConfig

func (r *RunnerClientService) FetchRunnerConfig(ctx context.Context, runner *model.Runner) (string, error)

type RunnerService

type RunnerService struct {
}

func NewRunnerService

func NewRunnerService() *RunnerService

func (*RunnerService) FindById

func (r *RunnerService) FindById(ctx context.Context, id int64) (*model.Runner, error)

func (*RunnerService) FindDisableRunners

func (r *RunnerService) FindDisableRunners(ctx context.Context) ([]*model.Runner, error)

func (*RunnerService) FindEnableRunners

func (r *RunnerService) FindEnableRunners(ctx context.Context) ([]*model.Runner, error)

func (*RunnerService) FindRunnersByEnable

func (r *RunnerService) FindRunnersByEnable(ctx context.Context, enable bool) ([]*model.Runner, error)

func (*RunnerService) PickOneEnableRunner

func (r *RunnerService) PickOneEnableRunner(ctx context.Context) (*model.Runner, error)

type Service

type Service struct {
	RunnerService       *RunnerService
	RunnerClientService *RunnerClientService
}
var Services *Service

func NewService

func NewService(runnerService *RunnerService, runnerClientService *RunnerClientService) *Service

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL