- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for vertexTypes (0.11 sec)
-
plugin/pkg/auth/authorizer/node/node_authorizer.go
func (r *NodeAuthorizer) hasPathFrom(nodeName string, startingType vertexType, startingNamespace, startingName string) (bool, error) { r.graph.lock.RLock() defer r.graph.lock.RUnlock() nodeVertex, exists := r.graph.getVertex_rlocked(nodeVertexType, "", nodeName) if !exists { return false, fmt.Errorf("unknown node '%s' cannot get %s %s/%s", nodeName, vertexTypes[startingType], startingNamespace, startingName) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Mar 07 21:22:55 UTC 2024 - 16K bytes - Viewed (0) -
plugin/pkg/auth/authorizer/node/graph.go
type namedVertex struct { name string namespace string id int vertexType vertexType } func newNamedVertex(vertexType vertexType, namespace, name string, id int) *namedVertex { return &namedVertex{ vertexType: vertexType, name: name, namespace: namespace, id: id, } } func (n *namedVertex) ID() int { return n.id }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Mar 07 21:22:55 UTC 2024 - 17.5K bytes - Viewed (0) -
plugin/pkg/auth/authorizer/node/graph_test.go
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/types" ) func TestDeleteEdges_locked(t *testing.T) { cases := []struct { desc string fromType vertexType toType vertexType toNamespace string toName string start *Graph expect *Graph }{ { // single edge from a configmap to a node, will delete edge and orphaned configmap
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Sep 23 23:14:19 UTC 2022 - 12.3K bytes - Viewed (0)