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 (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.)
Click to show internal directories.
Click to hide internal directories.