Documentation
¶
Index ¶
- Variables
- type AuditModulesRequest
- func (*AuditModulesRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AuditModulesRequest) GetCheckfile() []byte
- func (x *AuditModulesRequest) GetOutcome() AuditOutcome
- func (x *AuditModulesRequest) GetPagination() *Pagination
- func (*AuditModulesRequest) ProtoMessage()
- func (x *AuditModulesRequest) ProtoReflect() protoreflect.Message
- func (x *AuditModulesRequest) Reset()
- func (x *AuditModulesRequest) String() string
- type AuditModulesResponse
- func (*AuditModulesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *AuditModulesResponse) GetError() *Error
- func (x *AuditModulesResponse) GetInvalidModuleReport() map[int64][]byte
- func (x *AuditModulesResponse) GetPagination() *Pagination
- func (x *AuditModulesResponse) GetTotal() uint64
- func (*AuditModulesResponse) ProtoMessage()
- func (x *AuditModulesResponse) ProtoReflect() protoreflect.Message
- func (x *AuditModulesResponse) Reset()
- func (x *AuditModulesResponse) String() string
- type AuditOutcome
- func (AuditOutcome) Descriptor() protoreflect.EnumDescriptor
- func (x AuditOutcome) Enum() *AuditOutcome
- func (AuditOutcome) EnumDescriptor() ([]byte, []int)deprecated
- func (x AuditOutcome) Number() protoreflect.EnumNumber
- func (x AuditOutcome) String() string
- func (AuditOutcome) Type() protoreflect.EnumType
- type CallPluginRequest
- func (*CallPluginRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CallPluginRequest) GetFunctionName() string
- func (x *CallPluginRequest) GetHash() string
- func (x *CallPluginRequest) GetIdentifier() string
- func (x *CallPluginRequest) GetInput() []byte
- func (*CallPluginRequest) ProtoMessage()
- func (x *CallPluginRequest) ProtoReflect() protoreflect.Message
- func (x *CallPluginRequest) Reset()
- func (x *CallPluginRequest) String() string
- type CallPluginResponse
- func (*CallPluginResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CallPluginResponse) GetError() *Error
- func (x *CallPluginResponse) GetOutput() []byte
- func (*CallPluginResponse) ProtoMessage()
- func (x *CallPluginResponse) ProtoReflect() protoreflect.Message
- func (x *CallPluginResponse) Reset()
- func (x *CallPluginResponse) String() string
- type CreateModuleRequest
- func (*CreateModuleRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateModuleRequest) GetLocation() string
- func (x *CreateModuleRequest) GetMetadata() map[string]string
- func (x *CreateModuleRequest) GetWasm() []byte
- func (*CreateModuleRequest) ProtoMessage()
- func (x *CreateModuleRequest) ProtoReflect() protoreflect.Message
- func (x *CreateModuleRequest) Reset()
- func (x *CreateModuleRequest) String() string
- type CreateModuleResponse
- func (*CreateModuleResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CreateModuleResponse) GetError() *Error
- func (x *CreateModuleResponse) GetHash() string
- func (x *CreateModuleResponse) GetModuleId() int64
- func (*CreateModuleResponse) ProtoMessage()
- func (x *CreateModuleResponse) ProtoReflect() protoreflect.Message
- func (x *CreateModuleResponse) Reset()
- func (x *CreateModuleResponse) String() string
- type DeleteModulesRequest
- func (*DeleteModulesRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteModulesRequest) GetModuleIds() []int64
- func (*DeleteModulesRequest) ProtoMessage()
- func (x *DeleteModulesRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteModulesRequest) Reset()
- func (x *DeleteModulesRequest) String() string
- type DeleteModulesResponse
- func (*DeleteModulesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteModulesResponse) GetError() *Error
- func (x *DeleteModulesResponse) GetModuleIdHash() map[int64]string
- func (*DeleteModulesResponse) ProtoMessage()
- func (x *DeleteModulesResponse) ProtoReflect() protoreflect.Message
- func (x *DeleteModulesResponse) Reset()
- func (x *DeleteModulesResponse) String() string
- type DiffRequest
- func (*DiffRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DiffRequest) GetColorTerminal() bool
- func (x *DiffRequest) GetModule1() int64
- func (x *DiffRequest) GetModule2() int64
- func (x *DiffRequest) GetWithContext() bool
- func (*DiffRequest) ProtoMessage()
- func (x *DiffRequest) ProtoReflect() protoreflect.Message
- func (x *DiffRequest) Reset()
- func (x *DiffRequest) String() string
- type DiffResponse
- func (*DiffResponse) Descriptor() ([]byte, []int)deprecated
- func (x *DiffResponse) GetDiff() string
- func (x *DiffResponse) GetError() *Error
- func (*DiffResponse) ProtoMessage()
- func (x *DiffResponse) ProtoReflect() protoreflect.Message
- func (x *DiffResponse) Reset()
- func (x *DiffResponse) String() string
- type Direction
- type Error
- type Export
- type Field
- type Function
- func (*Function) Descriptor() ([]byte, []int)deprecated
- func (x *Function) GetName() string
- func (x *Function) GetParams() []ValType
- func (x *Function) GetResults() []ValType
- func (*Function) ProtoMessage()
- func (x *Function) ProtoReflect() protoreflect.Message
- func (x *Function) Reset()
- func (x *Function) String() string
- type GetModuleGraphRequest
- func (*GetModuleGraphRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetModuleGraphRequest) GetModuleId() int64
- func (*GetModuleGraphRequest) ProtoMessage()
- func (x *GetModuleGraphRequest) ProtoReflect() protoreflect.Message
- func (x *GetModuleGraphRequest) Reset()
- func (x *GetModuleGraphRequest) String() string
- type GetModuleGraphResponse
- func (*GetModuleGraphResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetModuleGraphResponse) GetError() *Error
- func (x *GetModuleGraphResponse) GetModuleGraph() *ModuleGraph
- func (*GetModuleGraphResponse) ProtoMessage()
- func (x *GetModuleGraphResponse) ProtoReflect() protoreflect.Message
- func (x *GetModuleGraphResponse) Reset()
- func (x *GetModuleGraphResponse) String() string
- type GetModuleRequest
- type GetModuleResponse
- func (*GetModuleResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetModuleResponse) GetError() *Error
- func (x *GetModuleResponse) GetModule() *Module
- func (*GetModuleResponse) ProtoMessage()
- func (x *GetModuleResponse) ProtoReflect() protoreflect.Message
- func (x *GetModuleResponse) Reset()
- func (x *GetModuleResponse) String() string
- type Import
- type InstallPluginRequest
- func (*InstallPluginRequest) Descriptor() ([]byte, []int)deprecated
- func (x *InstallPluginRequest) GetIdentifier() string
- func (x *InstallPluginRequest) GetLocation() string
- func (x *InstallPluginRequest) GetName() string
- func (x *InstallPluginRequest) GetWasm() []byte
- func (*InstallPluginRequest) ProtoMessage()
- func (x *InstallPluginRequest) ProtoReflect() protoreflect.Message
- func (x *InstallPluginRequest) Reset()
- func (x *InstallPluginRequest) String() string
- type InstallPluginResponse
- func (*InstallPluginResponse) Descriptor() ([]byte, []int)deprecated
- func (x *InstallPluginResponse) GetError() *Error
- func (x *InstallPluginResponse) GetHash() string
- func (*InstallPluginResponse) ProtoMessage()
- func (x *InstallPluginResponse) ProtoReflect() protoreflect.Message
- func (x *InstallPluginResponse) Reset()
- func (x *InstallPluginResponse) String() string
- type ListModulesRequest
- func (*ListModulesRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListModulesRequest) GetPagination() *Pagination
- func (x *ListModulesRequest) GetSort() *Sort
- func (*ListModulesRequest) ProtoMessage()
- func (x *ListModulesRequest) ProtoReflect() protoreflect.Message
- func (x *ListModulesRequest) Reset()
- func (x *ListModulesRequest) String() string
- type ListModulesResponse
- func (*ListModulesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListModulesResponse) GetError() *Error
- func (x *ListModulesResponse) GetModules() []*Module
- func (x *ListModulesResponse) GetPagination() *Pagination
- func (x *ListModulesResponse) GetSort() *Sort
- func (x *ListModulesResponse) GetTotal() uint64
- func (*ListModulesResponse) ProtoMessage()
- func (x *ListModulesResponse) ProtoReflect() protoreflect.Message
- func (x *ListModulesResponse) Reset()
- func (x *ListModulesResponse) String() string
- type Module
- func (*Module) Descriptor() ([]byte, []int)deprecated
- func (x *Module) GetComplexity() uint32
- func (x *Module) GetExports() []*Export
- func (x *Module) GetFunctionHashes() map[string]string
- func (x *Module) GetGraph() []byte
- func (x *Module) GetHash() string
- func (x *Module) GetId() int64
- func (x *Module) GetImports() []*Import
- func (x *Module) GetInsertedAt() *timestamppb.Timestamp
- func (x *Module) GetLocation() string
- func (x *Module) GetMetadata() map[string]string
- func (x *Module) GetSize() uint64
- func (x *Module) GetSourceLanguage() SourceLanguage
- func (x *Module) GetStrings() []string
- func (*Module) ProtoMessage()
- func (x *Module) ProtoReflect() protoreflect.Message
- func (x *Module) Reset()
- func (x *Module) String() string
- type ModuleGraph
- type Pagination
- type SearchModulesRequest
- func (*SearchModulesRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SearchModulesRequest) GetExports() []*Export
- func (x *SearchModulesRequest) GetFunctionName() string
- func (x *SearchModulesRequest) GetHash() string
- func (x *SearchModulesRequest) GetId() int64
- func (x *SearchModulesRequest) GetImports() []*Import
- func (x *SearchModulesRequest) GetInsertedAfter() *timestamppb.Timestamp
- func (x *SearchModulesRequest) GetInsertedBefore() *timestamppb.Timestamp
- func (x *SearchModulesRequest) GetLocation() string
- func (x *SearchModulesRequest) GetMaxSize() uint64
- func (x *SearchModulesRequest) GetMetadata() map[string]string
- func (x *SearchModulesRequest) GetMinSize() uint64
- func (x *SearchModulesRequest) GetModuleName() string
- func (x *SearchModulesRequest) GetPagination() *Pagination
- func (x *SearchModulesRequest) GetSort() *Sort
- func (x *SearchModulesRequest) GetSourceLanguage() SourceLanguage
- func (x *SearchModulesRequest) GetStrings() []string
- func (*SearchModulesRequest) ProtoMessage()
- func (x *SearchModulesRequest) ProtoReflect() protoreflect.Message
- func (x *SearchModulesRequest) Reset()
- func (x *SearchModulesRequest) String() string
- type SearchModulesResponse
- func (*SearchModulesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *SearchModulesResponse) GetError() *Error
- func (x *SearchModulesResponse) GetModules() []*Module
- func (x *SearchModulesResponse) GetPagination() *Pagination
- func (x *SearchModulesResponse) GetSort() *Sort
- func (x *SearchModulesResponse) GetTotal() uint64
- func (*SearchModulesResponse) ProtoMessage()
- func (x *SearchModulesResponse) ProtoReflect() protoreflect.Message
- func (x *SearchModulesResponse) Reset()
- func (x *SearchModulesResponse) String() string
- type Sort
- type SourceLanguage
- func (SourceLanguage) Descriptor() protoreflect.EnumDescriptor
- func (x SourceLanguage) Enum() *SourceLanguage
- func (SourceLanguage) EnumDescriptor() ([]byte, []int)deprecated
- func (x SourceLanguage) Number() protoreflect.EnumNumber
- func (x SourceLanguage) String() string
- func (SourceLanguage) Type() protoreflect.EnumType
- type UninstallPluginRequest
- func (*UninstallPluginRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UninstallPluginRequest) GetIdentifier() string
- func (*UninstallPluginRequest) ProtoMessage()
- func (x *UninstallPluginRequest) ProtoReflect() protoreflect.Message
- func (x *UninstallPluginRequest) Reset()
- func (x *UninstallPluginRequest) String() string
- type UninstallPluginResponse
- func (*UninstallPluginResponse) Descriptor() ([]byte, []int)deprecated
- func (x *UninstallPluginResponse) GetError() *Error
- func (*UninstallPluginResponse) ProtoMessage()
- func (x *UninstallPluginResponse) ProtoReflect() protoreflect.Message
- func (x *UninstallPluginResponse) Reset()
- func (x *UninstallPluginResponse) String() string
- type ValType
- type ValidateModuleRequest
- func (*ValidateModuleRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ValidateModuleRequest) GetCheckfile() []byte
- func (x *ValidateModuleRequest) GetModule() []byte
- func (x *ValidateModuleRequest) GetModuleId() int64
- func (m *ValidateModuleRequest) GetModuleInput() isValidateModuleRequest_ModuleInput
- func (*ValidateModuleRequest) ProtoMessage()
- func (x *ValidateModuleRequest) ProtoReflect() protoreflect.Message
- func (x *ValidateModuleRequest) Reset()
- func (x *ValidateModuleRequest) String() string
- type ValidateModuleRequest_Module
- type ValidateModuleRequest_ModuleId
- type ValidateModuleResponse
- func (*ValidateModuleResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ValidateModuleResponse) GetError() *Error
- func (x *ValidateModuleResponse) GetInvalidModuleReport() []byte
- func (*ValidateModuleResponse) ProtoMessage()
- func (x *ValidateModuleResponse) ProtoReflect() protoreflect.Message
- func (x *ValidateModuleResponse) Reset()
- func (x *ValidateModuleResponse) String() string
Constants ¶
This section is empty.
Variables ¶
var ( ValType_name = map[int32]string{ 0: "I32", 1: "I64", 2: "F32", 3: "F64", 4: "V128", 5: "FuncRef", 6: "ExternRef", } ValType_value = map[string]int32{ "I32": 0, "I64": 1, "F32": 2, "F64": 3, "V128": 4, "FuncRef": 5, "ExternRef": 6, } )
Enum value maps for ValType.
var ( SourceLanguage_name = map[int32]string{ 0: "Unknown", 1: "Rust", 2: "Go", 3: "C", 4: "Cpp", 5: "AssemblyScript", 6: "Swift", 7: "JavaScript", 8: "Haskell", 9: "Zig", } SourceLanguage_value = map[string]int32{ "Unknown": 0, "Rust": 1, "Go": 2, "C": 3, "Cpp": 4, "AssemblyScript": 5, "Swift": 6, "JavaScript": 7, "Haskell": 8, "Zig": 9, } )
Enum value maps for SourceLanguage.
var ( Direction_name = map[int32]string{ 0: "Desc", 1: "Asc", } Direction_value = map[string]int32{ "Desc": 0, "Asc": 1, } )
Enum value maps for Direction.
var ( Field_name = map[int32]string{ 0: "CreatedAt", 1: "Name", 2: "Size", 3: "Language", 4: "ImportsCount", 5: "ExportsCount", 6: "Sha256", 7: "Complexity", } Field_value = map[string]int32{ "CreatedAt": 0, "Name": 1, "Size": 2, "Language": 3, "ImportsCount": 4, "ExportsCount": 5, "Sha256": 6, "Complexity": 7, } )
Enum value maps for Field.
var ( AuditOutcome_name = map[int32]string{ 0: "PASS", 1: "FAIL", } AuditOutcome_value = map[string]int32{ "PASS": 0, "FAIL": 1, } )
Enum value maps for AuditOutcome.
var File_proto_v1_api_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type AuditModulesRequest ¶
type AuditModulesRequest struct { // the YAML checkfile (e.g. mod.yaml) bytes Checkfile []byte `protobuf:"bytes,1,opt,name=checkfile,proto3" json:"checkfile,omitempty"` Outcome AuditOutcome `protobuf:"varint,2,opt,name=outcome,proto3,enum=AuditOutcome" json:"outcome,omitempty"` Pagination *Pagination `protobuf:"bytes,3,opt,name=pagination,proto3" json:"pagination,omitempty"` // contains filtered or unexported fields }
`POST /api/v1/audit:` Return a list of modules which match the outcome requirements using the provided checkfile.
func (*AuditModulesRequest) Descriptor
deprecated
func (*AuditModulesRequest) Descriptor() ([]byte, []int)
Deprecated: Use AuditModulesRequest.ProtoReflect.Descriptor instead.
func (*AuditModulesRequest) GetCheckfile ¶
func (x *AuditModulesRequest) GetCheckfile() []byte
func (*AuditModulesRequest) GetOutcome ¶
func (x *AuditModulesRequest) GetOutcome() AuditOutcome
func (*AuditModulesRequest) GetPagination ¶
func (x *AuditModulesRequest) GetPagination() *Pagination
func (*AuditModulesRequest) ProtoMessage ¶
func (*AuditModulesRequest) ProtoMessage()
func (*AuditModulesRequest) ProtoReflect ¶
func (x *AuditModulesRequest) ProtoReflect() protoreflect.Message
func (*AuditModulesRequest) Reset ¶
func (x *AuditModulesRequest) Reset()
func (*AuditModulesRequest) String ¶
func (x *AuditModulesRequest) String() string
type AuditModulesResponse ¶
type AuditModulesResponse struct { // each record contains the ID of the invalid Module which failed the audit, as well as the failure // report produced by the validation check (encoded in JSON) InvalidModuleReport map[int64][]byte `` /* 209-byte string literal not displayed */ Pagination *Pagination `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` // the full count of results in the database (not the count of this message's // `modules`). Total uint64 `protobuf:"varint,3,opt,name=total,proto3" json:"total,omitempty"` Error *Error `protobuf:"bytes,4,opt,name=error,proto3,oneof" json:"error,omitempty"` // contains filtered or unexported fields }
The message returned in response to a `AuditModulesRequest`.
func (*AuditModulesResponse) Descriptor
deprecated
func (*AuditModulesResponse) Descriptor() ([]byte, []int)
Deprecated: Use AuditModulesResponse.ProtoReflect.Descriptor instead.
func (*AuditModulesResponse) GetError ¶
func (x *AuditModulesResponse) GetError() *Error
func (*AuditModulesResponse) GetInvalidModuleReport ¶
func (x *AuditModulesResponse) GetInvalidModuleReport() map[int64][]byte
func (*AuditModulesResponse) GetPagination ¶
func (x *AuditModulesResponse) GetPagination() *Pagination
func (*AuditModulesResponse) GetTotal ¶
func (x *AuditModulesResponse) GetTotal() uint64
func (*AuditModulesResponse) ProtoMessage ¶
func (*AuditModulesResponse) ProtoMessage()
func (*AuditModulesResponse) ProtoReflect ¶
func (x *AuditModulesResponse) ProtoReflect() protoreflect.Message
func (*AuditModulesResponse) Reset ¶
func (x *AuditModulesResponse) Reset()
func (*AuditModulesResponse) String ¶
func (x *AuditModulesResponse) String() string
type AuditOutcome ¶
type AuditOutcome int32
Represents the expected outcome of an AuditModulesRequest. If PASS is provided, then the audit returns modules which conform to the checkfile. If FAIL is provided, then the audit returns modules which do not conform to the checkfile.
const ( AuditOutcome_PASS AuditOutcome = 0 AuditOutcome_FAIL AuditOutcome = 1 )
func (AuditOutcome) Descriptor ¶
func (AuditOutcome) Descriptor() protoreflect.EnumDescriptor
func (AuditOutcome) Enum ¶
func (x AuditOutcome) Enum() *AuditOutcome
func (AuditOutcome) EnumDescriptor
deprecated
func (AuditOutcome) EnumDescriptor() ([]byte, []int)
Deprecated: Use AuditOutcome.Descriptor instead.
func (AuditOutcome) Number ¶
func (x AuditOutcome) Number() protoreflect.EnumNumber
func (AuditOutcome) String ¶
func (x AuditOutcome) String() string
func (AuditOutcome) Type ¶
func (AuditOutcome) Type() protoreflect.EnumType
type CallPluginRequest ¶
type CallPluginRequest struct { Identifier string `protobuf:"bytes,1,opt,name=identifier,proto3" json:"identifier,omitempty"` FunctionName string `protobuf:"bytes,2,opt,name=function_name,json=functionName,proto3" json:"function_name,omitempty"` Input []byte `protobuf:"bytes,3,opt,name=input,proto3" json:"input,omitempty"` Hash *string `protobuf:"bytes,4,opt,name=hash,proto3,oneof" json:"hash,omitempty"` // bytes config = 5; // contains filtered or unexported fields }
POST /api/v1/plugin:
func (*CallPluginRequest) Descriptor
deprecated
func (*CallPluginRequest) Descriptor() ([]byte, []int)
Deprecated: Use CallPluginRequest.ProtoReflect.Descriptor instead.
func (*CallPluginRequest) GetFunctionName ¶
func (x *CallPluginRequest) GetFunctionName() string
func (*CallPluginRequest) GetHash ¶
func (x *CallPluginRequest) GetHash() string
func (*CallPluginRequest) GetIdentifier ¶
func (x *CallPluginRequest) GetIdentifier() string
func (*CallPluginRequest) GetInput ¶
func (x *CallPluginRequest) GetInput() []byte
func (*CallPluginRequest) ProtoMessage ¶
func (*CallPluginRequest) ProtoMessage()
func (*CallPluginRequest) ProtoReflect ¶
func (x *CallPluginRequest) ProtoReflect() protoreflect.Message
func (*CallPluginRequest) Reset ¶
func (x *CallPluginRequest) Reset()
func (*CallPluginRequest) String ¶
func (x *CallPluginRequest) String() string
type CallPluginResponse ¶
type CallPluginResponse struct { Output []byte `protobuf:"bytes,1,opt,name=output,proto3" json:"output,omitempty"` Error *Error `protobuf:"bytes,2,opt,name=error,proto3,oneof" json:"error,omitempty"` // contains filtered or unexported fields }
func (*CallPluginResponse) Descriptor
deprecated
func (*CallPluginResponse) Descriptor() ([]byte, []int)
Deprecated: Use CallPluginResponse.ProtoReflect.Descriptor instead.
func (*CallPluginResponse) GetError ¶
func (x *CallPluginResponse) GetError() *Error
func (*CallPluginResponse) GetOutput ¶
func (x *CallPluginResponse) GetOutput() []byte
func (*CallPluginResponse) ProtoMessage ¶
func (*CallPluginResponse) ProtoMessage()
func (*CallPluginResponse) ProtoReflect ¶
func (x *CallPluginResponse) ProtoReflect() protoreflect.Message
func (*CallPluginResponse) Reset ¶
func (x *CallPluginResponse) Reset()
func (*CallPluginResponse) String ¶
func (x *CallPluginResponse) String() string
type CreateModuleRequest ¶
type CreateModuleRequest struct { Wasm []byte `protobuf:"bytes,1,opt,name=wasm,proto3" json:"wasm,omitempty"` Metadata map[string]string `` /* 157-byte string literal not displayed */ // a valid URL with a scheme prefix e.g. `s3://`, `file://`, `https://` Location *string `protobuf:"bytes,3,opt,name=location,proto3,oneof" json:"location,omitempty"` // contains filtered or unexported fields }
`PUT /api/v1/module:` Insert a module, extract data from binary. Return the module ID & hash.
func (*CreateModuleRequest) Descriptor
deprecated
func (*CreateModuleRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateModuleRequest.ProtoReflect.Descriptor instead.
func (*CreateModuleRequest) GetLocation ¶
func (x *CreateModuleRequest) GetLocation() string
func (*CreateModuleRequest) GetMetadata ¶
func (x *CreateModuleRequest) GetMetadata() map[string]string
func (*CreateModuleRequest) GetWasm ¶
func (x *CreateModuleRequest) GetWasm() []byte
func (*CreateModuleRequest) ProtoMessage ¶
func (*CreateModuleRequest) ProtoMessage()
func (*CreateModuleRequest) ProtoReflect ¶
func (x *CreateModuleRequest) ProtoReflect() protoreflect.Message
func (*CreateModuleRequest) Reset ¶
func (x *CreateModuleRequest) Reset()
func (*CreateModuleRequest) String ¶
func (x *CreateModuleRequest) String() string
type CreateModuleResponse ¶
type CreateModuleResponse struct { ModuleId int64 `protobuf:"varint,1,opt,name=module_id,json=moduleId,proto3" json:"module_id,omitempty"` Hash string `protobuf:"bytes,2,opt,name=hash,proto3" json:"hash,omitempty"` Error *Error `protobuf:"bytes,3,opt,name=error,proto3,oneof" json:"error,omitempty"` // contains filtered or unexported fields }
The message returned in response to a `CreateModuleRequest`.
func (*CreateModuleResponse) Descriptor
deprecated
func (*CreateModuleResponse) Descriptor() ([]byte, []int)
Deprecated: Use CreateModuleResponse.ProtoReflect.Descriptor instead.
func (*CreateModuleResponse) GetError ¶
func (x *CreateModuleResponse) GetError() *Error
func (*CreateModuleResponse) GetHash ¶
func (x *CreateModuleResponse) GetHash() string
func (*CreateModuleResponse) GetModuleId ¶
func (x *CreateModuleResponse) GetModuleId() int64
func (*CreateModuleResponse) ProtoMessage ¶
func (*CreateModuleResponse) ProtoMessage()
func (*CreateModuleResponse) ProtoReflect ¶
func (x *CreateModuleResponse) ProtoReflect() protoreflect.Message
func (*CreateModuleResponse) Reset ¶
func (x *CreateModuleResponse) Reset()
func (*CreateModuleResponse) String ¶
func (x *CreateModuleResponse) String() string
type DeleteModulesRequest ¶
type DeleteModulesRequest struct { ModuleIds []int64 `protobuf:"varint,1,rep,packed,name=module_ids,json=moduleIds,proto3" json:"module_ids,omitempty"` // contains filtered or unexported fields }
`DELETE /api/v1/module:` Remove a module from the database by its ID. Return the module IDs & hashes.
func (*DeleteModulesRequest) Descriptor
deprecated
func (*DeleteModulesRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteModulesRequest.ProtoReflect.Descriptor instead.
func (*DeleteModulesRequest) GetModuleIds ¶
func (x *DeleteModulesRequest) GetModuleIds() []int64
func (*DeleteModulesRequest) ProtoMessage ¶
func (*DeleteModulesRequest) ProtoMessage()
func (*DeleteModulesRequest) ProtoReflect ¶
func (x *DeleteModulesRequest) ProtoReflect() protoreflect.Message
func (*DeleteModulesRequest) Reset ¶
func (x *DeleteModulesRequest) Reset()
func (*DeleteModulesRequest) String ¶
func (x *DeleteModulesRequest) String() string
type DeleteModulesResponse ¶
type DeleteModulesResponse struct { ModuleIdHash map[int64]string `` /* 188-byte string literal not displayed */ Error *Error `protobuf:"bytes,2,opt,name=error,proto3,oneof" json:"error,omitempty"` // contains filtered or unexported fields }
The message returned in response to a `DeleteModulesRequest`.
func (*DeleteModulesResponse) Descriptor
deprecated
func (*DeleteModulesResponse) Descriptor() ([]byte, []int)
Deprecated: Use DeleteModulesResponse.ProtoReflect.Descriptor instead.
func (*DeleteModulesResponse) GetError ¶
func (x *DeleteModulesResponse) GetError() *Error
func (*DeleteModulesResponse) GetModuleIdHash ¶
func (x *DeleteModulesResponse) GetModuleIdHash() map[int64]string
func (*DeleteModulesResponse) ProtoMessage ¶
func (*DeleteModulesResponse) ProtoMessage()
func (*DeleteModulesResponse) ProtoReflect ¶
func (x *DeleteModulesResponse) ProtoReflect() protoreflect.Message
func (*DeleteModulesResponse) Reset ¶
func (x *DeleteModulesResponse) Reset()
func (*DeleteModulesResponse) String ¶
func (x *DeleteModulesResponse) String() string
type DiffRequest ¶
type DiffRequest struct { Module1 int64 `protobuf:"varint,1,opt,name=module1,proto3" json:"module1,omitempty"` Module2 int64 `protobuf:"varint,2,opt,name=module2,proto3" json:"module2,omitempty"` ColorTerminal bool `protobuf:"varint,3,opt,name=color_terminal,json=colorTerminal,proto3" json:"color_terminal,omitempty"` WithContext bool `protobuf:"varint,4,opt,name=with_context,json=withContext,proto3" json:"with_context,omitempty"` // contains filtered or unexported fields }
`POST /api/v1/diff:` Return the diff of two modules
func (*DiffRequest) Descriptor
deprecated
func (*DiffRequest) Descriptor() ([]byte, []int)
Deprecated: Use DiffRequest.ProtoReflect.Descriptor instead.
func (*DiffRequest) GetColorTerminal ¶
func (x *DiffRequest) GetColorTerminal() bool
func (*DiffRequest) GetModule1 ¶
func (x *DiffRequest) GetModule1() int64
func (*DiffRequest) GetModule2 ¶
func (x *DiffRequest) GetModule2() int64
func (*DiffRequest) GetWithContext ¶
func (x *DiffRequest) GetWithContext() bool
func (*DiffRequest) ProtoMessage ¶
func (*DiffRequest) ProtoMessage()
func (*DiffRequest) ProtoReflect ¶
func (x *DiffRequest) ProtoReflect() protoreflect.Message
func (*DiffRequest) Reset ¶
func (x *DiffRequest) Reset()
func (*DiffRequest) String ¶
func (x *DiffRequest) String() string
type DiffResponse ¶
type DiffResponse struct { Diff string `protobuf:"bytes,1,opt,name=diff,proto3" json:"diff,omitempty"` Error *Error `protobuf:"bytes,2,opt,name=error,proto3,oneof" json:"error,omitempty"` // contains filtered or unexported fields }
The message returned in response to `DiffRequest`, contains a text representation of the difference between the two specified modules.
func (*DiffResponse) Descriptor
deprecated
func (*DiffResponse) Descriptor() ([]byte, []int)
Deprecated: Use DiffResponse.ProtoReflect.Descriptor instead.
func (*DiffResponse) GetDiff ¶
func (x *DiffResponse) GetDiff() string
func (*DiffResponse) GetError ¶
func (x *DiffResponse) GetError() *Error
func (*DiffResponse) ProtoMessage ¶
func (*DiffResponse) ProtoMessage()
func (*DiffResponse) ProtoReflect ¶
func (x *DiffResponse) ProtoReflect() protoreflect.Message
func (*DiffResponse) Reset ¶
func (x *DiffResponse) Reset()
func (*DiffResponse) String ¶
func (x *DiffResponse) String() string
type Direction ¶
type Direction int32
The direction, descending or ascending, of the sort operation.
func (Direction) Descriptor ¶
func (Direction) Descriptor() protoreflect.EnumDescriptor
func (Direction) EnumDescriptor
deprecated
func (Direction) Number ¶
func (x Direction) Number() protoreflect.EnumNumber
func (Direction) Type ¶
func (Direction) Type() protoreflect.EnumType
type Error ¶
type Error struct { Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` // contains filtered or unexported fields }
An error message indicating a problem in the API.
func (*Error) Descriptor
deprecated
func (*Error) GetMessage ¶
func (*Error) ProtoMessage ¶
func (*Error) ProtoMessage()
func (*Error) ProtoReflect ¶
func (x *Error) ProtoReflect() protoreflect.Message
type Export ¶
type Export struct { Func *Function `protobuf:"bytes,1,opt,name=func,proto3" json:"func,omitempty"` // contains filtered or unexported fields }
A function that is defined inside the current module, made available to outside modules / environments.
func (*Export) Descriptor
deprecated
func (*Export) ProtoMessage ¶
func (*Export) ProtoMessage()
func (*Export) ProtoReflect ¶
func (x *Export) ProtoReflect() protoreflect.Message
type Field ¶
type Field int32
The field within the Module schema that is used as the sorting dimension.
func (Field) Descriptor ¶
func (Field) Descriptor() protoreflect.EnumDescriptor
func (Field) EnumDescriptor
deprecated
func (Field) Number ¶
func (x Field) Number() protoreflect.EnumNumber
func (Field) Type ¶
func (Field) Type() protoreflect.EnumType
type Function ¶
type Function struct { Params []ValType `protobuf:"varint,1,rep,packed,name=params,proto3,enum=ValType" json:"params,omitempty"` Results []ValType `protobuf:"varint,2,rep,packed,name=results,proto3,enum=ValType" json:"results,omitempty"` Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
Contained by an import or export element within a wasm binary.
func (*Function) Descriptor
deprecated
func (*Function) GetResults ¶
func (*Function) ProtoMessage ¶
func (*Function) ProtoMessage()
func (*Function) ProtoReflect ¶
func (x *Function) ProtoReflect() protoreflect.Message
type GetModuleGraphRequest ¶
type GetModuleGraphRequest struct { ModuleId int64 `protobuf:"varint,1,opt,name=module_id,json=moduleId,proto3" json:"module_id,omitempty"` // contains filtered or unexported fields }
`POST /api/v1/module_graph:` Return a single module_graph.
func (*GetModuleGraphRequest) Descriptor
deprecated
func (*GetModuleGraphRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetModuleGraphRequest.ProtoReflect.Descriptor instead.
func (*GetModuleGraphRequest) GetModuleId ¶
func (x *GetModuleGraphRequest) GetModuleId() int64
func (*GetModuleGraphRequest) ProtoMessage ¶
func (*GetModuleGraphRequest) ProtoMessage()
func (*GetModuleGraphRequest) ProtoReflect ¶
func (x *GetModuleGraphRequest) ProtoReflect() protoreflect.Message
func (*GetModuleGraphRequest) Reset ¶
func (x *GetModuleGraphRequest) Reset()
func (*GetModuleGraphRequest) String ¶
func (x *GetModuleGraphRequest) String() string
type GetModuleGraphResponse ¶
type GetModuleGraphResponse struct { ModuleGraph *ModuleGraph `protobuf:"bytes,1,opt,name=module_graph,json=moduleGraph,proto3" json:"module_graph,omitempty"` Error *Error `protobuf:"bytes,2,opt,name=error,proto3,oneof" json:"error,omitempty"` // contains filtered or unexported fields }
The message returned in response to a `GetModuleGraphRequest`.
func (*GetModuleGraphResponse) Descriptor
deprecated
func (*GetModuleGraphResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetModuleGraphResponse.ProtoReflect.Descriptor instead.
func (*GetModuleGraphResponse) GetError ¶
func (x *GetModuleGraphResponse) GetError() *Error
func (*GetModuleGraphResponse) GetModuleGraph ¶
func (x *GetModuleGraphResponse) GetModuleGraph() *ModuleGraph
func (*GetModuleGraphResponse) ProtoMessage ¶
func (*GetModuleGraphResponse) ProtoMessage()
func (*GetModuleGraphResponse) ProtoReflect ¶
func (x *GetModuleGraphResponse) ProtoReflect() protoreflect.Message
func (*GetModuleGraphResponse) Reset ¶
func (x *GetModuleGraphResponse) Reset()
func (*GetModuleGraphResponse) String ¶
func (x *GetModuleGraphResponse) String() string
type GetModuleRequest ¶
type GetModuleRequest struct { ModuleId int64 `protobuf:"varint,1,opt,name=module_id,json=moduleId,proto3" json:"module_id,omitempty"` // contains filtered or unexported fields }
`POST /api/v1/module:` Return a single module.
func (*GetModuleRequest) Descriptor
deprecated
func (*GetModuleRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetModuleRequest.ProtoReflect.Descriptor instead.
func (*GetModuleRequest) GetModuleId ¶
func (x *GetModuleRequest) GetModuleId() int64
func (*GetModuleRequest) ProtoMessage ¶
func (*GetModuleRequest) ProtoMessage()
func (*GetModuleRequest) ProtoReflect ¶
func (x *GetModuleRequest) ProtoReflect() protoreflect.Message
func (*GetModuleRequest) Reset ¶
func (x *GetModuleRequest) Reset()
func (*GetModuleRequest) String ¶
func (x *GetModuleRequest) String() string
type GetModuleResponse ¶
type GetModuleResponse struct { Module *Module `protobuf:"bytes,1,opt,name=module,proto3" json:"module,omitempty"` Error *Error `protobuf:"bytes,2,opt,name=error,proto3,oneof" json:"error,omitempty"` // contains filtered or unexported fields }
The message returned in response to a `GetModuleRequest`.
func (*GetModuleResponse) Descriptor
deprecated
func (*GetModuleResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetModuleResponse.ProtoReflect.Descriptor instead.
func (*GetModuleResponse) GetError ¶
func (x *GetModuleResponse) GetError() *Error
func (*GetModuleResponse) GetModule ¶
func (x *GetModuleResponse) GetModule() *Module
func (*GetModuleResponse) ProtoMessage ¶
func (*GetModuleResponse) ProtoMessage()
func (*GetModuleResponse) ProtoReflect ¶
func (x *GetModuleResponse) ProtoReflect() protoreflect.Message
func (*GetModuleResponse) Reset ¶
func (x *GetModuleResponse) Reset()
func (*GetModuleResponse) String ¶
func (x *GetModuleResponse) String() string
type Import ¶
type Import struct { ModuleName string `protobuf:"bytes,1,opt,name=module_name,json=moduleName,proto3" json:"module_name,omitempty"` Func *Function `protobuf:"bytes,2,opt,name=func,proto3" json:"func,omitempty"` // contains filtered or unexported fields }
A function and module namespace that is defined outside of the current module, and referenced & called by the current module.
func (*Import) Descriptor
deprecated
func (*Import) GetModuleName ¶
func (*Import) ProtoMessage ¶
func (*Import) ProtoMessage()
func (*Import) ProtoReflect ¶
func (x *Import) ProtoReflect() protoreflect.Message
type InstallPluginRequest ¶
type InstallPluginRequest struct { Identifier string `protobuf:"bytes,1,opt,name=identifier,proto3" json:"identifier,omitempty"` Name *string `protobuf:"bytes,2,opt,name=name,proto3,oneof" json:"name,omitempty"` Location string `protobuf:"bytes,3,opt,name=location,proto3" json:"location,omitempty"` Wasm []byte `protobuf:"bytes,4,opt,name=wasm,proto3" json:"wasm,omitempty"` // bytes config = 5; // contains filtered or unexported fields }
PUT /api/v1/plugin:
func (*InstallPluginRequest) Descriptor
deprecated
func (*InstallPluginRequest) Descriptor() ([]byte, []int)
Deprecated: Use InstallPluginRequest.ProtoReflect.Descriptor instead.
func (*InstallPluginRequest) GetIdentifier ¶
func (x *InstallPluginRequest) GetIdentifier() string
func (*InstallPluginRequest) GetLocation ¶
func (x *InstallPluginRequest) GetLocation() string
func (*InstallPluginRequest) GetName ¶
func (x *InstallPluginRequest) GetName() string
func (*InstallPluginRequest) GetWasm ¶
func (x *InstallPluginRequest) GetWasm() []byte
func (*InstallPluginRequest) ProtoMessage ¶
func (*InstallPluginRequest) ProtoMessage()
func (*InstallPluginRequest) ProtoReflect ¶
func (x *InstallPluginRequest) ProtoReflect() protoreflect.Message
func (*InstallPluginRequest) Reset ¶
func (x *InstallPluginRequest) Reset()
func (*InstallPluginRequest) String ¶
func (x *InstallPluginRequest) String() string
type InstallPluginResponse ¶
type InstallPluginResponse struct { Hash string `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"` Error *Error `protobuf:"bytes,2,opt,name=error,proto3,oneof" json:"error,omitempty"` // contains filtered or unexported fields }
func (*InstallPluginResponse) Descriptor
deprecated
func (*InstallPluginResponse) Descriptor() ([]byte, []int)
Deprecated: Use InstallPluginResponse.ProtoReflect.Descriptor instead.
func (*InstallPluginResponse) GetError ¶
func (x *InstallPluginResponse) GetError() *Error
func (*InstallPluginResponse) GetHash ¶
func (x *InstallPluginResponse) GetHash() string
func (*InstallPluginResponse) ProtoMessage ¶
func (*InstallPluginResponse) ProtoMessage()
func (*InstallPluginResponse) ProtoReflect ¶
func (x *InstallPluginResponse) ProtoReflect() protoreflect.Message
func (*InstallPluginResponse) Reset ¶
func (x *InstallPluginResponse) Reset()
func (*InstallPluginResponse) String ¶
func (x *InstallPluginResponse) String() string
type ListModulesRequest ¶
type ListModulesRequest struct { Pagination *Pagination `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` Sort *Sort `protobuf:"bytes,2,opt,name=sort,proto3" json:"sort,omitempty"` // contains filtered or unexported fields }
`POST /api/v1/modules:` Return paginated list of all modules.
func (*ListModulesRequest) Descriptor
deprecated
func (*ListModulesRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListModulesRequest.ProtoReflect.Descriptor instead.
func (*ListModulesRequest) GetPagination ¶
func (x *ListModulesRequest) GetPagination() *Pagination
func (*ListModulesRequest) GetSort ¶
func (x *ListModulesRequest) GetSort() *Sort
func (*ListModulesRequest) ProtoMessage ¶
func (*ListModulesRequest) ProtoMessage()
func (*ListModulesRequest) ProtoReflect ¶
func (x *ListModulesRequest) ProtoReflect() protoreflect.Message
func (*ListModulesRequest) Reset ¶
func (x *ListModulesRequest) Reset()
func (*ListModulesRequest) String ¶
func (x *ListModulesRequest) String() string
type ListModulesResponse ¶
type ListModulesResponse struct { Modules []*Module `protobuf:"bytes,1,rep,name=modules,proto3" json:"modules,omitempty"` Pagination *Pagination `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` // the full count of results in the database (not the count of this message's // `modules`). Total uint64 `protobuf:"varint,3,opt,name=total,proto3" json:"total,omitempty"` Sort *Sort `protobuf:"bytes,4,opt,name=sort,proto3" json:"sort,omitempty"` Error *Error `protobuf:"bytes,5,opt,name=error,proto3,oneof" json:"error,omitempty"` // contains filtered or unexported fields }
The message returned in response to a `ListModulesRequest`.
func (*ListModulesResponse) Descriptor
deprecated
func (*ListModulesResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListModulesResponse.ProtoReflect.Descriptor instead.
func (*ListModulesResponse) GetError ¶
func (x *ListModulesResponse) GetError() *Error
func (*ListModulesResponse) GetModules ¶
func (x *ListModulesResponse) GetModules() []*Module
func (*ListModulesResponse) GetPagination ¶
func (x *ListModulesResponse) GetPagination() *Pagination
func (*ListModulesResponse) GetSort ¶
func (x *ListModulesResponse) GetSort() *Sort
func (*ListModulesResponse) GetTotal ¶
func (x *ListModulesResponse) GetTotal() uint64
func (*ListModulesResponse) ProtoMessage ¶
func (*ListModulesResponse) ProtoMessage()
func (*ListModulesResponse) ProtoReflect ¶
func (x *ListModulesResponse) ProtoReflect() protoreflect.Message
func (*ListModulesResponse) Reset ¶
func (x *ListModulesResponse) Reset()
func (*ListModulesResponse) String ¶
func (x *ListModulesResponse) String() string
type Module ¶
type Module struct { // ID for this module, generated by the database. Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // sha256 hash of the modules raw bytes Hash string `protobuf:"bytes,3,opt,name=hash,proto3" json:"hash,omitempty"` // function imports called by the module (see: // <https://github.com/WebAssembly/design/blob/main/Modules.md#imports)> Imports []*Import `protobuf:"bytes,4,rep,name=imports,proto3" json:"imports,omitempty"` // function exports provided by the module (see: // <https://github.com/WebAssembly/design/blob/main/Modules.md#exports)> Exports []*Export `protobuf:"bytes,5,rep,name=exports,proto3" json:"exports,omitempty"` // size in bytes of the module Size uint64 `protobuf:"varint,6,opt,name=size,proto3" json:"size,omitempty"` // path or locator to the module Location string `protobuf:"bytes,7,opt,name=location,proto3" json:"location,omitempty"` // programming language used to produce this module SourceLanguage SourceLanguage `protobuf:"varint,8,opt,name=source_language,json=sourceLanguage,proto3,enum=SourceLanguage" json:"source_language,omitempty"` // arbitrary metadata provided by the operator of this module Metadata map[string]string `` /* 157-byte string literal not displayed */ // timestamp when this module was loaded and stored InsertedAt *timestamppb.Timestamp `protobuf:"bytes,10,opt,name=inserted_at,json=insertedAt,proto3" json:"inserted_at,omitempty"` // the interned strings stored in the wasm binary (panic/abort messages, etc.) Strings []string `protobuf:"bytes,11,rep,name=strings,proto3" json:"strings,omitempty"` // the cyclomatic complexity // (<https://en.wikipedia.org/wiki/Cyclomatic_complexity>) of the instructions Complexity *uint32 `protobuf:"varint,13,opt,name=complexity,proto3,oneof" json:"complexity,omitempty"` // the serialized graph in json format Graph []byte `protobuf:"bytes,14,opt,name=graph,proto3,oneof" json:"graph,omitempty"` // function hashes FunctionHashes map[string]string `` /* 192-byte string literal not displayed */ // contains filtered or unexported fields }
Details about a wasm module, either extracted directly from the binary, or inferred somehow.
func (*Module) Descriptor
deprecated
func (*Module) GetComplexity ¶
func (*Module) GetExports ¶
func (*Module) GetFunctionHashes ¶
func (*Module) GetImports ¶
func (*Module) GetInsertedAt ¶
func (x *Module) GetInsertedAt() *timestamppb.Timestamp
func (*Module) GetLocation ¶
func (*Module) GetMetadata ¶
func (*Module) GetSourceLanguage ¶
func (x *Module) GetSourceLanguage() SourceLanguage
func (*Module) GetStrings ¶
func (*Module) ProtoMessage ¶
func (*Module) ProtoMessage()
func (*Module) ProtoReflect ¶
func (x *Module) ProtoReflect() protoreflect.Message
type ModuleGraph ¶
type ModuleGraph struct { // ID for this module, generated by the database. Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // the serialized graph in json format JsonBytes []byte `protobuf:"bytes,2,opt,name=json_bytes,json=jsonBytes,proto3" json:"json_bytes,omitempty"` // contains filtered or unexported fields }
Details about a wasm module graph
func (*ModuleGraph) Descriptor
deprecated
func (*ModuleGraph) Descriptor() ([]byte, []int)
Deprecated: Use ModuleGraph.ProtoReflect.Descriptor instead.
func (*ModuleGraph) GetId ¶
func (x *ModuleGraph) GetId() int64
func (*ModuleGraph) GetJsonBytes ¶
func (x *ModuleGraph) GetJsonBytes() []byte
func (*ModuleGraph) ProtoMessage ¶
func (*ModuleGraph) ProtoMessage()
func (*ModuleGraph) ProtoReflect ¶
func (x *ModuleGraph) ProtoReflect() protoreflect.Message
func (*ModuleGraph) Reset ¶
func (x *ModuleGraph) Reset()
func (*ModuleGraph) String ¶
func (x *ModuleGraph) String() string
type Pagination ¶
type Pagination struct { Limit uint32 `protobuf:"varint,1,opt,name=limit,proto3" json:"limit,omitempty"` Offset uint32 `protobuf:"varint,2,opt,name=offset,proto3" json:"offset,omitempty"` // contains filtered or unexported fields }
Control/limit the way results are paginated when working with large responses.
func (*Pagination) Descriptor
deprecated
func (*Pagination) Descriptor() ([]byte, []int)
Deprecated: Use Pagination.ProtoReflect.Descriptor instead.
func (*Pagination) GetLimit ¶
func (x *Pagination) GetLimit() uint32
func (*Pagination) GetOffset ¶
func (x *Pagination) GetOffset() uint32
func (*Pagination) ProtoMessage ¶
func (*Pagination) ProtoMessage()
func (*Pagination) ProtoReflect ¶
func (x *Pagination) ProtoReflect() protoreflect.Message
func (*Pagination) Reset ¶
func (x *Pagination) Reset()
func (*Pagination) String ¶
func (x *Pagination) String() string
type SearchModulesRequest ¶
type SearchModulesRequest struct { // ID for this module, generated by the database. Id *int64 `protobuf:"varint,1,opt,name=id,proto3,oneof" json:"id,omitempty"` // original name of the binary module file Hash *string `protobuf:"bytes,3,opt,name=hash,proto3,oneof" json:"hash,omitempty"` // function imports called by the module (see: // <https://github.com/WebAssembly/design/blob/main/Modules.md#imports>) Imports []*Import `protobuf:"bytes,4,rep,name=imports,proto3" json:"imports,omitempty"` // function exports provided by the module (see: // <https://github.com/WebAssembly/design/blob/main/Modules.md#exports>) Exports []*Export `protobuf:"bytes,5,rep,name=exports,proto3" json:"exports,omitempty"` // minimum size in bytes of the module MinSize *uint64 `protobuf:"varint,6,opt,name=min_size,json=minSize,proto3,oneof" json:"min_size,omitempty"` // maximum size in bytes of the module MaxSize *uint64 `protobuf:"varint,7,opt,name=max_size,json=maxSize,proto3,oneof" json:"max_size,omitempty"` // optional path or locator to the module (TODO: maybe this is better stored // as metadata) Location *string `protobuf:"bytes,8,opt,name=location,proto3,oneof" json:"location,omitempty"` // programming language used to produce this module SourceLanguage *SourceLanguage `` /* 130-byte string literal not displayed */ // arbitrary metadata provided by the operator of this module Metadata map[string]string `` /* 158-byte string literal not displayed */ // timestamp when this module was loaded and stored InsertedBefore *timestamppb.Timestamp `protobuf:"bytes,11,opt,name=inserted_before,json=insertedBefore,proto3,oneof" json:"inserted_before,omitempty"` // timestamp when this module was loaded and stored InsertedAfter *timestamppb.Timestamp `protobuf:"bytes,12,opt,name=inserted_after,json=insertedAfter,proto3,oneof" json:"inserted_after,omitempty"` // the interned strings stored in the wasm binary (panic/abort messages, etc.) Strings []string `protobuf:"bytes,13,rep,name=strings,proto3" json:"strings,omitempty"` // match on any function name in an import or export. FunctionName *string `protobuf:"bytes,14,opt,name=function_name,json=functionName,proto3,oneof" json:"function_name,omitempty"` // match on the module name e.g. `env` or `wasi_snapshot_preview1` ModuleName *string `protobuf:"bytes,15,opt,name=module_name,json=moduleName,proto3,oneof" json:"module_name,omitempty"` Pagination *Pagination `protobuf:"bytes,16,opt,name=pagination,proto3" json:"pagination,omitempty"` Sort *Sort `protobuf:"bytes,17,opt,name=sort,proto3" json:"sort,omitempty"` // contains filtered or unexported fields }
`POST /api/v1/search:` Search for modules based on filter params provided (which should be any dimension of the module schema, or string search in any metadata value). Return a paginated list of matching modules.
func (*SearchModulesRequest) Descriptor
deprecated
func (*SearchModulesRequest) Descriptor() ([]byte, []int)
Deprecated: Use SearchModulesRequest.ProtoReflect.Descriptor instead.
func (*SearchModulesRequest) GetExports ¶
func (x *SearchModulesRequest) GetExports() []*Export
func (*SearchModulesRequest) GetFunctionName ¶
func (x *SearchModulesRequest) GetFunctionName() string
func (*SearchModulesRequest) GetHash ¶
func (x *SearchModulesRequest) GetHash() string
func (*SearchModulesRequest) GetId ¶
func (x *SearchModulesRequest) GetId() int64
func (*SearchModulesRequest) GetImports ¶
func (x *SearchModulesRequest) GetImports() []*Import
func (*SearchModulesRequest) GetInsertedAfter ¶
func (x *SearchModulesRequest) GetInsertedAfter() *timestamppb.Timestamp
func (*SearchModulesRequest) GetInsertedBefore ¶
func (x *SearchModulesRequest) GetInsertedBefore() *timestamppb.Timestamp
func (*SearchModulesRequest) GetLocation ¶
func (x *SearchModulesRequest) GetLocation() string
func (*SearchModulesRequest) GetMaxSize ¶
func (x *SearchModulesRequest) GetMaxSize() uint64
func (*SearchModulesRequest) GetMetadata ¶
func (x *SearchModulesRequest) GetMetadata() map[string]string
func (*SearchModulesRequest) GetMinSize ¶
func (x *SearchModulesRequest) GetMinSize() uint64
func (*SearchModulesRequest) GetModuleName ¶
func (x *SearchModulesRequest) GetModuleName() string
func (*SearchModulesRequest) GetPagination ¶
func (x *SearchModulesRequest) GetPagination() *Pagination
func (*SearchModulesRequest) GetSort ¶
func (x *SearchModulesRequest) GetSort() *Sort
func (*SearchModulesRequest) GetSourceLanguage ¶
func (x *SearchModulesRequest) GetSourceLanguage() SourceLanguage
func (*SearchModulesRequest) GetStrings ¶
func (x *SearchModulesRequest) GetStrings() []string
func (*SearchModulesRequest) ProtoMessage ¶
func (*SearchModulesRequest) ProtoMessage()
func (*SearchModulesRequest) ProtoReflect ¶
func (x *SearchModulesRequest) ProtoReflect() protoreflect.Message
func (*SearchModulesRequest) Reset ¶
func (x *SearchModulesRequest) Reset()
func (*SearchModulesRequest) String ¶
func (x *SearchModulesRequest) String() string
type SearchModulesResponse ¶
type SearchModulesResponse struct { Modules []*Module `protobuf:"bytes,1,rep,name=modules,proto3" json:"modules,omitempty"` Pagination *Pagination `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` // the full count of results in the database (not the count of this message's // `modules`). Total uint64 `protobuf:"varint,3,opt,name=total,proto3" json:"total,omitempty"` Sort *Sort `protobuf:"bytes,4,opt,name=sort,proto3" json:"sort,omitempty"` Error *Error `protobuf:"bytes,5,opt,name=error,proto3,oneof" json:"error,omitempty"` // contains filtered or unexported fields }
The message returned in response to a `SearchModulesRequest`.
func (*SearchModulesResponse) Descriptor
deprecated
func (*SearchModulesResponse) Descriptor() ([]byte, []int)
Deprecated: Use SearchModulesResponse.ProtoReflect.Descriptor instead.
func (*SearchModulesResponse) GetError ¶
func (x *SearchModulesResponse) GetError() *Error
func (*SearchModulesResponse) GetModules ¶
func (x *SearchModulesResponse) GetModules() []*Module
func (*SearchModulesResponse) GetPagination ¶
func (x *SearchModulesResponse) GetPagination() *Pagination
func (*SearchModulesResponse) GetSort ¶
func (x *SearchModulesResponse) GetSort() *Sort
func (*SearchModulesResponse) GetTotal ¶
func (x *SearchModulesResponse) GetTotal() uint64
func (*SearchModulesResponse) ProtoMessage ¶
func (*SearchModulesResponse) ProtoMessage()
func (*SearchModulesResponse) ProtoReflect ¶
func (x *SearchModulesResponse) ProtoReflect() protoreflect.Message
func (*SearchModulesResponse) Reset ¶
func (x *SearchModulesResponse) Reset()
func (*SearchModulesResponse) String ¶
func (x *SearchModulesResponse) String() string
type Sort ¶
type Sort struct { Direction Direction `protobuf:"varint,1,opt,name=direction,proto3,enum=Direction" json:"direction,omitempty"` Field Field `protobuf:"varint,2,opt,name=field,proto3,enum=Field" json:"field,omitempty"` // contains filtered or unexported fields }
Determine how to sort results from the API
func (*Sort) Descriptor
deprecated
func (*Sort) GetDirection ¶
func (*Sort) ProtoMessage ¶
func (*Sort) ProtoMessage()
func (*Sort) ProtoReflect ¶
func (x *Sort) ProtoReflect() protoreflect.Message
type SourceLanguage ¶
type SourceLanguage int32
The language (or most similar match) used to produce a wasm module.
const ( SourceLanguage_Unknown SourceLanguage = 0 SourceLanguage_Rust SourceLanguage = 1 SourceLanguage_Go SourceLanguage = 2 SourceLanguage_C SourceLanguage = 3 SourceLanguage_Cpp SourceLanguage = 4 SourceLanguage_AssemblyScript SourceLanguage = 5 SourceLanguage_Swift SourceLanguage = 6 SourceLanguage_JavaScript SourceLanguage = 7 SourceLanguage_Haskell SourceLanguage = 8 SourceLanguage_Zig SourceLanguage = 9 )
func (SourceLanguage) Descriptor ¶
func (SourceLanguage) Descriptor() protoreflect.EnumDescriptor
func (SourceLanguage) Enum ¶
func (x SourceLanguage) Enum() *SourceLanguage
func (SourceLanguage) EnumDescriptor
deprecated
func (SourceLanguage) EnumDescriptor() ([]byte, []int)
Deprecated: Use SourceLanguage.Descriptor instead.
func (SourceLanguage) Number ¶
func (x SourceLanguage) Number() protoreflect.EnumNumber
func (SourceLanguage) String ¶
func (x SourceLanguage) String() string
func (SourceLanguage) Type ¶
func (SourceLanguage) Type() protoreflect.EnumType
type UninstallPluginRequest ¶
type UninstallPluginRequest struct { Identifier string `protobuf:"bytes,1,opt,name=identifier,proto3" json:"identifier,omitempty"` // contains filtered or unexported fields }
DELETE /api/v1/plugin:
func (*UninstallPluginRequest) Descriptor
deprecated
func (*UninstallPluginRequest) Descriptor() ([]byte, []int)
Deprecated: Use UninstallPluginRequest.ProtoReflect.Descriptor instead.
func (*UninstallPluginRequest) GetIdentifier ¶
func (x *UninstallPluginRequest) GetIdentifier() string
func (*UninstallPluginRequest) ProtoMessage ¶
func (*UninstallPluginRequest) ProtoMessage()
func (*UninstallPluginRequest) ProtoReflect ¶
func (x *UninstallPluginRequest) ProtoReflect() protoreflect.Message
func (*UninstallPluginRequest) Reset ¶
func (x *UninstallPluginRequest) Reset()
func (*UninstallPluginRequest) String ¶
func (x *UninstallPluginRequest) String() string
type UninstallPluginResponse ¶
type UninstallPluginResponse struct { Error *Error `protobuf:"bytes,1,opt,name=error,proto3,oneof" json:"error,omitempty"` // contains filtered or unexported fields }
func (*UninstallPluginResponse) Descriptor
deprecated
func (*UninstallPluginResponse) Descriptor() ([]byte, []int)
Deprecated: Use UninstallPluginResponse.ProtoReflect.Descriptor instead.
func (*UninstallPluginResponse) GetError ¶
func (x *UninstallPluginResponse) GetError() *Error
func (*UninstallPluginResponse) ProtoMessage ¶
func (*UninstallPluginResponse) ProtoMessage()
func (*UninstallPluginResponse) ProtoReflect ¶
func (x *UninstallPluginResponse) ProtoReflect() protoreflect.Message
func (*UninstallPluginResponse) Reset ¶
func (x *UninstallPluginResponse) Reset()
func (*UninstallPluginResponse) String ¶
func (x *UninstallPluginResponse) String() string
type ValType ¶
type ValType int32
Used to type the arguments and return types from wasm elements such as import and export functions.
func (ValType) Descriptor ¶
func (ValType) Descriptor() protoreflect.EnumDescriptor
func (ValType) EnumDescriptor
deprecated
func (ValType) Number ¶
func (x ValType) Number() protoreflect.EnumNumber
func (ValType) Type ¶
func (ValType) Type() protoreflect.EnumType
type ValidateModuleRequest ¶
type ValidateModuleRequest struct { // the YAML checkfile (e.g. mod.yaml) bytes Checkfile []byte `protobuf:"bytes,1,opt,name=checkfile,proto3" json:"checkfile,omitempty"` // module_input is either an existing `module_id` that is known to the database, or the bytes of // a raw wasm module. It is used to validate against the given checkfile. // // Types that are assignable to ModuleInput: // // *ValidateModuleRequest_Module // *ValidateModuleRequest_ModuleId ModuleInput isValidateModuleRequest_ModuleInput `protobuf_oneof:"module_input"` // contains filtered or unexported fields }
`POST /api/v1/validate:` Return the failure report (if applicable) of a wasm module validation against a given checkfile.
func (*ValidateModuleRequest) Descriptor
deprecated
func (*ValidateModuleRequest) Descriptor() ([]byte, []int)
Deprecated: Use ValidateModuleRequest.ProtoReflect.Descriptor instead.
func (*ValidateModuleRequest) GetCheckfile ¶
func (x *ValidateModuleRequest) GetCheckfile() []byte
func (*ValidateModuleRequest) GetModule ¶
func (x *ValidateModuleRequest) GetModule() []byte
func (*ValidateModuleRequest) GetModuleId ¶
func (x *ValidateModuleRequest) GetModuleId() int64
func (*ValidateModuleRequest) GetModuleInput ¶
func (m *ValidateModuleRequest) GetModuleInput() isValidateModuleRequest_ModuleInput
func (*ValidateModuleRequest) ProtoMessage ¶
func (*ValidateModuleRequest) ProtoMessage()
func (*ValidateModuleRequest) ProtoReflect ¶
func (x *ValidateModuleRequest) ProtoReflect() protoreflect.Message
func (*ValidateModuleRequest) Reset ¶
func (x *ValidateModuleRequest) Reset()
func (*ValidateModuleRequest) String ¶
func (x *ValidateModuleRequest) String() string
type ValidateModuleRequest_Module ¶
type ValidateModuleRequest_Module struct {
Module []byte `protobuf:"bytes,2,opt,name=module,proto3,oneof"`
}
type ValidateModuleRequest_ModuleId ¶
type ValidateModuleRequest_ModuleId struct {
ModuleId int64 `protobuf:"varint,3,opt,name=module_id,json=moduleId,proto3,oneof"`
}
type ValidateModuleResponse ¶
type ValidateModuleResponse struct { InvalidModuleReport []byte `protobuf:"bytes,1,opt,name=invalid_module_report,json=invalidModuleReport,proto3" json:"invalid_module_report,omitempty"` Error *Error `protobuf:"bytes,2,opt,name=error,proto3,oneof" json:"error,omitempty"` // contains filtered or unexported fields }
The failure report produced by the validation check (encoded in JSON).
func (*ValidateModuleResponse) Descriptor
deprecated
func (*ValidateModuleResponse) Descriptor() ([]byte, []int)
Deprecated: Use ValidateModuleResponse.ProtoReflect.Descriptor instead.
func (*ValidateModuleResponse) GetError ¶
func (x *ValidateModuleResponse) GetError() *Error
func (*ValidateModuleResponse) GetInvalidModuleReport ¶
func (x *ValidateModuleResponse) GetInvalidModuleReport() []byte
func (*ValidateModuleResponse) ProtoMessage ¶
func (*ValidateModuleResponse) ProtoMessage()
func (*ValidateModuleResponse) ProtoReflect ¶
func (x *ValidateModuleResponse) ProtoReflect() protoreflect.Message
func (*ValidateModuleResponse) Reset ¶
func (x *ValidateModuleResponse) Reset()
func (*ValidateModuleResponse) String ¶
func (x *ValidateModuleResponse) String() string