Documentation
¶
Index ¶
Constants ¶
View Source
const (
GiB uint64 = 1024 * 1024 * 1024
)
View Source
const (
KiB = 1024
)
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
func SetVirtualMemoryLimit ¶ added in v0.0.717
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 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
}
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.TB) *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
Click to show internal directories.
Click to hide internal directories.