Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertFromStarlarkValue ¶ added in v0.2.4
ConvertFromStarlarkValue converts starlark.Value to any value
As ConvertToStarlarkValue, the value is serialized in go and then deserialized in starlark. JSON is used for serialization. so any properties that are not serializable to JSON will be lost.
func ConvertToStarlarkValue ¶ added in v0.2.4
ConvertToStarlarkValue converts any value to starlark.Value
Internally the value is serialized in go and then deserialized in starlark. JSON is used for serialization. so any properties that are not serializable to JSON will be lost.
func NewPluginStarlark ¶
NewPluginStarlark returns a starlark.HasAttrs for the given plugin.Plugin
in starlark, you can access below methods from the value returned by this function
spec_from_file = plugin.loadSpecFile("path/to/spec.yaml")
spec_from_url = plugin.loadSpecUrl("https://example.com/spec.yaml")
Types ¶
This section is empty.