docker

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2024 License: AGPL-3.0, Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JobService

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

func NewJobService

func NewJobService(log mlog.LoggerIFace, cfg JobServiceConfig) (*JobService, error)

func (*JobService) CreateJob

func (s *JobService) CreateJob(cfg job.Config, onStopCb job.StopCb) (job.Job, error)

func (*JobService) DeleteJob

func (s *JobService) DeleteJob(jobID string) error

func (*JobService) GetJobLogs

func (s *JobService) GetJobLogs(jobID string, stdout, stderr io.Writer) error

func (*JobService) Init

func (s *JobService) Init(cfg job.ServiceConfig) error

func (*JobService) Shutdown

func (s *JobService) Shutdown() error

type JobServiceConfig

type JobServiceConfig struct {
	MaxConcurrentJobs       int
	FailedJobsRetentionTime time.Duration
	ImageRegistry           string
}

func (JobServiceConfig) IsValid added in v0.6.0

func (c JobServiceConfig) IsValid() error

Jump to

Keyboard shortcuts

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