Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for ResourceLocation (0.24 sec)

  1. subprojects/core/src/main/java/org/gradle/configuration/BuildOperationScriptPlugin.java

            private final UserCodeApplicationId applicationId;
    
            private OperationDetails(File file, ResourceLocation resourceLocation, @Nullable ConfigurationTargetIdentifier identifier, UserCodeApplicationId applicationId) {
                this.file = file;
                this.resourceLocation = resourceLocation;
                this.identifier = identifier;
                this.applicationId = applicationId;
            }
    
            @Override
            @Nullable
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 08 13:46:07 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  2. subprojects/core/src/test/groovy/org/gradle/configuration/BuildOperationScriptPluginTest.groovy

    import org.gradle.internal.Describables
    import org.gradle.internal.code.DefaultUserCodeApplicationContext
    import org.gradle.internal.operations.TestBuildOperationRunner
    import org.gradle.internal.resource.ResourceLocation
    import org.gradle.internal.resource.TextResource
    import spock.lang.Specification
    
    class BuildOperationScriptPluginTest extends Specification {
    
        def buildOperationRunner = new TestBuildOperationRunner()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 08 13:46:07 UTC 2024
    - 3K bytes
    - Viewed (0)
  3. subprojects/core/src/main/java/org/gradle/api/internal/initialization/DefaultScriptHandler.java

    import org.gradle.groovy.scripts.ScriptSource;
    import org.gradle.internal.Factory;
    import org.gradle.internal.classloader.ClasspathUtil;
    import org.gradle.internal.classpath.ClassPath;
    import org.gradle.internal.resource.ResourceLocation;
    import org.gradle.util.internal.ConfigureUtil;
    
    import javax.inject.Inject;
    import java.io.File;
    import java.net.URI;
    
    import static java.lang.Boolean.getBoolean;
    
    @NonExtensible
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Feb 22 17:56:17 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  4. pkg/registry/core/node/strategy.go

    	return pkgstorage.SelectionPredicate{
    		Label:    label,
    		Field:    field,
    		GetAttrs: GetAttrs,
    	}
    }
    
    // ResourceLocation returns a URL and transport which one can use to send traffic for the specified node.
    func ResourceLocation(getter ResourceGetter, connection client.ConnectionInfoGetter, proxyTransport http.RoundTripper, ctx context.Context, id string) (*url.URL, http.RoundTripper, error) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 13 23:06:39 UTC 2024
    - 9K bytes
    - Viewed (0)
  5. pkg/registry/core/pod/strategy.go

    	if pod == nil {
    		return ""
    	}
    	if len(pod.Status.PodIPs) > 0 {
    		return pod.Status.PodIPs[0].IP
    	}
    
    	return ""
    }
    
    // ResourceLocation returns a URL to which one can send traffic for the specified pod.
    func ResourceLocation(ctx context.Context, getter ResourceGetter, rt http.RoundTripper, id string) (*url.URL, http.RoundTripper, error) {
    	// Allow ID as "podname" or "podname:port" or "scheme:podname:port".
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 17:51:48 UTC 2024
    - 29.8K bytes
    - Viewed (0)
  6. pkg/registry/core/pod/rest/subresources.go

    	proxyOpts, ok := opts.(*api.PodProxyOptions)
    	if !ok {
    		return nil, fmt.Errorf("Invalid options object: %#v", opts)
    	}
    	location, transport, err := pod.ResourceLocation(ctx, r.Store, r.ProxyTransport, id)
    	if err != nil {
    		return nil, err
    	}
    	location.Path = net.JoinPreservingTrailingSlash(location.Path, proxyOpts.Path)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Mar 04 19:10:30 UTC 2024
    - 9.2K bytes
    - Viewed (0)
  7. pkg/registry/core/service/storage/storage.go

    		if success {
    			txn.Commit()
    		} else {
    			txn.Revert()
    		}
    	}
    
    	return finish, nil
    }
    
    // ResourceLocation returns a URL to which one can send traffic for the specified service.
    func (r *REST) ResourceLocation(ctx context.Context, id string) (*url.URL, http.RoundTripper, error) {
    	// Allow ID as "svcname", "svcname:port", or "scheme:svcname:port".
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 11 13:09:33 UTC 2024
    - 22.3K bytes
    - Viewed (0)
  8. pkg/registry/core/pod/storage/storage_test.go

    		if err := storage.Storage.Create(ctx, key, &tc.pod, nil, 0, false); err != nil {
    			t.Fatalf("unexpected error: %v", err)
    		}
    
    		redirector := rest.Redirector(storage)
    		location, _, err := redirector.ResourceLocation(ctx, tc.query)
    		if err != nil {
    			t.Errorf("Unexpected error: %v", err)
    		}
    		if location == nil {
    			t.Errorf("Unexpected nil: %v", location)
    		}
    
    		if location.Scheme != "" {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Feb 29 07:18:44 UTC 2024
    - 38.8K bytes
    - Viewed (0)
  9. pkg/registry/core/service/storage/storage_test.go

    		err:   true,
    	}, {
    		query: "non-existent",
    		err:   true,
    	}}
    	for _, tc := range cases {
    		t.Run(tc.query, func(t *testing.T) {
    			location, _, err := redirector.ResourceLocation(ctx, tc.query)
    			if tc.err == false && err != nil {
    				t.Fatalf("unexpected error: %v", err)
    			}
    			if tc.err && err == nil {
    				t.Fatalf("unexpected success")
    			}
    			if !tc.err {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 440.2K bytes
    - Viewed (0)
  10. testing/architecture-test/src/changes/archunit-store/internal-api-nullability.txt

    Class <org.gradle.internal.resource.ResourceLocation> is not annotated (directly or via its package) with @org.gradle.api.NonNullApi in (ResourceLocation.java:0)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jun 11 09:51:15 UTC 2024
    - 967.9K bytes
    - Viewed (0)
Back to top