Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for getRequestAttributes (0.2 sec)

  1. pkg/kubelet/server/auth.go

    	nodeName types.NodeName
    }
    
    func isSubpath(subpath, path string) bool {
    	path = strings.TrimSuffix(path, "/")
    	return subpath == path || (strings.HasPrefix(subpath, path) && subpath[len(path)] == '/')
    }
    
    // GetRequestAttributes populates authorizer attributes for the requests to the kubelet API.
    // Default attributes are: {apiVersion=v1,verb=<http verb from request>,resource=nodes,name=<node name>,subresource=proxy}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Feb 19 18:09:38 UTC 2024
    - 4K bytes
    - Viewed (0)
  2. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/ivyservice/resolveengine/artifact/DefaultLocalFileDependencyBackedArtifactSet.java

                calculatedValueContainerFactory,
                allowNoMatchingVariants
            );
            this.requestAttributes = requestAttributes;
        }
    
        @Override
        public ImmutableAttributes getRequestAttributes() {
            return requestAttributes;
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  3. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/ivyservice/resolveengine/artifact/FileDependencyArtifactSet.java

                fileDependency,
                spec.getComponentFilter(),
                variantSelector,
                artifactTypeRegistry,
                calculatedValueContainerFactory,
                spec.getRequestAttributes(),
                spec.getAllowNoMatchingVariants()
            );
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  4. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/ivyservice/resolveengine/artifact/VariantResolvingArtifactSet.java

                try {
                    if (!spec.getSelectFromAllVariants()) {
                        variants = ownArtifacts.get();
                    } else {
                        variants = getArtifactVariantsForReselection(spec.getRequestAttributes());
                    }
                } catch (Exception e) {
                    return new BrokenResolvedArtifactSet(e);
                }
    
                if (variants.isEmpty() && spec.getAllowNoMatchingVariants()) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 15 17:38:42 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  5. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/ivyservice/resolveengine/artifact/ArtifactSelectionSpec.java

            this.sortOrder = sortOrder;
        }
    
        /**
         * The request attributes used to determine which variant of each graph node to select.
         */
        public ImmutableAttributes getRequestAttributes() {
            return requestAttributes;
        }
    
        /**
         * Filters the selected artifacts to only contain those which originated from a component matching this filter.
         */
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sun Jan 21 03:08:51 UTC 2024
    - 3K bytes
    - Viewed (0)
  6. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/ivyservice/resolveengine/artifact/LocalFileDependencyBackedArtifactSet.java

            return variantSelector;
        }
    
        public boolean getAllowNoMatchingVariants() {
            return allowNoMatchingVariants;
        }
    
        public abstract ImmutableAttributes getRequestAttributes();
    
        @Override
        public void visit(Visitor listener) {
            FileCollectionStructureVisitor.VisitType visitType = listener.prepareForVisit(this);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Nov 22 04:22:29 UTC 2023
    - 13.4K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiserver/pkg/authorization/authorizer/interfaces.go

    }
    
    // RequestAttributesGetter provides a function that extracts Attributes from an http.Request
    type RequestAttributesGetter interface {
    	GetRequestAttributes(user.Info, *http.Request) Attributes
    }
    
    // AttributesRecord implements Attributes interface.
    type AttributesRecord struct {
    	User            user.Info
    	Verb            string
    	Namespace       string
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 06 14:36:14 UTC 2023
    - 4.8K bytes
    - Viewed (0)
  8. pkg/kubelet/server/auth_test.go

    			getter := NewNodeAuthorizerAttributesGetter(authzTestNodeName)
    
    			req, err := http.NewRequest(test.Method, "https://localhost:1234"+test.Path, nil)
    			require.NoError(t, err)
    			attrs := getter.GetRequestAttributes(AuthzTestUser(), req)
    
    			test.AssertAttributes(t, attrs)
    		})
    	}
    }
    
    const (
    	authzTestNodeName = "test"
    	authzTestUserName = "phibby"
    )
    
    type AuthzTestCase struct {
    	Method, Path string
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Feb 19 18:09:38 UTC 2024
    - 5K bytes
    - Viewed (0)
  9. platforms/core-configuration/dependency-management-serialization-codecs/src/main/kotlin/org/gradle/internal/serialize/codecs/dm/LocalFileDependencyBackedArtifactSetCodec.kt

        variantSelector,
        artifactTypeRegistry,
        calculatedValueContainerFactory,
        allowNoMatchingVariants
    ) {
        // These attributes are ignored by the fixed artifact variant selectors
        override fun getRequestAttributes(): ImmutableAttributes = ImmutableAttributes.EMPTY
    }
    
    
    private
    class RecordingVariantSet(
        private val source: FileCollectionInternal,
        private val attributes: ImmutableAttributes
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jun 04 18:56:44 UTC 2024
    - 17.5K bytes
    - Viewed (0)
  10. pkg/kubelet/server/server_test.go

    }
    
    func (f *fakeAuth) AuthenticateRequest(req *http.Request) (*authenticator.Response, bool, error) {
    	return f.authenticateFunc(req)
    }
    func (f *fakeAuth) GetRequestAttributes(u user.Info, req *http.Request) authorizer.Attributes {
    	return f.attributesFunc(u, req)
    }
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 51.5K bytes
    - Viewed (0)
Back to top