Documentation ¶
Overview ¶
Package graph is a generated protocol buffer package.
It is generated from these files:
pkg/provenance/graph/graph.proto
It has these top-level messages:
Node IDs Provenance
Index ¶
- Variables
- type IDs
- type Node
- type Node_Op
- type Node_Type
- type Provenance
- func (p *Provenance) AddEntity(consentID string, wfIDs int64)
- func (p *Provenance) AddTasks(tasks map[string]*types.Task) *IDs
- func (*Provenance) Descriptor() ([]byte, []int)
- func (p *Provenance) FromWorkflow(wfi *types.WorkflowInvocation) int64
- func (m *Provenance) GetExecuted() map[string]int64
- func (m *Provenance) GetNodes() map[int64]*Node
- func (m *Provenance) GetWfPredecessors() map[int64]*IDs
- func (m *Provenance) GetWfTasks() map[int64]*IDs
- func (p *Provenance) GetWorkflowPredecessors(wfid int64) []int64
- func (p *Provenance) GetWorkflowTaskIds(wfid int64) []int64
- func (*Provenance) ProtoMessage()
- func (m *Provenance) Reset()
- func (m *Provenance) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var Node_Op_name = map[int32]string{
0: "NOP",
1: "TRANSFORM",
2: "READ",
3: "WRITE",
4: "CONTROL",
}
View Source
var Node_Op_value = map[string]int32{
"NOP": 0,
"TRANSFORM": 1,
"READ": 2,
"WRITE": 3,
"CONTROL": 4,
}
View Source
var Node_Type_name = map[int32]string{
0: "UNDEF",
1: "WORKFLOW",
2: "ENTITY",
3: "TASK",
}
View Source
var Node_Type_value = map[string]int32{
"UNDEF": 0,
"WORKFLOW": 1,
"ENTITY": 2,
"TASK": 3,
}
Functions ¶
This section is empty.
Types ¶
type IDs ¶
type IDs struct {
Ids []int64 `protobuf:"varint,1,rep,packed,name=ids" json:"ids,omitempty"`
}
func NewIDArray ¶
func NewIDArray() *IDs
func (*IDs) Descriptor ¶
func (*IDs) ProtoMessage ¶
func (*IDs) ProtoMessage()
type Node ¶
type Node struct { Type Node_Type `protobuf:"varint,1,opt,name=type,enum=fission.workflows.provenance.Node_Type" json:"type,omitempty"` Op Node_Op `protobuf:"varint,2,opt,name=op,enum=fission.workflows.provenance.Node_Op" json:"op,omitempty"` Meta string `protobuf:"bytes,3,opt,name=meta" json:"meta,omitempty"` FnName string `protobuf:"bytes,4,opt,name=fnName" json:"fnName,omitempty"` Task string `protobuf:"bytes,5,opt,name=task" json:"task,omitempty"` }
Graph structure for boradcasting provenance data, it is up to the reciever or a middleware layer to decode the message into a particular graph format
func (*Node) Descriptor ¶
func (*Node) ProtoMessage ¶
func (*Node) ProtoMessage()
type Provenance ¶
type Provenance struct { Nodes map[int64]*Node `` /* 131-byte string literal not displayed */ WfTasks map[int64]*IDs `` /* 135-byte string literal not displayed */ WfPredecessors map[int64]*IDs `` /* 149-byte string literal not displayed */ Executed map[string]int64 `` /* 137-byte string literal not displayed */ }
func GenProvenance ¶
func GenProvenance(wfi *types.WorkflowInvocation) *Provenance
func NewProvenance ¶
func NewProvenance() *Provenance
func (*Provenance) AddEntity ¶
func (p *Provenance) AddEntity(consentID string, wfIDs int64)
func (*Provenance) Descriptor ¶
func (*Provenance) Descriptor() ([]byte, []int)
func (*Provenance) FromWorkflow ¶
func (p *Provenance) FromWorkflow(wfi *types.WorkflowInvocation) int64
func (*Provenance) GetExecuted ¶
func (m *Provenance) GetExecuted() map[string]int64
func (*Provenance) GetNodes ¶
func (m *Provenance) GetNodes() map[int64]*Node
func (*Provenance) GetWfPredecessors ¶
func (m *Provenance) GetWfPredecessors() map[int64]*IDs
func (*Provenance) GetWfTasks ¶
func (m *Provenance) GetWfTasks() map[int64]*IDs
func (*Provenance) GetWorkflowPredecessors ¶
func (p *Provenance) GetWorkflowPredecessors(wfid int64) []int64
func (*Provenance) GetWorkflowTaskIds ¶
func (p *Provenance) GetWorkflowTaskIds(wfid int64) []int64
func (*Provenance) ProtoMessage ¶
func (*Provenance) ProtoMessage()
func (*Provenance) Reset ¶
func (m *Provenance) Reset()
func (*Provenance) String ¶
func (m *Provenance) String() string
Click to show internal directories.
Click to hide internal directories.