Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrMainMissing indicates the starlark script is missing // the main method. ErrMainMissing = errors.New("starlark: missing main function") // ErrMainInvalid indicates the starlark script defines a // global variable named main, however, it is not callable. ErrMainInvalid = errors.New("starlark: main must be a function") // ErrMainReturn indicates the starlark script's main method // returns an invalid or unexpected type. ErrMainReturn = errors.New("starlark: main returns an invalid type") // ErrMaximumSize indicates the starlark script generated a // file that exceeds the maximum allowed file size. ErrMaximumSize = errors.New("starlark: maximum file size exceeded") // ErrCannotLoad indicates the starlark script is attempting to // load an external file which is currently restricted. ErrCannotLoad = errors.New("starlark: cannot load external scripts") )
Functions ¶
func New ¶
func New(enabled bool) core.ConvertService
New returns a conversion service that converts the starlark file to a yaml file.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.