execution

package
v0.0.0-...-fbf1687 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2025 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ExecTemplates embed.FS

Functions

This section is empty.

Types

type ExecutionRequest

type ExecutionRequest struct {
	Flake                string
	Code                 string
	LangNixPkg           string
	Language             string
	LangVersion          int64
	Template             string
	LanguageDependencies []string
	SystemDependencies   []string
	CmdLineArgs          string
	CompilerArgs         string
	Input                string
	Command              string
	Setup                string
	SystemSetup          string
	PkgIndex             string

	// internal variables used for converting this to flake or script
	IsFlake    bool
	ScriptName string
}

func ConvertExecSpecToNixScript

func ConvertExecSpecToNixScript(ctx context.Context, execReq *db.ExecRequest, queries db.Store) (string, *ExecutionRequest, error)

type ExecutionService

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

func NewExecutionService

func NewExecutionService(queries db.Store, envConfig *config.EnvConfig, logger *zerolog.Logger) *ExecutionService

func (*ExecutionService) AddJob

func (*ExecutionService) CheckExecRequest

func (s *ExecutionService) CheckExecRequest(ctx context.Context, req *api.ExecutionRequest) ([]string, error)

Jump to

Keyboard shortcuts

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