Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var EnableFetch bool = false
EnableFetch sets whether to enable fetch() in JS execution environment
Functions ¶
func ExecuteJavascript ¶
func ExecuteJavascript(file string, devMode bool, variables map[string]string) (*models.DNSConfig, error)
ExecuteJavascript accepts a javascript file and runs it, returning the resulting dnsConfig.
func ExecuteJavascriptString ¶ added in v3.27.0
func ExecuteJavascriptString(script []byte, devMode bool, variables map[string]string) (*models.DNSConfig, error)
ExecuteJavascriptString accepts a string containing javascript and runs it, returning the resulting dnsConfig.
func GetHelpers ¶
GetHelpers returns the contents of helpers.js, or the embedded version.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.