Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 162 for newResource (0.16 sec)

  1. cmd/policy_test.go

    				policy.NewActionSet(policy.GetBucketLocationAction),
    				policy.NewResourceSet(policy.NewResource("mybucket")),
    				condition.NewFunctions(),
    			),
    			policy.NewBPStatement("",
    				policy.Allow,
    				policy.NewPrincipal("*"),
    				policy.NewActionSet(policy.PutObjectAction),
    				policy.NewResourceSet(policy.NewResource("mybucket/myobject*")),
    				condition.NewFunctions(),
    			),
    		},
    	}
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  2. maven-api-impl/src/main/java/org/apache/maven/internal/impl/model/DefaultModelPathTranslator.java

            List<T> newResources = null;
            if (resources != null) {
                for (int i = 0; i < resources.size(); i++) {
                    T resource = resources.get(i);
                    T newResource = mapper.apply(resource);
                    if (newResource != null) {
                        if (newResources == null) {
                            newResources = new ArrayList<>(resources);
                        }
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Fri Apr 12 10:50:18 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  3. maven-model-builder/src/main/java/org/apache/maven/model/path/DefaultModelPathTranslator.java

            List<T> newResources = null;
            if (resources != null) {
                for (int i = 0; i < resources.size(); i++) {
                    T resource = resources.get(i);
                    T newResource = mapper.apply(resource);
                    if (newResource != null) {
                        if (newResources == null) {
                            newResources = new ArrayList<>(resources);
                        }
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Mon Feb 26 17:04:44 UTC 2024
    - 5K bytes
    - Viewed (0)
  4. testing/internal-performance-testing/src/main/groovy/org/gradle/performance/WithExternalRepository.groovy

        abstract CrossVersionPerformanceTestRunner getRunner()
    
        WebAppContext createContext() {
            def context = new WebAppContext()
            context.setContextPath("/")
            context.setBaseResource(Resource.newResource(repoDir.getAbsolutePath()))
            context
        }
    
        void startServer() {
            try {
                serverPort = AvailablePortFinder.getNextAvailable(5000)
                server = new Server(serverPort)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  5. pkg/tracing/tracing.go

    	// case "http/json": // unsupported by library
    	default:
    		return nil, fmt.Errorf("unsupported otlp protocol %v", proto)
    	}
    	return otlptrace.New(context.Background(), c)
    }
    
    // newResource returns a resource describing this application.
    func newResource() *resource.Resource {
    	r, _ := resource.Merge(
    		resource.Default(),
    		resource.NewWithAttributes(
    			semconv.SchemaURL,
    			// TODO: consider adding attributes here.
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jul 26 01:07:39 UTC 2023
    - 3.9K bytes
    - Viewed (0)
  6. test/fixedbugs/issue59709.dir/cmem.go

    var G int
    
    type memResource struct {
    	x *int
    }
    
    func (m *memResource) initialize(*int) (res *int, err error) {
    	return nil, nil
    }
    
    func (m *memResource) teardown() {
    }
    
    func NewResource(cfg *aconfig.Config) *bresource.Resource[*int] {
    	res := &memResource{
    		x: &G,
    	}
    
    	return bresource.New("Mem", res.initialize, bresource.ResConfig{
    		// We always would want to retry the Memcache initialization.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 05 21:04:28 UTC 2023
    - 714 bytes
    - Viewed (0)
  7. subprojects/core/src/main/java/org/gradle/internal/model/StateTransitionControllerFactory.java

        public <T extends StateTransitionController.State> StateTransitionController<T> newController(DisplayName displayName, T initialState) {
            return new StateTransitionController<>(displayName, initialState, workerLeaseService.newResource());
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Mar 12 02:21:10 UTC 2024
    - 1.4K bytes
    - Viewed (0)
  8. test/fixedbugs/issue59709.dir/dcache.go

    type Module struct {
    	cfg  *aconfig.Config
    	err  error
    	last any
    }
    
    //go:noinline
    func TD() {
    }
    
    func (m *Module) Configure(x string) error {
    	if m.err != nil {
    		return m.err
    	}
    	res := cmem.NewResource(m.cfg)
    	m.last = res
    
    	return nil
    }
    
    func (m *Module) Blurb(x string, e error) bool {
    	res, ok := m.last.(*bresource.Resource[*int])
    	if !ok {
    		panic("bad")
    	}
    	return bresource.Should(res, e)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 05 21:04:28 UTC 2023
    - 626 bytes
    - Viewed (0)
  9. testing/internal-testing/src/main/groovy/org/gradle/test/fixtures/work/TestWorkerLeaseService.groovy

        void runAsWorkerThread(Runnable action) {
            action.run()
        }
    
        @Override
        void runAsUnmanagedWorkerThread(Runnable action) {
            action.run()
        }
    
        @Override
        Synchronizer newResource() {
            return new Synchronizer() {
                @Override
                void withLock(Runnable action) {
                    action.run()
                }
    
                @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  10. platforms/core-runtime/base-services/src/main/java/org/gradle/internal/work/WorkerLeaseService.java

         * and the method will block until the locks are reacquired.
         */
        void withoutLock(ResourceLock lock, Runnable runnable);
    
        Synchronizer newResource();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 06:02:18 UTC 2024
    - 3.4K bytes
    - Viewed (0)
Back to top