Documentation ¶
Index ¶
- func DiscoverInventory(ctx context.Context, payload []byte) (inventory *wasiv1.PluginInventoryResponse, err error)
- type HostFuncExportWrapper
- type MemoryPayload
- type Module
- 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) SetModuleSpec(spec *commonv1.ModuleSpec)
- func (m Module) Type() string
- type PayloadFile
- type PayloadReader
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DiscoverInventory ¶
Types ¶
type HostFuncExportWrapper ¶
type HostFuncExportWrapper[TRequest bapi.ProtoMessage, TResponse bapi.ProtoMessage] func(ctx context.Context, req TRequest) (TResponse, error)
func NewHostFuncExport ¶
func NewHostFuncExport[TRequest bapi.ProtoMessage, TResponse bapi.ProtoMessage](f func(ctx context.Context, req TRequest) (TResponse, error)) HostFuncExportWrapper[TRequest, TResponse]
type MemoryPayload ¶
type MemoryPayload []byte
func (MemoryPayload) Bytes ¶
func (m MemoryPayload) Bytes() ([]byte, error)
func (MemoryPayload) Reader ¶
func (m MemoryPayload) Reader() io.Reader
type Module ¶
type Module struct { PluginPayload PayloadReader ModuleSpec map[string]any `hcl:",remain"` PluginType string PluginCategory modules.Category // contains filtered or unexported fields }
func (Module) BinaryName ¶
func (*Module) SetModuleSpec ¶
func (m *Module) SetModuleSpec(spec *commonv1.ModuleSpec)
type PayloadFile ¶
func (*PayloadFile) Bytes ¶
func (f *PayloadFile) Bytes() ([]byte, error)
func (*PayloadFile) Reader ¶
func (f *PayloadFile) Reader() io.Reader
Click to show internal directories.
Click to hide internal directories.