Documentation ¶
Index ¶
- Variables
- func ListAncestors(w *Workflow, amid string) int64s
- type Vertex
- type VertexChainLink
- func (v VertexChainLink) AMID() string
- func (v VertexChainLink) Attributes() []encoding.Attribute
- func (v VertexChainLink) DOTID() string
- func (v VertexChainLink) ID() int64
- func (h VertexChainLink) IsHighlighted() bool
- func (v VertexChainLink) Source() amjson.Vertex
- func (v VertexChainLink) String() string
- func (h *VertexChainLink) WithHighlight(v bool)
- type VertexLink
- func (v VertexLink) AMID() string
- func (v VertexLink) Attributes() []encoding.Attribute
- func (v VertexLink) DOTID() string
- func (v VertexLink) ID() int64
- func (h VertexLink) IsHighlighted() bool
- func (v VertexLink) Source() amjson.Vertex
- func (v VertexLink) String() string
- func (h *VertexLink) WithHighlight(v bool)
- type VertexWatcheDir
- func (v VertexWatcheDir) AMID() string
- func (v VertexWatcheDir) Attributes() []encoding.Attribute
- func (v VertexWatcheDir) DOTID() string
- func (v VertexWatcheDir) ID() int64
- func (h VertexWatcheDir) IsHighlighted() bool
- func (v VertexWatcheDir) Source() amjson.Vertex
- func (v VertexWatcheDir) String() string
- func (h *VertexWatcheDir) WithHighlight(v bool)
- type VizOpts
- type Workflow
- func (w Workflow) Check() error
- func (w Workflow) DOT(opts *VizOpts) ([]byte, error)
- func (w *Workflow) DOTAttributers() (graph, node, edge encoding.Attributer)
- func (w Workflow) Edge(uid, vid int64) graph.Edge
- func (w Workflow) From(id int64) graph.Nodes
- func (w Workflow) HasEdgeBetween(xid, yid int64) bool
- func (w Workflow) HasEdgeFromTo(uid, vid int64) bool
- func (w Workflow) Node(id int64) graph.Node
- func (w Workflow) Nodes() graph.Nodes
- func (w *Workflow) SVG(opts *VizOpts) ([]byte, error)
- func (w Workflow) To(id int64) graph.Nodes
- func (w Workflow) VertexByAMID(amid string) Vertex
- func (w Workflow) VertexByID(id int64) Vertex
Constants ¶
This section is empty.
Variables ¶
View Source
var WorkflowSample []byte
Functions ¶
func ListAncestors ¶
List ancestors of a given vertice. It does depth-first search supported by a stack.
Types ¶
type VertexChainLink ¶
type VertexChainLink struct {
// contains filtered or unexported fields
}
VertexChainLink is a Vertex.
func (VertexChainLink) AMID ¶
func (v VertexChainLink) AMID() string
func (VertexChainLink) Attributes ¶
func (v VertexChainLink) Attributes() []encoding.Attribute
func (VertexChainLink) DOTID ¶
func (v VertexChainLink) DOTID() string
func (VertexChainLink) ID ¶
func (v VertexChainLink) ID() int64
func (VertexChainLink) IsHighlighted ¶
func (h VertexChainLink) IsHighlighted() bool
func (VertexChainLink) Source ¶
func (v VertexChainLink) Source() amjson.Vertex
func (VertexChainLink) String ¶
func (v VertexChainLink) String() string
func (*VertexChainLink) WithHighlight ¶
func (h *VertexChainLink) WithHighlight(v bool)
type VertexLink ¶
type VertexLink struct {
// contains filtered or unexported fields
}
VertexLink is a Vertex.
func (VertexLink) AMID ¶
func (v VertexLink) AMID() string
func (VertexLink) Attributes ¶
func (v VertexLink) Attributes() []encoding.Attribute
func (VertexLink) DOTID ¶
func (v VertexLink) DOTID() string
func (VertexLink) ID ¶
func (v VertexLink) ID() int64
func (VertexLink) IsHighlighted ¶
func (h VertexLink) IsHighlighted() bool
func (VertexLink) Source ¶
func (v VertexLink) Source() amjson.Vertex
func (VertexLink) String ¶
func (v VertexLink) String() string
func (*VertexLink) WithHighlight ¶
func (h *VertexLink) WithHighlight(v bool)
type VertexWatcheDir ¶
type VertexWatcheDir struct {
// contains filtered or unexported fields
}
VertexWatcheDir is a Vertex.
func (VertexWatcheDir) AMID ¶
func (v VertexWatcheDir) AMID() string
func (VertexWatcheDir) Attributes ¶
func (v VertexWatcheDir) Attributes() []encoding.Attribute
func (VertexWatcheDir) DOTID ¶
func (v VertexWatcheDir) DOTID() string
func (VertexWatcheDir) ID ¶
func (v VertexWatcheDir) ID() int64
func (VertexWatcheDir) IsHighlighted ¶
func (h VertexWatcheDir) IsHighlighted() bool
func (VertexWatcheDir) Source ¶
func (v VertexWatcheDir) Source() amjson.Vertex
func (VertexWatcheDir) String ¶
func (v VertexWatcheDir) String() string
func (*VertexWatcheDir) WithHighlight ¶
func (h *VertexWatcheDir) WithHighlight(v bool)
type VizOpts ¶
type VizOpts struct { // Render the full graph, which may have a significant impact in rendering times. Full bool }
type Workflow ¶
type Workflow struct {
// contains filtered or unexported fields
}
Workflow is a sequence of operations in Archivematica.
It is modeled as a simple directed graph.
func (Workflow) Check ¶
Check looks for inconsistencies in the graph. It returns a multiError created with the go.uber.org/multierr module.
func (*Workflow) DOTAttributers ¶
func (w *Workflow) DOTAttributers() (graph, node, edge encoding.Attributer)
func (Workflow) HasEdgeBetween ¶
func (Workflow) HasEdgeFromTo ¶
Implement graph.Directed.
func (Workflow) VertexByAMID ¶
Vertex returns a workflow vertex given its AMD.
func (Workflow) VertexByID ¶
Vertex returns a workflow vertex given its ID.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.