Documentation ¶
Index ¶
- type Graph
- func (g *Graph) AddDynamicJobCnt(cnt int)
- func (g *Graph) AddVertex(Vertex *Vertex)
- func (g *Graph) CheckCycle(checkEnd int) (bool, []int)
- func (g *Graph) DFS(stack *list.List, onStack map[int]bool, visited map[int]bool) error
- func (g *Graph) DirectedTraverse(start int) ([]int, error)
- func (g *Graph) FindChildren(vertex int) []int
- func (g *Graph) FindChildrenByName(jobName string) []*Vertex
- func (g *Graph) FindDependents(vertex int) []int
- func (g *Graph) FindDependentsByName(jobName string) []int
- func (g *Graph) FindVertex(vertex int) *Vertex
- func (g *Graph) FindVertexByName(jobName string) *Vertex
- func (g *Graph) GetNumOfSuccess() int
- func (g *Graph) GetRootVertex() []*Vertex
- func (g *Graph) IsDAG() bool
- func (g *Graph) PlusNumOfSuccess()
- func (g *Graph) SetAdjMatrix() bool
- type JobInfo
- type Vertex
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Graph ¶
type Graph struct { sync.RWMutex NumOfSuccess int VertexCount int Size int VertexArray []*Vertex AdjMatrix []int DynamicJobCnt int }
func (*Graph) AddDynamicJobCnt ¶
func (*Graph) FindChildren ¶
func (*Graph) FindChildrenByName ¶
func (*Graph) FindDependents ¶
func (*Graph) FindDependentsByName ¶
func (*Graph) FindVertex ¶
func (*Graph) FindVertexByName ¶
func (*Graph) GetNumOfSuccess ¶
func (*Graph) GetRootVertex ¶
func (*Graph) PlusNumOfSuccess ¶
func (g *Graph) PlusNumOfSuccess()
func (*Graph) SetAdjMatrix ¶
type JobInfo ¶
type JobInfo struct { Finished bool Job *batch.Job TaskType genev1alpha1.TaskType DynamicJob *genev1alpha1.Task }
JobInfo stores job information for running
func NewJobInfo ¶
func NewJobInfo(job *batch.Job, finished bool, taskType genev1alpha1.TaskType, dynamicJob *genev1alpha1.Task) *JobInfo
type Vertex ¶
func (*Vertex) GetDynamicJobCnt ¶
func (*Vertex) GetDynamicSuccJobCnt ¶
func (*Vertex) IncDynamicJobSuccCnt ¶
func (n *Vertex) IncDynamicJobSuccCnt()
func (*Vertex) SetDynamicJobCnt ¶
Click to show internal directories.
Click to hide internal directories.