Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func JsonnetTestBinary ¶ added in v0.0.511
func NewJsonnetCmd ¶ added in v0.0.511
Types ¶
type DefaultProvider ¶ added in v0.0.511
type DefaultProvider struct {
Subcommand string
}
DefaultProvider provides a secure VM by calling the currently running the current binary with the provided subcommand.
type Option ¶ added in v0.0.511
type Option func(o *vmOptions)
func WithJsonnetBinary ¶ added in v0.0.511
func WithProcessArgs ¶ added in v0.0.511
func WithProcessIsolatedVM ¶ added in v0.0.511
type ProcessVM ¶ added in v0.0.511
type ProcessVM struct {
// contains filtered or unexported fields
}
func (*ProcessVM) EvaluateAnonymousSnippet ¶ added in v0.0.511
type TestProvider ¶ added in v0.0.511
type TestProvider struct {
// contains filtered or unexported fields
}
TestProvider provides a secure VM by running go build on github. com/ory/x/jsonnetsecure/cmd.
func NewTestProvider ¶ added in v0.0.511
func NewTestProvider(t *testing.T) *TestProvider
type VM ¶ added in v0.0.511
type VM interface { EvaluateAnonymousSnippet(filename string, snippet string) (json string, formattedErr error) ExtCode(key string, val string) ExtVar(key string, val string) TLACode(key string, val string) TLAVar(key string, val string) }
func MakeSecureVM ¶
func NewProcessVM ¶ added in v0.0.511
func NewProcessVM(opts *vmOptions) VM
Click to show internal directories.
Click to hide internal directories.