- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 31 for ResourceLocation (0.23 sec)
-
platforms/software/resources/src/main/java/org/gradle/internal/resource/UriTextResource.java
@Override public Charset getCharset() { if (getFile() != null) { return DEFAULT_ENCODING; } return null; } @Override public ResourceLocation getLocation() { return new UriResourceLocation(); } public static Charset extractCharacterEncoding(String contentType, Charset defaultEncoding) { if (contentType == null) {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Oct 12 19:38:08 UTC 2023 - 11.8K bytes - Viewed (0) -
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) -
pkg/registry/core/node/storage/storage_test.go
if err := storage.Storage.Create(ctx, key, testCase.node, nil, 0, false); err != nil { t.Fatalf("unexpected error: %v", err) } redirector := rest.Redirector(storage) location, _, err := redirector.ResourceLocation(ctx, testCase.query) if err != nil { if !testCase.err { t.Fatalf("Unexpected error: %v", err) } return } else if testCase.err { t.Fatalf("Expected error but got none")
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Jul 01 12:49:38 UTC 2023 - 6.8K bytes - Viewed (0) -
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) -
staging/src/k8s.io/apiserver/pkg/registry/rest/rest.go
Destroy() } // Redirector know how to return a remote resource's location. type Redirector interface { // ResourceLocation should return the remote location of the given resource, and an optional transport to use to request it, or an error. ResourceLocation(ctx context.Context, id string) (remoteLocation *url.URL, transport http.RoundTripper, err error) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Mar 20 14:29:25 UTC 2023 - 18.6K bytes - Viewed (0) -
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) -
platforms/jvm/language-java/src/integTest/groovy/org/gradle/api/tasks/compile/IsolatingIncrementalAnnotationProcessingIntegrationTest.groovy
private static HelperProcessorFixture writingResourcesTo(String location) { def helperProcessorFixture = new HelperProcessorFixture() helperProcessorFixture.writeResources = true helperProcessorFixture.resourceLocation = location return helperProcessorFixture } private HelperProcessorFixture helperProcessor @Override def setup() {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Aug 28 11:40:18 UTC 2023 - 20.1K bytes - Viewed (0) -
platforms/jvm/language-java/src/integTest/groovy/org/gradle/api/tasks/compile/AggregatingIncrementalAnnotationProcessingIntegrationTest.groovy
private static ServiceRegistryProcessorFixture writingResourcesTo(String location) { def serviceRegistryProcessor = new ServiceRegistryProcessorFixture() serviceRegistryProcessor.resourceLocation = location return serviceRegistryProcessor } @Override def setup() { withProcessor(writingResourcesTo(StandardLocation.CLASS_OUTPUT.toString())) }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Aug 29 15:12:07 UTC 2023 - 18.5K bytes - Viewed (0) -
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) -
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)