Documentation ¶
Index ¶
- Variables
- func CanRetry(node *Node) (canRetry bool)
- func GraphFrom(run *Run) *graph.Graph
- func VisitLatestAttempt(node *Node, fn func(*Node_Result))
- type Agent
- func (*Agent) Descriptor() ([]byte, []int)
- func (m *Agent) GetId() string
- func (m *Agent) GetRuntimes() []*Runtime
- func (*Agent) ProtoMessage()
- func (m *Agent) Reset()
- func (m *Agent) String() string
- func (m *Agent) XXX_DiscardUnknown()
- func (m *Agent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Agent) XXX_Merge(src proto.Message)
- func (m *Agent) XXX_Size() int
- func (m *Agent) XXX_Unmarshal(b []byte) error
- type Claim
- func (*Claim) Descriptor() ([]byte, []int)
- func (m *Claim) GetId() string
- func (m *Claim) GetMetadata() map[string]*MetadataValue
- func (*Claim) ProtoMessage()
- func (m *Claim) Reset()
- func (m *Claim) String() string
- func (m *Claim) XXX_DiscardUnknown()
- func (m *Claim) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Claim) XXX_Merge(src proto.Message)
- func (m *Claim) XXX_Size() int
- func (m *Claim) XXX_Unmarshal(b []byte) error
- type Edge
- func (*Edge) Descriptor() ([]byte, []int)
- func (m *Edge) GetDestination() string
- func (m *Edge) GetSource() string
- func (*Edge) ProtoMessage()
- func (m *Edge) Reset()
- func (m *Edge) String() string
- func (m *Edge) XXX_DiscardUnknown()
- func (m *Edge) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Edge) XXX_Merge(src proto.Message)
- func (m *Edge) XXX_Size() int
- func (m *Edge) XXX_Unmarshal(b []byte) error
- type Event
- func (*Event) Descriptor() ([]byte, []int)
- func (m *Event) GetNodeSpec() *Node_Spec
- func (m *Event) GetRunID() string
- func (m *Event) GetType() Event_Type
- func (*Event) ProtoMessage()
- func (m *Event) Reset()
- func (m *Event) String() string
- func (m *Event) XXX_DiscardUnknown()
- func (m *Event) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Event) XXX_Merge(src proto.Message)
- func (m *Event) XXX_Size() int
- func (m *Event) XXX_Unmarshal(b []byte) error
- type Event_Type
- type GraphSpec
- func (*GraphSpec) Descriptor() ([]byte, []int)
- func (m *GraphSpec) GetEdges() []*Edge
- func (m *GraphSpec) GetNodes() []*Node_Spec
- func (*GraphSpec) ProtoMessage()
- func (m *GraphSpec) Reset()
- func (m *GraphSpec) String() string
- func (m *GraphSpec) XXX_DiscardUnknown()
- func (m *GraphSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GraphSpec) XXX_Merge(src proto.Message)
- func (m *GraphSpec) XXX_Size() int
- func (m *GraphSpec) XXX_Unmarshal(b []byte) error
- type MetadataValue
- func (*MetadataValue) Descriptor() ([]byte, []int)
- func (m *MetadataValue) GetValues() []string
- func (*MetadataValue) ProtoMessage()
- func (m *MetadataValue) Reset()
- func (m *MetadataValue) String() string
- func (m *MetadataValue) XXX_DiscardUnknown()
- func (m *MetadataValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MetadataValue) XXX_Merge(src proto.Message)
- func (m *MetadataValue) XXX_Size() int
- func (m *MetadataValue) XXX_Unmarshal(b []byte) error
- type Node
- func (*Node) Descriptor() ([]byte, []int)
- func (m *Node) GetAttempts() []*Node_Result
- func (m *Node) GetClaim() *Claim
- func (m *Node) GetFinishedAt() string
- func (m *Node) GetInputs() map[string][]byte
- func (m *Node) GetSpec() *Node_Spec
- func (m *Node) GetStartedAt() string
- func (m *Node) GetStatus() Node_Status
- func (*Node) ProtoMessage()
- func (m *Node) Reset()
- func (m *Node) String() string
- func (m *Node) XXX_DiscardUnknown()
- func (m *Node) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Node) XXX_Merge(src proto.Message)
- func (m *Node) XXX_Size() int
- func (m *Node) XXX_Unmarshal(b []byte) error
- type Node_Result
- func (*Node_Result) Descriptor() ([]byte, []int)
- func (m *Node_Result) GetConclusion() Node_Result_Conclusion
- func (m *Node_Result) GetMetadata() map[string]*MetadataValue
- func (m *Node_Result) GetOutput() []byte
- func (*Node_Result) ProtoMessage()
- func (m *Node_Result) Reset()
- func (m *Node_Result) String() string
- func (m *Node_Result) XXX_DiscardUnknown()
- func (m *Node_Result) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Node_Result) XXX_Merge(src proto.Message)
- func (m *Node_Result) XXX_Size() int
- func (m *Node_Result) XXX_Unmarshal(b []byte) error
- type Node_Result_Conclusion
- type Node_Spec
- func (*Node_Spec) Descriptor() ([]byte, []int)
- func (m *Node_Spec) GetMetadata() map[string]*MetadataValue
- func (m *Node_Spec) GetName() string
- func (m *Node_Spec) GetRetry() map[string]*Node_Spec_Retry
- func (m *Node_Spec) GetRuntime() string
- func (*Node_Spec) ProtoMessage()
- func (m *Node_Spec) Reset()
- func (m *Node_Spec) String() string
- func (m *Node_Spec) XXX_DiscardUnknown()
- func (m *Node_Spec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Node_Spec) XXX_Merge(src proto.Message)
- func (m *Node_Spec) XXX_Size() int
- func (m *Node_Spec) XXX_Unmarshal(b []byte) error
- type Node_Spec_Retry
- func (*Node_Spec_Retry) Descriptor() ([]byte, []int)
- func (m *Node_Spec_Retry) GetMaxAttempts() int32
- func (*Node_Spec_Retry) ProtoMessage()
- func (m *Node_Spec_Retry) Reset()
- func (m *Node_Spec_Retry) String() string
- func (m *Node_Spec_Retry) XXX_DiscardUnknown()
- func (m *Node_Spec_Retry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Node_Spec_Retry) XXX_Merge(src proto.Message)
- func (m *Node_Spec_Retry) XXX_Size() int
- func (m *Node_Spec_Retry) XXX_Unmarshal(b []byte) error
- type Node_Status
- type Result
- func (*Result) Descriptor() ([]byte, []int)
- func (m *Result) GetConclusion() Result_Conclusion
- func (m *Result) GetMetadata() map[string]*MetadataValue
- func (m *Result) GetOutput() []byte
- func (*Result) ProtoMessage()
- func (m *Result) Reset()
- func (m *Result) String() string
- func (m *Result) XXX_DiscardUnknown()
- func (m *Result) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Result) XXX_Merge(src proto.Message)
- func (m *Result) XXX_Size() int
- func (m *Result) XXX_Unmarshal(b []byte) error
- type Result_Conclusion
- type RetryCondition
- type Run
- func (*Run) Descriptor() ([]byte, []int)
- func (m *Run) GetCreatedAt() string
- func (m *Run) GetEdges() []*Edge
- func (m *Run) GetId() string
- func (run *Run) GetNodeByName(name string) (*Node, error)
- func (m *Run) GetNodes() []*Node
- func (m *Run) GetStatus() Run_Status
- func (*Run) ProtoMessage()
- func (m *Run) Reset()
- func (m *Run) String() string
- func (m *Run) XXX_DiscardUnknown()
- func (m *Run) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Run) XXX_Merge(src proto.Message)
- func (m *Run) XXX_Size() int
- func (m *Run) XXX_Unmarshal(b []byte) error
- type Run_Status
- type Runtime
- func (*Runtime) Descriptor() ([]byte, []int)
- func (m *Runtime) GetName() string
- func (*Runtime) ProtoMessage()
- func (m *Runtime) Reset()
- func (m *Runtime) String() string
- func (m *Runtime) XXX_DiscardUnknown()
- func (m *Runtime) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Runtime) XXX_Merge(src proto.Message)
- func (m *Runtime) XXX_Size() int
- func (m *Runtime) XXX_Unmarshal(b []byte) error
- type Stats
- func (*Stats) Descriptor() ([]byte, []int)
- func (m *Stats) GetNodeCounts() *Stats_NodeCounts
- func (m *Stats) GetRunCount() int64
- func (*Stats) ProtoMessage()
- func (m *Stats) Reset()
- func (m *Stats) String() string
- func (m *Stats) XXX_DiscardUnknown()
- func (m *Stats) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Stats) XXX_Merge(src proto.Message)
- func (m *Stats) XXX_Size() int
- func (m *Stats) XXX_Unmarshal(b []byte) error
- type Stats_NodeCounts
- func (*Stats_NodeCounts) Descriptor() ([]byte, []int)
- func (m *Stats_NodeCounts) GetCompletedCount() int64
- func (m *Stats_NodeCounts) GetReadyCount() int64
- func (m *Stats_NodeCounts) GetRunningCount() int64
- func (m *Stats_NodeCounts) GetWaitingCount() int64
- func (*Stats_NodeCounts) ProtoMessage()
- func (m *Stats_NodeCounts) Reset()
- func (m *Stats_NodeCounts) String() string
- func (m *Stats_NodeCounts) XXX_DiscardUnknown()
- func (m *Stats_NodeCounts) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Stats_NodeCounts) XXX_Merge(src proto.Message)
- func (m *Stats_NodeCounts) XXX_Size() int
- func (m *Stats_NodeCounts) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrMissingNode is returned when a node is not found ErrMissingNode = errors.New("node not found") // ErrNodeNotReady is returned when a claim is made on a node that is not ready ErrNodeNotReady = errors.New("node not ready") // ErrRunDoesNotExist is returned when a run is referenced which does not exist ErrRunDoesNotExist = errors.New("run does not exist") )
View Source
var Event_Type_name = map[int32]string{
0: "NODE_READY",
1: "NODE_ORPHANED",
}
View Source
var Event_Type_value = map[string]int32{
"NODE_READY": 0,
"NODE_ORPHANED": 1,
}
View Source
var Node_Result_Conclusion_name = map[int32]string{
0: "NONE",
1: "SUCCESS",
2: "FAIL",
3: "ERROR",
}
View Source
var Node_Result_Conclusion_value = map[string]int32{
"NONE": 0,
"SUCCESS": 1,
"FAIL": 2,
"ERROR": 3,
}
View Source
var Node_Status_name = map[int32]string{
0: "NONE",
1: "WAITING",
2: "READY",
3: "RUNNING",
4: "COMPLETED",
}
View Source
var Node_Status_value = map[string]int32{
"NONE": 0,
"WAITING": 1,
"READY": 2,
"RUNNING": 3,
"COMPLETED": 4,
}
View Source
var Result_Conclusion_name = map[int32]string{
0: "NONE",
1: "SUCCESS",
2: "FAIL",
}
View Source
var Result_Conclusion_value = map[string]int32{
"NONE": 0,
"SUCCESS": 1,
"FAIL": 2,
}
View Source
var Run_Status_name = map[int32]string{
0: "WAITING",
1: "RUNNING",
2: "COMPLETED",
}
View Source
var Run_Status_value = map[string]int32{
"WAITING": 0,
"RUNNING": 1,
"COMPLETED": 2,
}
Functions ¶
func GraphFrom ¶
GraphFrom takes a run and builds a *graph.Graph from it which contains helpful functions to traversing the runs graph structure
func VisitLatestAttempt ¶
func VisitLatestAttempt(node *Node, fn func(*Node_Result))
VisitLatestAttempt calls the supplied function with the latest attempt result if any attempts have been made
Types ¶
type Agent ¶
type Agent struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Runtimes []*Runtime `protobuf:"bytes,2,rep,name=runtimes,proto3" json:"runtimes,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Agent) Descriptor ¶
func (*Agent) GetRuntimes ¶
func (*Agent) ProtoMessage ¶
func (*Agent) ProtoMessage()
func (*Agent) XXX_DiscardUnknown ¶
func (m *Agent) XXX_DiscardUnknown()
func (*Agent) XXX_Marshal ¶
func (*Agent) XXX_Unmarshal ¶
type Claim ¶
type Claim struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Metadata map[string]*MetadataValue `` /* 157-byte string literal not displayed */ XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Claim) Descriptor ¶
func (*Claim) GetMetadata ¶
func (m *Claim) GetMetadata() map[string]*MetadataValue
func (*Claim) ProtoMessage ¶
func (*Claim) ProtoMessage()
func (*Claim) XXX_DiscardUnknown ¶
func (m *Claim) XXX_DiscardUnknown()
func (*Claim) XXX_Marshal ¶
func (*Claim) XXX_Unmarshal ¶
type Edge ¶
type Edge struct { Source string `protobuf:"bytes,1,opt,name=source,proto3" json:"source,omitempty"` Destination string `protobuf:"bytes,2,opt,name=destination,proto3" json:"destination,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Edge) Descriptor ¶
func (*Edge) GetDestination ¶
func (*Edge) ProtoMessage ¶
func (*Edge) ProtoMessage()
func (*Edge) XXX_DiscardUnknown ¶
func (m *Edge) XXX_DiscardUnknown()
func (*Edge) XXX_Unmarshal ¶
type Event ¶
type Event struct { Type Event_Type `protobuf:"varint,1,opt,name=type,proto3,enum=adagio.Event_Type" json:"type,omitempty"` RunID string `protobuf:"bytes,2,opt,name=runID,proto3" json:"runID,omitempty"` NodeSpec *Node_Spec `protobuf:"bytes,3,opt,name=nodeSpec,proto3" json:"nodeSpec,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Event) Descriptor ¶
func (*Event) GetNodeSpec ¶
func (*Event) GetType ¶
func (m *Event) GetType() Event_Type
func (*Event) ProtoMessage ¶
func (*Event) ProtoMessage()
func (*Event) XXX_DiscardUnknown ¶
func (m *Event) XXX_DiscardUnknown()
func (*Event) XXX_Marshal ¶
func (*Event) XXX_Unmarshal ¶
type Event_Type ¶
type Event_Type int32
const ( Event_NODE_READY Event_Type = 0 Event_NODE_ORPHANED Event_Type = 1 )
func (Event_Type) EnumDescriptor ¶
func (Event_Type) EnumDescriptor() ([]byte, []int)
func (Event_Type) String ¶
func (x Event_Type) String() string
type GraphSpec ¶
type GraphSpec struct { Nodes []*Node_Spec `protobuf:"bytes,1,rep,name=nodes,proto3" json:"nodes,omitempty"` Edges []*Edge `protobuf:"bytes,2,rep,name=edges,proto3" json:"edges,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GraphSpec) Descriptor ¶
func (*GraphSpec) ProtoMessage ¶
func (*GraphSpec) ProtoMessage()
func (*GraphSpec) XXX_DiscardUnknown ¶
func (m *GraphSpec) XXX_DiscardUnknown()
func (*GraphSpec) XXX_Marshal ¶
func (*GraphSpec) XXX_Unmarshal ¶
type MetadataValue ¶
type MetadataValue struct { Values []string `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*MetadataValue) Descriptor ¶
func (*MetadataValue) Descriptor() ([]byte, []int)
func (*MetadataValue) GetValues ¶
func (m *MetadataValue) GetValues() []string
func (*MetadataValue) ProtoMessage ¶
func (*MetadataValue) ProtoMessage()
func (*MetadataValue) Reset ¶
func (m *MetadataValue) Reset()
func (*MetadataValue) String ¶
func (m *MetadataValue) String() string
func (*MetadataValue) XXX_DiscardUnknown ¶
func (m *MetadataValue) XXX_DiscardUnknown()
func (*MetadataValue) XXX_Marshal ¶
func (m *MetadataValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MetadataValue) XXX_Merge ¶
func (m *MetadataValue) XXX_Merge(src proto.Message)
func (*MetadataValue) XXX_Size ¶
func (m *MetadataValue) XXX_Size() int
func (*MetadataValue) XXX_Unmarshal ¶
func (m *MetadataValue) XXX_Unmarshal(b []byte) error
type Node ¶
type Node struct { Spec *Node_Spec `protobuf:"bytes,1,opt,name=spec,proto3" json:"spec,omitempty"` Status Node_Status `protobuf:"varint,2,opt,name=status,proto3,enum=adagio.Node_Status" json:"status,omitempty"` Attempts []*Node_Result `protobuf:"bytes,3,rep,name=attempts,proto3" json:"attempts,omitempty"` StartedAt string `protobuf:"bytes,4,opt,name=started_at,json=startedAt,proto3" json:"started_at,omitempty"` FinishedAt string `protobuf:"bytes,5,opt,name=finished_at,json=finishedAt,proto3" json:"finished_at,omitempty"` Inputs map[string][]byte `` /* 153-byte string literal not displayed */ Claim *Claim `protobuf:"bytes,7,opt,name=claim,proto3" json:"claim,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Node) Descriptor ¶
func (*Node) GetAttempts ¶
func (m *Node) GetAttempts() []*Node_Result
func (*Node) GetFinishedAt ¶
func (*Node) GetStartedAt ¶
func (*Node) GetStatus ¶
func (m *Node) GetStatus() Node_Status
func (*Node) ProtoMessage ¶
func (*Node) ProtoMessage()
func (*Node) XXX_DiscardUnknown ¶
func (m *Node) XXX_DiscardUnknown()
func (*Node) XXX_Unmarshal ¶
type Node_Result ¶
type Node_Result struct { Conclusion Node_Result_Conclusion `protobuf:"varint,1,opt,name=conclusion,proto3,enum=adagio.Node_Result_Conclusion" json:"conclusion,omitempty"` Metadata map[string]*MetadataValue `` /* 157-byte string literal not displayed */ Output []byte `protobuf:"bytes,3,opt,name=output,proto3" json:"output,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Node_Result) Descriptor ¶
func (*Node_Result) Descriptor() ([]byte, []int)
func (*Node_Result) GetConclusion ¶
func (m *Node_Result) GetConclusion() Node_Result_Conclusion
func (*Node_Result) GetMetadata ¶
func (m *Node_Result) GetMetadata() map[string]*MetadataValue
func (*Node_Result) GetOutput ¶
func (m *Node_Result) GetOutput() []byte
func (*Node_Result) ProtoMessage ¶
func (*Node_Result) ProtoMessage()
func (*Node_Result) Reset ¶
func (m *Node_Result) Reset()
func (*Node_Result) String ¶
func (m *Node_Result) String() string
func (*Node_Result) XXX_DiscardUnknown ¶
func (m *Node_Result) XXX_DiscardUnknown()
func (*Node_Result) XXX_Marshal ¶
func (m *Node_Result) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*Node_Result) XXX_Merge ¶
func (m *Node_Result) XXX_Merge(src proto.Message)
func (*Node_Result) XXX_Size ¶
func (m *Node_Result) XXX_Size() int
func (*Node_Result) XXX_Unmarshal ¶
func (m *Node_Result) XXX_Unmarshal(b []byte) error
type Node_Result_Conclusion ¶
type Node_Result_Conclusion int32
const ( Node_Result_NONE Node_Result_Conclusion = 0 Node_Result_SUCCESS Node_Result_Conclusion = 1 Node_Result_FAIL Node_Result_Conclusion = 2 Node_Result_ERROR Node_Result_Conclusion = 3 )
func (Node_Result_Conclusion) EnumDescriptor ¶
func (Node_Result_Conclusion) EnumDescriptor() ([]byte, []int)
func (Node_Result_Conclusion) String ¶
func (x Node_Result_Conclusion) String() string
type Node_Spec ¶
type Node_Spec struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Runtime string `protobuf:"bytes,2,opt,name=runtime,proto3" json:"runtime,omitempty"` Metadata map[string]*MetadataValue `` /* 157-byte string literal not displayed */ Retry map[string]*Node_Spec_Retry `` /* 151-byte string literal not displayed */ XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Node_Spec) Descriptor ¶
func (*Node_Spec) GetMetadata ¶
func (m *Node_Spec) GetMetadata() map[string]*MetadataValue
func (*Node_Spec) GetRetry ¶
func (m *Node_Spec) GetRetry() map[string]*Node_Spec_Retry
func (*Node_Spec) GetRuntime ¶
func (*Node_Spec) ProtoMessage ¶
func (*Node_Spec) ProtoMessage()
func (*Node_Spec) XXX_DiscardUnknown ¶
func (m *Node_Spec) XXX_DiscardUnknown()
func (*Node_Spec) XXX_Marshal ¶
func (*Node_Spec) XXX_Unmarshal ¶
type Node_Spec_Retry ¶
type Node_Spec_Retry struct { MaxAttempts int32 `protobuf:"varint,1,opt,name=max_attempts,json=maxAttempts,proto3" json:"max_attempts,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Node_Spec_Retry) Descriptor ¶
func (*Node_Spec_Retry) Descriptor() ([]byte, []int)
func (*Node_Spec_Retry) GetMaxAttempts ¶
func (m *Node_Spec_Retry) GetMaxAttempts() int32
func (*Node_Spec_Retry) ProtoMessage ¶
func (*Node_Spec_Retry) ProtoMessage()
func (*Node_Spec_Retry) Reset ¶
func (m *Node_Spec_Retry) Reset()
func (*Node_Spec_Retry) String ¶
func (m *Node_Spec_Retry) String() string
func (*Node_Spec_Retry) XXX_DiscardUnknown ¶
func (m *Node_Spec_Retry) XXX_DiscardUnknown()
func (*Node_Spec_Retry) XXX_Marshal ¶
func (m *Node_Spec_Retry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*Node_Spec_Retry) XXX_Merge ¶
func (m *Node_Spec_Retry) XXX_Merge(src proto.Message)
func (*Node_Spec_Retry) XXX_Size ¶
func (m *Node_Spec_Retry) XXX_Size() int
func (*Node_Spec_Retry) XXX_Unmarshal ¶
func (m *Node_Spec_Retry) XXX_Unmarshal(b []byte) error
type Node_Status ¶
type Node_Status int32
const ( Node_NONE Node_Status = 0 Node_WAITING Node_Status = 1 Node_READY Node_Status = 2 Node_RUNNING Node_Status = 3 Node_COMPLETED Node_Status = 4 )
func (Node_Status) EnumDescriptor ¶
func (Node_Status) EnumDescriptor() ([]byte, []int)
func (Node_Status) String ¶
func (x Node_Status) String() string
type Result ¶
type Result struct { Conclusion Result_Conclusion `protobuf:"varint,1,opt,name=conclusion,proto3,enum=adagio.Result_Conclusion" json:"conclusion,omitempty"` Metadata map[string]*MetadataValue `` /* 157-byte string literal not displayed */ Output []byte `protobuf:"bytes,3,opt,name=output,proto3" json:"output,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Result) Descriptor ¶
func (*Result) GetConclusion ¶
func (m *Result) GetConclusion() Result_Conclusion
func (*Result) GetMetadata ¶
func (m *Result) GetMetadata() map[string]*MetadataValue
func (*Result) ProtoMessage ¶
func (*Result) ProtoMessage()
func (*Result) XXX_DiscardUnknown ¶
func (m *Result) XXX_DiscardUnknown()
func (*Result) XXX_Marshal ¶
func (*Result) XXX_Unmarshal ¶
type Result_Conclusion ¶
type Result_Conclusion int32
const ( Result_NONE Result_Conclusion = 0 Result_SUCCESS Result_Conclusion = 1 Result_FAIL Result_Conclusion = 2 )
func (Result_Conclusion) EnumDescriptor ¶
func (Result_Conclusion) EnumDescriptor() ([]byte, []int)
func (Result_Conclusion) String ¶
func (x Result_Conclusion) String() string
type RetryCondition ¶
type RetryCondition string
RetryCondition is a key used in the node spec retry map
const ( // OnFail is the retry condition where a node results in a // failure OnFail RetryCondition = "fail" // OnError is the retry condition where a node results in a // system related error OnError RetryCondition = "error" )
type Run ¶
type Run struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` CreatedAt string `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` Nodes []*Node `protobuf:"bytes,3,rep,name=nodes,proto3" json:"nodes,omitempty"` Edges []*Edge `protobuf:"bytes,4,rep,name=edges,proto3" json:"edges,omitempty"` Status Run_Status `protobuf:"varint,5,opt,name=status,proto3,enum=adagio.Run_Status" json:"status,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func NewRun ¶
NewRun converts a graph specification into a new run instance This is a convention and helper function for repository implementations to use to correctly adapt a new graph spec into a run. It validates that the graph has no cycles and initializes states, timestamps and IDs appropriately
func (*Run) Descriptor ¶
func (*Run) GetCreatedAt ¶
func (*Run) GetNodeByName ¶
GetNodeByName fetches a Node from the Run by name
func (*Run) GetStatus ¶
func (m *Run) GetStatus() Run_Status
func (*Run) ProtoMessage ¶
func (*Run) ProtoMessage()
func (*Run) XXX_DiscardUnknown ¶
func (m *Run) XXX_DiscardUnknown()
func (*Run) XXX_Unmarshal ¶
type Run_Status ¶
type Run_Status int32
const ( Run_WAITING Run_Status = 0 Run_RUNNING Run_Status = 1 Run_COMPLETED Run_Status = 2 )
func (Run_Status) EnumDescriptor ¶
func (Run_Status) EnumDescriptor() ([]byte, []int)
func (Run_Status) String ¶
func (x Run_Status) String() string
type Runtime ¶
type Runtime struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Runtime) Descriptor ¶
func (*Runtime) ProtoMessage ¶
func (*Runtime) ProtoMessage()
func (*Runtime) XXX_DiscardUnknown ¶
func (m *Runtime) XXX_DiscardUnknown()
func (*Runtime) XXX_Marshal ¶
func (*Runtime) XXX_Unmarshal ¶
type Stats ¶
type Stats struct { RunCount int64 `protobuf:"varint,1,opt,name=run_count,json=runCount,proto3" json:"run_count,omitempty"` NodeCounts *Stats_NodeCounts `protobuf:"bytes,2,opt,name=node_counts,json=nodeCounts,proto3" json:"node_counts,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Stats) Descriptor ¶
func (*Stats) GetNodeCounts ¶
func (m *Stats) GetNodeCounts() *Stats_NodeCounts
func (*Stats) GetRunCount ¶
func (*Stats) ProtoMessage ¶
func (*Stats) ProtoMessage()
func (*Stats) XXX_DiscardUnknown ¶
func (m *Stats) XXX_DiscardUnknown()
func (*Stats) XXX_Marshal ¶
func (*Stats) XXX_Unmarshal ¶
type Stats_NodeCounts ¶
type Stats_NodeCounts struct { WaitingCount int64 `protobuf:"varint,1,opt,name=waiting_count,json=waitingCount,proto3" json:"waiting_count,omitempty"` ReadyCount int64 `protobuf:"varint,2,opt,name=ready_count,json=readyCount,proto3" json:"ready_count,omitempty"` RunningCount int64 `protobuf:"varint,3,opt,name=running_count,json=runningCount,proto3" json:"running_count,omitempty"` CompletedCount int64 `protobuf:"varint,4,opt,name=completed_count,json=completedCount,proto3" json:"completed_count,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Stats_NodeCounts) Descriptor ¶
func (*Stats_NodeCounts) Descriptor() ([]byte, []int)
func (*Stats_NodeCounts) GetCompletedCount ¶
func (m *Stats_NodeCounts) GetCompletedCount() int64
func (*Stats_NodeCounts) GetReadyCount ¶
func (m *Stats_NodeCounts) GetReadyCount() int64
func (*Stats_NodeCounts) GetRunningCount ¶
func (m *Stats_NodeCounts) GetRunningCount() int64
func (*Stats_NodeCounts) GetWaitingCount ¶
func (m *Stats_NodeCounts) GetWaitingCount() int64
func (*Stats_NodeCounts) ProtoMessage ¶
func (*Stats_NodeCounts) ProtoMessage()
func (*Stats_NodeCounts) Reset ¶
func (m *Stats_NodeCounts) Reset()
func (*Stats_NodeCounts) String ¶
func (m *Stats_NodeCounts) String() string
func (*Stats_NodeCounts) XXX_DiscardUnknown ¶
func (m *Stats_NodeCounts) XXX_DiscardUnknown()
func (*Stats_NodeCounts) XXX_Marshal ¶
func (m *Stats_NodeCounts) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*Stats_NodeCounts) XXX_Merge ¶
func (m *Stats_NodeCounts) XXX_Merge(src proto.Message)
func (*Stats_NodeCounts) XXX_Size ¶
func (m *Stats_NodeCounts) XXX_Size() int
func (*Stats_NodeCounts) XXX_Unmarshal ¶
func (m *Stats_NodeCounts) XXX_Unmarshal(b []byte) error
Click to show internal directories.
Click to hide internal directories.