Documentation
¶
Index ¶
- func NewAspectRuntime(ctx context.Context, logger types.Logger, runtimeType RuntimeType, code []byte, ...) (types.AspectRuntime, error)
- func NewValidator(ctx context.Context, logger types.Logger, runtimeType RuntimeType) (types.Validator, error)
- type Entry
- type EntryList
- type Hash
- type Key
- type RuntimePool
- type RuntimeType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAspectRuntime ¶
func NewAspectRuntime(ctx context.Context, logger types.Logger, runtimeType RuntimeType, code []byte, apis *types.HostAPIRegistry) (types.AspectRuntime, error)
NewAspectRuntime is the factory method for creating aspect runtime
func NewValidator ¶
func NewValidator(ctx context.Context, logger types.Logger, runtimeType RuntimeType) (types.Validator, error)
NewValidator creates a new wasm code validator
Types ¶
type EntryList ¶
func NewEntryList ¶
type RuntimePool ¶
func NewRuntimePool ¶
func (*RuntimePool) Len ¶
func (pool *RuntimePool) Len() int
func (*RuntimePool) Return ¶
func (pool *RuntimePool) Return(key string, runtime types.AspectRuntime)
Return returns a runtime to the pool
func (*RuntimePool) Runtime ¶
func (pool *RuntimePool) Runtime(ctx context.Context, rtType RuntimeType, code []byte, apis *types.HostAPIRegistry) (string, types.AspectRuntime, error)
Click to show internal directories.
Click to hide internal directories.