Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 31 for ResourceLocation (0.24 sec)

  1. subprojects/core/src/main/java/org/gradle/groovy/scripts/TextResourceScriptSource.java

     * limitations under the License.
     */
    package org.gradle.groovy.scripts;
    
    import org.gradle.internal.DisplayName;
    import org.gradle.internal.resource.ResourceLocation;
    import org.gradle.internal.resource.TextResource;
    
    import java.net.URI;
    
    import static java.lang.Character.isJavaIdentifierPart;
    import static java.lang.Character.isJavaIdentifierStart;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Jul 07 10:24:10 UTC 2021
    - 3.6K bytes
    - Viewed (0)
  2. pkg/registry/core/node/storage/storage.go

    	}, nil
    }
    
    // Implement Redirector.
    var _ = rest.Redirector(&REST{})
    
    // ResourceLocation returns a URL to which one can send traffic for the specified node.
    func (r *REST) ResourceLocation(ctx context.Context, id string) (*url.URL, http.RoundTripper, error) {
    	return node.ResourceLocation(r, r.connection, r.proxyTransport, ctx, id)
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Feb 27 20:38:11 UTC 2023
    - 6.1K 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. platforms/software/resources/src/main/java/org/gradle/internal/resource/TextResource.java

    import java.nio.charset.Charset;
    
    /**
     * A {@code Resource} that has text content.
     */
    public interface TextResource extends Resource {
        /**
         * Returns the location of this resource.
         */
        ResourceLocation getLocation();
    
        /**
         * A long display name for this resource. The display name must use absolute paths and assume no context.
         */
        DisplayName getLongDisplayName();
    
        /**
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 12 19:38:08 UTC 2023
    - 4.5K bytes
    - Viewed (0)
  5. 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)
  6. platforms/software/resources/src/main/java/org/gradle/internal/resource/CachingTextResource.java

            return resource.getLongDisplayName();
        }
    
        @Override
        public DisplayName getShortDisplayName() {
            return resource.getShortDisplayName();
        }
    
        @Override
        public ResourceLocation getLocation() {
            return resource.getLocation();
        }
    
        @Override
        public File getFile() {
            return resource.getFile();
        }
    
        @Override
        public Charset getCharset() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 12 19:38:08 UTC 2023
    - 3K bytes
    - Viewed (0)
  7. platforms/software/resources/src/main/java/org/gradle/internal/resource/EmptyFileTextResource.java

            return true;
        }
    
        @Override
        public File getFile() {
            // Returns null as there is no file that contains this resource's contents,
            // however {@link ResourceLocation#getFile()} would still return the given `sourceFile`
            return null;
        }
    
        @Override
        public Charset getCharset() {
            return null;
        }
    
        @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 12 19:38:08 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  8. pkg/registry/core/pod/storage/storage.go

    	}, nil
    }
    
    // Implement Redirector.
    var _ = rest.Redirector(&REST{})
    
    // ResourceLocation returns a pods location from its HostIP
    func (r *REST) ResourceLocation(ctx context.Context, name string) (*url.URL, http.RoundTripper, error) {
    	return registrypod.ResourceLocation(ctx, r, r.proxyTransport, name)
    }
    
    // Implement ShortNamesProvider
    var _ rest.ShortNamesProvider = &REST{}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Mar 20 14:29:25 UTC 2023
    - 13.7K bytes
    - Viewed (0)
  9. pkg/registry/core/node/rest/proxy.go

    	proxyOpts, ok := opts.(*api.NodeProxyOptions)
    	if !ok {
    		return nil, fmt.Errorf("Invalid options object: %#v", opts)
    	}
    	location, transport, err := node.ResourceLocation(r.Store, r.Connection, r.ProxyTransport, ctx, 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: Tue Apr 19 13:59:13 UTC 2022
    - 3.1K bytes
    - Viewed (0)
  10. pkg/registry/core/service/proxy.go

    	proxyOpts, ok := opts.(*api.ServiceProxyOptions)
    	if !ok {
    		return nil, fmt.Errorf("Invalid options object: %#v", opts)
    	}
    	location, transport, err := r.Redirector.ResourceLocation(ctx, 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: Tue Apr 19 13:59:13 UTC 2022
    - 2.9K bytes
    - Viewed (0)
Back to top