Documentation ¶
Index ¶
- type DependencyGraph
- func (g *DependencyGraph) AddDependency(obj1, obj2 Reference)
- func (g *DependencyGraph) GetAllDependenciesFor(obj1 Reference) []Reference
- func (g *DependencyGraph) HasDependency(obj1, obj2 Reference) bool
- func (g *DependencyGraph) RemoveAllDependenciesFor(obj1 Reference)
- func (g *DependencyGraph) RemoveDependency(obj1, obj2 Reference)
- type Mapper
- type Object
- type Reference
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DependencyGraph ¶
DependencyGraph is a data structure to track bi-directional dependencies between two Reference
func (*DependencyGraph) AddDependency ¶
func (g *DependencyGraph) AddDependency(obj1, obj2 Reference)
AddDependency adds a dependency between two Reference
func (*DependencyGraph) GetAllDependenciesFor ¶
func (g *DependencyGraph) GetAllDependenciesFor(obj1 Reference) []Reference
GetAllDependenciesFor gets all dependencies of a Reference
func (*DependencyGraph) HasDependency ¶
func (g *DependencyGraph) HasDependency(obj1, obj2 Reference) bool
HasDependency checks if a dependency exists between two Reference
func (*DependencyGraph) RemoveAllDependenciesFor ¶
func (g *DependencyGraph) RemoveAllDependenciesFor(obj1 Reference)
RemoveAllDependenciesFor removes all dependencies of a Reference
func (*DependencyGraph) RemoveDependency ¶
func (g *DependencyGraph) RemoveDependency(obj1, obj2 Reference)
RemoveDependency removes a dependency between two Reference
type Mapper ¶
type Mapper struct {
Graph DependencyGraph
}
Mapper maps namespaces to their ArgoCD instance
type Reference ¶
Reference refers to a kubernetes resource
func ReferenceFromMapObject ¶
ReferenceFromMapObject creates a Reference from a handler.MapObject
func ReferenceFromObject ¶
ReferenceFromObject creates a Reference from an Object
Click to show internal directories.
Click to hide internal directories.