Documentation ¶
Index ¶
- Variables
- type ExecConfig
- func (*ExecConfig) Descriptor() ([]byte, []int)deprecated
- func (x *ExecConfig) GetArgs() []string
- func (x *ExecConfig) GetFiles() []*File
- func (x *ExecConfig) GetWasmAbi() WasmABI
- func (*ExecConfig) ProtoMessage()
- func (x *ExecConfig) ProtoReflect() protoreflect.Message
- func (x *ExecConfig) Reset()
- func (x *ExecConfig) String() string
- type File
- type WasmABI
Constants ¶
This section is empty.
Variables ¶
View Source
var ( WasmABI_name = map[int32]string{ 0: "WASM_ABI_UNSPECIFIED", 1: "WASM_ABI_WASI_SNAPSHOT_PREVIEW1", 2: "WASM_ABI_GOJS", } WasmABI_value = map[string]int32{ "WASM_ABI_UNSPECIFIED": 0, "WASM_ABI_WASI_SNAPSHOT_PREVIEW1": 1, "WASM_ABI_GOJS": 2, } )
Enum value maps for WasmABI.
View Source
var File_buf_alpha_wasmplugin_v1_wasmplugin_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type ExecConfig ¶
type ExecConfig struct { // When no ABI is provided, buf will make a best effort guess based on // the functions the wasm module exports. WasmAbi WasmABI `protobuf:"varint,1,opt,name=wasm_abi,json=wasmAbi,proto3,enum=buf.alpha.wasmplugin.v1.WasmABI" json:"wasm_abi,omitempty"` // The arguments that should be passed when running this plugin. Useful // for interpreted languages where the main wasm bundle is only the // interpreter. Args []string `protobuf:"bytes,2,rep,name=args,proto3" json:"args,omitempty"` // Files that should be made available to the WASI fs when running this // plugin. Useful for interpreted languages where the main wasm bundle // is only the interpreter. Files []*File `protobuf:"bytes,3,rep,name=files,proto3" json:"files,omitempty"` // contains filtered or unexported fields }
ExecConfig describes buf specific extensions for a wasm plugin. A ExecConfig may be encoded in a custom WASM section named ".bufplugin", see (https://webassembly.github.io/spec/core/binary/modules.html#binary-customsec) for more info.
func (*ExecConfig) Descriptor
deprecated
func (*ExecConfig) Descriptor() ([]byte, []int)
Deprecated: Use ExecConfig.ProtoReflect.Descriptor instead.
func (*ExecConfig) GetArgs ¶
func (x *ExecConfig) GetArgs() []string
func (*ExecConfig) GetFiles ¶
func (x *ExecConfig) GetFiles() []*File
func (*ExecConfig) GetWasmAbi ¶
func (x *ExecConfig) GetWasmAbi() WasmABI
func (*ExecConfig) ProtoMessage ¶
func (*ExecConfig) ProtoMessage()
func (*ExecConfig) ProtoReflect ¶
func (x *ExecConfig) ProtoReflect() protoreflect.Message
func (*ExecConfig) Reset ¶
func (x *ExecConfig) Reset()
func (*ExecConfig) String ¶
func (x *ExecConfig) String() string
type File ¶
type File struct { // Normalized path with `/` as directory separator. Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` Contents []byte `protobuf:"bytes,2,opt,name=contents,proto3" json:"contents,omitempty"` // contains filtered or unexported fields }
File represents a file that must be made available to the wasi plugin.
func (*File) Descriptor
deprecated
func (*File) GetContents ¶
func (*File) ProtoMessage ¶
func (*File) ProtoMessage()
func (*File) ProtoReflect ¶
func (x *File) ProtoReflect() protoreflect.Message
type WasmABI ¶
type WasmABI int32
WASM_ABI specifies the abi this module expects buf to provide.
const ( WasmABI_WASM_ABI_UNSPECIFIED WasmABI = 0 // Plugins compiled against // https://github.com/WebAssembly/WASI/releases/tag/snapshot-01. WasmABI_WASM_ABI_WASI_SNAPSHOT_PREVIEW1 WasmABI = 1 // Plugins compiled with `GOOS=js` and `GOARCH=wasm`. WasmABI_WASM_ABI_GOJS WasmABI = 2 )
func (WasmABI) Descriptor ¶
func (WasmABI) Descriptor() protoreflect.EnumDescriptor
func (WasmABI) EnumDescriptor
deprecated
func (WasmABI) Number ¶
func (x WasmABI) Number() protoreflect.EnumNumber
func (WasmABI) Type ¶
func (WasmABI) Type() protoreflect.EnumType
Click to show internal directories.
Click to hide internal directories.