Versions in this module Expand all Collapse all v0 v0.1.0 Sep 12, 2023 Changes in this version + func DiscoverInventory(ctx context.Context, payload []byte) (inventory *wasiv1.PluginInventoryResponse, err error) + type HostFuncExportWrapper func(ctx context.Context, req TRequest) (TResponse, error) + func NewHostFuncExport(f func(ctx context.Context, req TRequest) (TResponse, error)) HostFuncExportWrapper[TRequest, TResponse] + func (w HostFuncExportWrapper[TRequest, TResponse]) Call(ctx context.Context, m api.Module, offset, byteCount uint32) uint64 + type MemoryPayload []byte + func (m MemoryPayload) Bytes() ([]byte, error) + func (m MemoryPayload) Reader() io.Reader + type Module struct + ModuleSpec map[string]any + PluginCategory modules.Category + PluginPayload PayloadReader + PluginType string + func (m *Module) SetModuleSpec(spec *commonv1.ModuleSpec) + func (m Module) BinaryName(ctx context.Context) (binaryName string, err error) + func (m Module) Category() modules.Category + func (m Module) Execute(ctx modules.ExecutionContext) (err error) + func (m Module) Help(ctx context.Context) (help modules.Help, err error) + func (m Module) Init(hclCtx *hcl2.EvalContext) (modules.Module, error) + func (m Module) MarshalHCL(block *hclwrite.Block) error + func (m Module) Type() string + type PayloadFile struct + Checksum []byte + Path string + func (f *PayloadFile) Bytes() ([]byte, error) + func (f *PayloadFile) Reader() io.Reader + type PayloadReader interface + Bytes func() ([]byte, error) + Reader func() io.Reader