translators

package
v1.5.0-alpha13 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const DuckDBImage = "bacalhauproject/exec-duckdb:0.2"

Variables

View Source
var PythonPackageDomains = []string{
	"pypi.python.org",
	"pypi.org",
	"pythonhosted.org",
	"files.pythonhosted.org",
	"repo.anaconda.com",
	"repo.continuum.io",
	"conda.anaconda.org",
}

PythonPackageDomains lists all of the domains that might be needed to install dependencies at runtime.

View Source
var SupportedPythonVersions = map[string]string{
	"3.11": "bacalhauproject/exec-python-3.11:0.5",
}

SupportedPythonVersions maps the python version to the docker image that provides support for that version.

Functions

func ErrMissingParameters

func ErrMissingParameters(trs string) error

Types

type DuckDBTranslator

type DuckDBTranslator struct{}

func (*DuckDBTranslator) IsInstalled

func (d *DuckDBTranslator) IsInstalled(context.Context) (bool, error)

func (*DuckDBTranslator) Translate

func (d *DuckDBTranslator) Translate(original *models.Task) (*models.Task, error)

type PythonTranslator

type PythonTranslator struct{}

func (*PythonTranslator) IsInstalled

func (p *PythonTranslator) IsInstalled(context.Context) (bool, error)

func (*PythonTranslator) Translate

func (p *PythonTranslator) Translate(original *models.Task) (*models.Task, error)

Jump to

Keyboard shortcuts

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