Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for newObjectLayerFn (0.21 sec)

  1. cmd/metrics-v2.go

    	g.metricsCache = cachevalue.NewFromFunc(g.cacheInterval,
    		cachevalue.Opts{ReturnLastGood: true},
    		func() ([]MetricV2, error) {
    			if g.metricsGroupOpts.dependGlobalObjectAPI {
    				objLayer := newObjectLayerFn()
    				// Service not initialized yet
    				if objLayer == nil {
    					return []MetricV2{}, nil
    				}
    			}
    			if g.metricsGroupOpts.dependGlobalAuthNPlugin {
    				if globalAuthNPlugin == nil {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 25 22:01:31 GMT 2024
    - 132.6K bytes
    - Viewed (0)
  2. cmd/site-replication.go

    	sdata := srStateData{
    		Version: srStateFormatVersion1,
    		SRState: srStateV1(state),
    	}
    	buf, err := json.Marshal(sdata)
    	if err != nil {
    		return err
    	}
    
    	objAPI := newObjectLayerFn()
    	if objAPI == nil {
    		return errServerNotInitialized
    	}
    
    	if err = saveConfig(ctx, objAPI, getSRStateFilePath(), buf); err != nil {
    		return err
    	}
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 01:09:56 GMT 2024
    - 184.2K bytes
    - Viewed (1)
  3. cmd/admin-handlers.go

    		return
    	}
    	writeSuccessResponseJSON(w, resp)
    }
    
    func getPoolsInfo(ctx context.Context, allDisks []madmin.Disk) (map[int]map[int]madmin.ErasureSetInfo, error) {
    	objectAPI := newObjectLayerFn()
    	if objectAPI == nil {
    		return nil, errServerNotInitialized
    	}
    
    	z, ok := objectAPI.(*erasureServerPools)
    	if !ok {
    		return nil, errServerNotInitialized
    	}
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Apr 29 17:39:04 GMT 2024
    - 97.8K bytes
    - Viewed (2)
  4. cmd/bucket-replication.go

    // a synchronous manner.
    func mustReplicate(ctx context.Context, bucket, object string, mopts mustReplicateOptions) (dsc ReplicateDecision) {
    	// object layer not initialized we return with no decision.
    	if newObjectLayerFn() == nil {
    		return
    	}
    
    	// Disable server-side replication on object prefixes which are excluded
    	// from versioning via the MinIO bucket versioning extension.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 01:09:56 GMT 2024
    - 112.2K bytes
    - Viewed (1)
Back to top