graph

package
v0.0.0-...-0f8ae5d Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get(g graph.Graph, id string) graph.Node

func Parse

func Parse(it Iterator) *simple.DirectedGraph

func Roots

func Roots(g graph.Directed) []graph.Node

Types

type Directed

type Directed = simple.DirectedGraph

a handy alias to stop us having to import gonum/graph in the provenance generation

type Iterator

type Iterator interface {
	Get(ptr int) LinkedNode
}

type LinkedNode

type LinkedNode interface {
	graph.Node
	Links() []int64
}

type TaskInstanceIterator

type TaskInstanceIterator struct {
	// contains filtered or unexported fields
}

func NewTaskInstanceIterator

func NewTaskInstanceIterator(contents map[string]*types.TaskInvocation) *TaskInstanceIterator

func (*TaskInstanceIterator) Get

func (ti *TaskInstanceIterator) Get(ptr int) LinkedNode

type TaskInvocationNode

type TaskInvocationNode struct {
	*types.TaskInvocation
}

func (*TaskInvocationNode) ID

func (n *TaskInvocationNode) ID() int64
func (n *TaskInvocationNode) Links() []int64

type TaskSpecIterator

type TaskSpecIterator struct {
	// contains filtered or unexported fields
}

func NewTaskSpecIterator

func NewTaskSpecIterator(contents map[string]*types.TaskSpec) *TaskSpecIterator

func (*TaskSpecIterator) Get

func (ts *TaskSpecIterator) Get(ptr int) LinkedNode

type TaskSpecNode

type TaskSpecNode struct {
	*types.TaskSpec
	// contains filtered or unexported fields
}

func (*TaskSpecNode) GetID

func (n *TaskSpecNode) GetID() string

func (*TaskSpecNode) ID

func (n *TaskSpecNode) ID() int64
func (n *TaskSpecNode) Links() []int64

Jump to

Keyboard shortcuts

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