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 ¶ added in v0.0.511
func NewJsonnetCmd ¶ added in v0.0.511
Types ¶
type DefaultProvider ¶ added in v0.0.511
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
func WithProcessPool ¶ added in v0.0.611
type Pool ¶ added in v0.0.611
type Pool interface { Close() // contains filtered or unexported methods }
func NewProcessPool ¶ added in v0.0.611
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 NewProcessPoolVM ¶ added in v0.0.611
func NewProcessPoolVM(opts *vmOptions) VM
func NewProcessVM ¶ added in v0.0.511
func NewProcessVM(opts *vmOptions) VM
Source Files ¶
Click to show internal directories.
Click to hide internal directories.