Documentation ¶
Index ¶
- Constants
- Variables
- type Executor
- func (e *Executor) AutoMigrate() error
- func (e *Executor) CreateJob(ctx context.Context, job *Job, param *entity.JobParam) (*Job, error)
- func (e *Executor) DeleteJobs(ctx context.Context, ids ...int64) error
- func (e *Executor) Dispatch(ctx context.Context, jobID int64, param *entity.JobDispatchParam) error
- func (e *Executor) Display(ctx context.Context, job *Job) (*entity.JobDisplay, error)
- func (e *Executor) GetJob(ctx context.Context, id int64) (*Job, error)
- func (e *Executor) GetJobExecutor(ctx context.Context, id int64) (JobExecutor, error)
- func (e *Executor) ListAvailableDevices() []string
- func (e *Executor) ListJob(ctx context.Context, filter *entity.JobFilter) ([]*Job, error)
- func (e *Executor) ListRecentlyUpdateJob(ctx context.Context, filter *entity.JobRecentlyUpdateFilter) ([]*Job, error)
- func (e *Executor) MGetJob(ctx context.Context, ids ...int64) (map[int64]*Job, error)
- func (e *Executor) NewLogReader(jobID int64) (*os.File, error)
- func (e *Executor) OccupyDevice(dev string) bool
- func (e *Executor) ReleaseDevice(dev string)
- func (e *Executor) RemoveJobExecutor(ctx context.Context, id int64)
- func (e *Executor) SaveJob(ctx context.Context, job *Job) (*Job, error)
- type Job
- type JobExecutor
- type JobType
- type Paths
- type Scripts
Constants ¶
View Source
const SpeedLen = 30
Variables ¶
View Source
var ( ModelJob = &Job{} ErrJobNotFound = fmt.Errorf("get job: job not found") )
Functions ¶
This section is empty.
Types ¶
type Executor ¶
type Executor struct {
// contains filtered or unexported fields
}
func (*Executor) AutoMigrate ¶
func (*Executor) DeleteJobs ¶
func (*Executor) GetJobExecutor ¶ added in v0.1.14
func (*Executor) ListAvailableDevices ¶
func (*Executor) ListRecentlyUpdateJob ¶ added in v0.1.12
func (*Executor) OccupyDevice ¶ added in v0.1.14
func (*Executor) ReleaseDevice ¶ added in v0.1.14
func (*Executor) RemoveJobExecutor ¶ added in v0.1.14
type Job ¶
type JobExecutor ¶ added in v0.1.14
Click to show internal directories.
Click to hide internal directories.