Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for getVertex_rlocked (1.92 sec)

  1. plugin/pkg/auth/authorizer/node/graph.go

    func (g *Graph) getOrCreateVertex_locked(vertexType vertexType, namespace, name string) *namedVertex {
    	if vertex, exists := g.getVertex_rlocked(vertexType, namespace, name); exists {
    		return vertex
    	}
    	return g.createVertex_locked(vertexType, namespace, name)
    }
    
    // must be called under a read lock
    func (g *Graph) getVertex_rlocked(vertexType vertexType, namespace, name string) (*namedVertex, bool) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 21:22:55 UTC 2024
    - 17.5K bytes
    - Viewed (0)
  2. plugin/pkg/auth/authorizer/node/node_authorizer.go

    	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)
    	}
    
    	startingVertex, exists := r.graph.getVertex_rlocked(startingType, startingNamespace, startingName)
    	if !exists {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 21:22:55 UTC 2024
    - 16K bytes
    - Viewed (0)
Back to top