type namedVertex …
func newNamedVertex(vertexType vertexType, namespace, name string, id int) *namedVertex { … }
func (n *namedVertex) ID() int { … }
func (n *namedVertex) String() string { … }
type destinationEdge …
func newDestinationEdge(from, to, destination graph.Node) graph.Edge { … }
func (e *destinationEdge) From() graph.Node { … }
func (e *destinationEdge) To() graph.Node { … }
func (e *destinationEdge) Weight() float64 { … }
func (e *destinationEdge) DestinationID() int { … }
type Graph …
type namespaceVertexMapping …
type nameVertexMapping …
func NewGraph() *Graph { … }
type vertexType …
const configMapVertexType …
const sliceVertexType …
const nodeVertexType …
const podVertexType …
const pvcVertexType …
const pvVertexType …
const resourceClaimVertexType …
const secretVertexType …
const vaVertexType …
const serviceAccountVertexType …
var vertexTypes …
var vertexTypeWithAuthoritativeIndex …
func (g *Graph) getOrCreateVertexLocked(vertexType vertexType, namespace, name string) *namedVertex { … }
func (g *Graph) getVertexRLocked(vertexType vertexType, namespace, name string) (*namedVertex, bool) { … }
func (g *Graph) createVertexLocked(vertexType vertexType, namespace, name string) *namedVertex { … }
func (g *Graph) deleteVertexLocked(vertexType vertexType, namespace, name string) { … }
func (g *Graph) deleteEdgesLocked(fromType, toType vertexType, toNamespace, toName string) { … }
func (g *Graph) removeEdgeFromDestinationIndexLocked(e graph.Edge) { … }
func (g *Graph) addEdgeToDestinationIndexLocked(e graph.Edge) { … }
func (g *Graph) removeVertexLocked(v *namedVertex) { … }
func (g *Graph) recomputeDestinationIndexLocked(n graph.Node) { … }
func (g *Graph) AddPod(pod *corev1.Pod) { … }
func (g *Graph) addEdgeLocked(from, to, destination *namedVertex) { … }
func (g *Graph) DeletePod(name, namespace string) { … }
func (g *Graph) AddPV(pv *corev1.PersistentVolume) { … }
func (g *Graph) DeletePV(name string) { … }
func (g *Graph) AddVolumeAttachment(attachmentName, nodeName string) { … }
func (g *Graph) DeleteVolumeAttachment(name string) { … }
func (g *Graph) AddResourceSlice(sliceName, nodeName string) { … }
func (g *Graph) DeleteResourceSlice(sliceName string) { … }