simple

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2019 License: Apache-2.0 Imports: 5 Imported by: 2

Documentation

Index

Constants

View Source
const (
	Separator = ";"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Interpreter

type Interpreter struct {
	FrameworkPrefix   string
	WorkerPrefix      string
	PSPrefix          string
	MasterPrefix      string
	CleanPolicyPrefix string
	CPUPrefix         string
	MemoryPrefix      string
	DefaultResource   resource.JobResource
}

Interpreter is the type for the simple interpreter.

func New

New returns a new interpreter.

func (Interpreter) Preprocess

func (i Interpreter) Preprocess(code string) (*types.Parameter, error)

Preprocess interprets the magic commands.

func (Interpreter) PreprocessedCode

func (i Interpreter) PreprocessedCode(code string) string

PreprocessedCode gets the preprocessed code ( the code without magic commands.)

Jump to

Keyboard shortcuts

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