Documentation ¶
Index ¶
- func InDependencyOrder(ctx context.Context, apps map[string]*interface{}, ...) error
- func InReversDependencyOrder(ctx context.Context, apps map[string]*interface{}, ...) error
- type AppStatus
- type Graph
- func (g *Graph) AddEdge(source string, destination string) error
- func (g *Graph) AddVertex(key string, app string, initialStatus AppStatus)
- func (g *Graph) FilterChildren(key string, status AppStatus) []*Vertex
- func (g *Graph) FilterParents(key string, status AppStatus) []*Vertex
- func (g *Graph) HasCycles() (bool, error)
- func (g *Graph) Leaves() []*Vertex
- func (g *Graph) Roots() []*Vertex
- func (g *Graph) UpdateStatus(key string, status AppStatus)
- type Manager
- type Vertex
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Graph ¶
Graph represents project as app dependencies
func (*Graph) FilterChildren ¶
FilterChildren returns children of a certain vertex that are in a certain status
func (*Graph) FilterParents ¶
FilterParents returns the parents of a certain vertex that are in a certain status
func (*Graph) UpdateStatus ¶
UpdateStatus updates the status of a certain vertex
type Vertex ¶
type Vertex struct { Key string App string Status AppStatus Children map[string]*Vertex Parents map[string]*Vertex }
Vertex represents a app in the dependencies structure
func (*Vertex) GetChildren ¶
GetChildren returns a slice with the child vertexes of the a Vertex
func (*Vertex) GetParents ¶
GetParents returns a slice with the parent vertexes of the a Vertex
Click to show internal directories.
Click to hide internal directories.