jobexecutor

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2024 License: MPL-2.0 Imports: 25 Imported by: 0

Documentation

Overview

Package jobexecutor provides the functionality to execute a job

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JobConfig

type JobConfig struct {
	JobID           string
	JobToken        string
	HTTPEndpoint    string
	VolumeSizeLimit int
}

JobConfig is used to configure the job

type JobExecutor

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

JobExecutor executes a job

func NewJobExecutor

func NewJobExecutor(
	ctx context.Context,
	cfg *JobConfig,
	client client.Client,
	logger logger.Logger,
) (*JobExecutor, error)

NewJobExecutor creates a new JobExecutor

func (*JobExecutor) Execute

func (j *JobExecutor) Execute(ctx context.Context) error

Execute executes the job associated with the JobExecutor instance

Directories

Path Synopsis
Package client is the gateway for the job executor to interface with the Phobos API.
Package client is the gateway for the job executor to interface with the Phobos API.
Package volume is used to mount volumes inside the job executor.
Package volume is used to mount volumes inside the job executor.
vcs
Package vcs handles the mounting of VCS volumes (repositories).
Package vcs handles the mounting of VCS volumes (repositories).

Jump to

Keyboard shortcuts

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