runtimeenv

package
v0.0.0-...-8de752a Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Runtime

type Runtime struct {
	ID                string `yaml:"id"`
	File              string `yaml:"file"`
	Dir               string
	CompileScriptPath string
	RunScriptPath     string
	Meta              struct {
		Language string `yaml:"language"`
		Version  string `yaml:"version"`
	} `yaml:"meta"`
}

type RuntimeProvider

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

func NewRuntimeProvider

func NewRuntimeProvider(logger *logrus.Logger) *RuntimeProvider

func (*RuntimeProvider) GetAvailableRuntimes

func (runtimeProvider *RuntimeProvider) GetAvailableRuntimes() []*Runtime

func (*RuntimeProvider) GetRuntime

func (runtimeProvider *RuntimeProvider) GetRuntime(id string) (*Runtime, error)

func (*RuntimeProvider) Load

func (runtimeProvider *RuntimeProvider) Load() error

Jump to

Keyboard shortcuts

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