pb

package
v0.0.1-beta Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 26, 2024 License: MIT Imports: 12 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_workflows_wasm_pb_wasm_proto protoreflect.FileDescriptor

Functions

func ProtoToWorkflowSpec

func ProtoToWorkflowSpec(spec *WorkflowSpec) (*sdk.WorkflowSpec, error)

Types

type ComputeRequest

type ComputeRequest struct {
	Request *pb.CapabilityRequest `protobuf:"bytes,1,opt,name=request,proto3" json:"request,omitempty"`
	// contains filtered or unexported fields
}

func (*ComputeRequest) Descriptor deprecated

func (*ComputeRequest) Descriptor() ([]byte, []int)

Deprecated: Use ComputeRequest.ProtoReflect.Descriptor instead.

func (*ComputeRequest) GetRequest

func (x *ComputeRequest) GetRequest() *pb.CapabilityRequest

func (*ComputeRequest) ProtoMessage

func (*ComputeRequest) ProtoMessage()

func (*ComputeRequest) ProtoReflect

func (x *ComputeRequest) ProtoReflect() protoreflect.Message

func (*ComputeRequest) Reset

func (x *ComputeRequest) Reset()

func (*ComputeRequest) String

func (x *ComputeRequest) String() string

type ComputeResponse

type ComputeResponse struct {
	Response *pb.CapabilityResponse `protobuf:"bytes,1,opt,name=response,proto3" json:"response,omitempty"`
	// contains filtered or unexported fields
}

func (*ComputeResponse) Descriptor deprecated

func (*ComputeResponse) Descriptor() ([]byte, []int)

Deprecated: Use ComputeResponse.ProtoReflect.Descriptor instead.

func (*ComputeResponse) GetResponse

func (x *ComputeResponse) GetResponse() *pb.CapabilityResponse

func (*ComputeResponse) ProtoMessage

func (*ComputeResponse) ProtoMessage()

func (*ComputeResponse) ProtoReflect

func (x *ComputeResponse) ProtoReflect() protoreflect.Message

func (*ComputeResponse) Reset

func (x *ComputeResponse) Reset()

func (*ComputeResponse) String

func (x *ComputeResponse) String() string

type Request

type Request struct {
	Id     string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Config []byte `protobuf:"bytes,2,opt,name=config,proto3" json:"config,omitempty"`
	// Types that are assignable to Message:
	//
	//	*Request_ComputeRequest
	//	*Request_SpecRequest
	Message isRequest_Message `protobuf_oneof:"message"`
	// contains filtered or unexported fields
}

func (*Request) Descriptor deprecated

func (*Request) Descriptor() ([]byte, []int)

Deprecated: Use Request.ProtoReflect.Descriptor instead.

func (*Request) GetComputeRequest

func (x *Request) GetComputeRequest() *ComputeRequest

func (*Request) GetConfig

func (x *Request) GetConfig() []byte

func (*Request) GetId

func (x *Request) GetId() string

func (*Request) GetMessage

func (m *Request) GetMessage() isRequest_Message

func (*Request) GetSpecRequest

func (x *Request) GetSpecRequest() *emptypb.Empty

func (*Request) ProtoMessage

func (*Request) ProtoMessage()

func (*Request) ProtoReflect

func (x *Request) ProtoReflect() protoreflect.Message

func (*Request) Reset

func (x *Request) Reset()

func (*Request) String

func (x *Request) String() string

type Request_ComputeRequest

type Request_ComputeRequest struct {
	ComputeRequest *ComputeRequest `protobuf:"bytes,3,opt,name=computeRequest,proto3,oneof"`
}

type Request_SpecRequest

type Request_SpecRequest struct {
	SpecRequest *emptypb.Empty `protobuf:"bytes,4,opt,name=specRequest,proto3,oneof"`
}

type Response

type Response struct {
	Id     string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	ErrMsg string `protobuf:"bytes,2,opt,name=errMsg,proto3" json:"errMsg,omitempty"`
	// Types that are assignable to Message:
	//
	//	*Response_ComputeResponse
	//	*Response_SpecResponse
	Message isResponse_Message `protobuf_oneof:"message"`
	// contains filtered or unexported fields
}

func (*Response) Descriptor deprecated

func (*Response) Descriptor() ([]byte, []int)

Deprecated: Use Response.ProtoReflect.Descriptor instead.

func (*Response) GetComputeResponse

func (x *Response) GetComputeResponse() *ComputeResponse

func (*Response) GetErrMsg

func (x *Response) GetErrMsg() string

func (*Response) GetId

func (x *Response) GetId() string

func (*Response) GetMessage

func (m *Response) GetMessage() isResponse_Message

func (*Response) GetSpecResponse

func (x *Response) GetSpecResponse() *WorkflowSpec

func (*Response) ProtoMessage

func (*Response) ProtoMessage()

func (*Response) ProtoReflect

func (x *Response) ProtoReflect() protoreflect.Message

func (*Response) Reset

func (x *Response) Reset()

func (*Response) String

func (x *Response) String() string

type Response_ComputeResponse

type Response_ComputeResponse struct {
	ComputeResponse *ComputeResponse `protobuf:"bytes,3,opt,name=computeResponse,proto3,oneof"`
}

type Response_SpecResponse

type Response_SpecResponse struct {
	SpecResponse *WorkflowSpec `protobuf:"bytes,4,opt,name=specResponse,proto3,oneof"`
}

type StepDefinition

type StepDefinition struct {
	Id             string      `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Ref            string      `protobuf:"bytes,2,opt,name=ref,proto3" json:"ref,omitempty"`
	Inputs         *StepInputs `protobuf:"bytes,3,opt,name=inputs,proto3" json:"inputs,omitempty"`
	Config         *pb1.Map    `protobuf:"bytes,4,opt,name=config,proto3" json:"config,omitempty"`
	CapabilityType string      `protobuf:"bytes,5,opt,name=capabilityType,proto3" json:"capabilityType,omitempty"`
	// contains filtered or unexported fields
}

func (*StepDefinition) Descriptor deprecated

func (*StepDefinition) Descriptor() ([]byte, []int)

Deprecated: Use StepDefinition.ProtoReflect.Descriptor instead.

func (*StepDefinition) GetCapabilityType

func (x *StepDefinition) GetCapabilityType() string

func (*StepDefinition) GetConfig

func (x *StepDefinition) GetConfig() *pb1.Map

func (*StepDefinition) GetId

func (x *StepDefinition) GetId() string

func (*StepDefinition) GetInputs

func (x *StepDefinition) GetInputs() *StepInputs

func (*StepDefinition) GetRef

func (x *StepDefinition) GetRef() string

func (*StepDefinition) ProtoMessage

func (*StepDefinition) ProtoMessage()

func (*StepDefinition) ProtoReflect

func (x *StepDefinition) ProtoReflect() protoreflect.Message

func (*StepDefinition) Reset

func (x *StepDefinition) Reset()

func (*StepDefinition) String

func (x *StepDefinition) String() string

type StepInputs

type StepInputs struct {
	OutputRef string   `protobuf:"bytes,1,opt,name=outputRef,proto3" json:"outputRef,omitempty"`
	Mapping   *pb1.Map `protobuf:"bytes,2,opt,name=mapping,proto3" json:"mapping,omitempty"`
	// contains filtered or unexported fields
}

func (*StepInputs) Descriptor deprecated

func (*StepInputs) Descriptor() ([]byte, []int)

Deprecated: Use StepInputs.ProtoReflect.Descriptor instead.

func (*StepInputs) GetMapping

func (x *StepInputs) GetMapping() *pb1.Map

func (*StepInputs) GetOutputRef

func (x *StepInputs) GetOutputRef() string

func (*StepInputs) ProtoMessage

func (*StepInputs) ProtoMessage()

func (*StepInputs) ProtoReflect

func (x *StepInputs) ProtoReflect() protoreflect.Message

func (*StepInputs) Reset

func (x *StepInputs) Reset()

func (*StepInputs) String

func (x *StepInputs) String() string

type WorkflowSpec

type WorkflowSpec struct {
	Name      string            `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Owner     string            `protobuf:"bytes,2,opt,name=owner,proto3" json:"owner,omitempty"`
	Triggers  []*StepDefinition `protobuf:"bytes,3,rep,name=triggers,proto3" json:"triggers,omitempty"`
	Actions   []*StepDefinition `protobuf:"bytes,4,rep,name=actions,proto3" json:"actions,omitempty"`
	Consensus []*StepDefinition `protobuf:"bytes,5,rep,name=consensus,proto3" json:"consensus,omitempty"`
	Targets   []*StepDefinition `protobuf:"bytes,6,rep,name=targets,proto3" json:"targets,omitempty"`
	// contains filtered or unexported fields
}

func WorkflowSpecToProto

func WorkflowSpecToProto(spec *sdk.WorkflowSpec) (*WorkflowSpec, error)

func (*WorkflowSpec) Descriptor deprecated

func (*WorkflowSpec) Descriptor() ([]byte, []int)

Deprecated: Use WorkflowSpec.ProtoReflect.Descriptor instead.

func (*WorkflowSpec) GetActions

func (x *WorkflowSpec) GetActions() []*StepDefinition

func (*WorkflowSpec) GetConsensus

func (x *WorkflowSpec) GetConsensus() []*StepDefinition

func (*WorkflowSpec) GetName

func (x *WorkflowSpec) GetName() string

func (*WorkflowSpec) GetOwner

func (x *WorkflowSpec) GetOwner() string

func (*WorkflowSpec) GetTargets

func (x *WorkflowSpec) GetTargets() []*StepDefinition

func (*WorkflowSpec) GetTriggers

func (x *WorkflowSpec) GetTriggers() []*StepDefinition

func (*WorkflowSpec) ProtoMessage

func (*WorkflowSpec) ProtoMessage()

func (*WorkflowSpec) ProtoReflect

func (x *WorkflowSpec) ProtoReflect() protoreflect.Message

func (*WorkflowSpec) Reset

func (x *WorkflowSpec) Reset()

func (*WorkflowSpec) String

func (x *WorkflowSpec) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL