Documentation
¶
Index ¶
- Variables
- func JsonnetTestBinary(t testing.TB) string
- func NewJsonnetCmd() *cobra.Command
- type DefaultProvider
- type ErrorImporter
- type Option
- type Pool
- type ProcessVM
- func (p *ProcessVM) EvaluateAnonymousSnippet(filename string, snippet string) (_ string, err error)
- func (p *ProcessVM) ExtCode(key string, val string)
- func (p *ProcessVM) ExtVar(key string, val string)
- func (p *ProcessVM) TLACode(key string, val string)
- func (p *ProcessVM) TLAVar(key string, val string)
- type TestProvider
- type VM
- type VMProvider
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrProcessPoolClosed = errors.New("jsonnetsecure: process pool closed")
)
Functions ¶
func JsonnetTestBinary ¶
func NewJsonnetCmd ¶
Types ¶
type DefaultProvider ¶
DefaultProvider provides a secure VM by calling the currently running the current binary with the provided subcommand.
type Option ¶
type Option func(o *vmOptions)
func WithJsonnetBinary ¶
func WithProcessArgs ¶
func WithProcessIsolatedVM ¶
func WithProcessPool ¶
type Pool ¶
type Pool interface {
Close()
// contains filtered or unexported methods
}
func NewProcessPool ¶
type ProcessVM ¶
type ProcessVM struct {
// contains filtered or unexported fields
}
func (*ProcessVM) EvaluateAnonymousSnippet ¶
type TestProvider ¶
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 ¶
func NewTestProvider(t testing.TB) *TestProvider
type VM ¶
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 NewProcessPoolVM ¶
func NewProcessPoolVM(opts *vmOptions) VM
func NewProcessVM ¶
func NewProcessVM(opts *vmOptions) VM
Source Files
¶
Click to show internal directories.
Click to hide internal directories.