Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 20 for Lc (0.11 sec)

  1. internal/bucket/lifecycle/lifecycle.go

    func ParseLifecycleConfigWithID(r io.Reader) (*Lifecycle, error) {
    	var lc Lifecycle
    	if err := xml.NewDecoder(r).Decode(&lc); err != nil {
    		return nil, err
    	}
    	// assign a unique id for rules with empty ID
    	for i := range lc.Rules {
    		if lc.Rules[i].ID == "" {
    			lc.Rules[i].ID = uuid.New().String()
    		}
    	}
    	return &lc, nil
    }
    
    // ParseLifecycleConfig - parses data in given reader to Lifecycle.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 01:11:10 GMT 2024
    - 17.5K bytes
    - Viewed (0)
  2. internal/http/check_port_others.go

    // It is possible to have a disconnected client in this tiny window of time.
    func CheckPortAvailability(host, port string, opts TCPOptions) (err error) {
    	lc := &net.ListenConfig{}
    
    	ctx, cancel := context.WithTimeout(context.Background(), time.Second)
    	defer cancel()
    
    	l, err := lc.Listen(ctx, "tcp", net.JoinHostPort(host, port))
    	if err != nil {
    		return err
    	}
    
    	// As we are able to listen on this network, the port is not in use.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 03 21:12:25 GMT 2023
    - 1.5K bytes
    - Viewed (0)
  3. cmd/xl-storage.go

    	}()
    
    	// Updates must be closed before we return.
    	defer xioutil.SafeClose(updates)
    	var lc *lifecycle.Lifecycle
    
    	// Check if the current bucket has a configured lifecycle policy
    	if globalLifecycleSys != nil {
    		lc, err = globalLifecycleSys.Get(cache.Info.Name)
    		if err == nil && lc.HasActiveRules("") {
    			cache.Info.lifeCycle = lc
    		}
    	}
    
    	// Check if the current bucket has replication configuration
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 84.7K bytes
    - Viewed (0)
  4. cmd/global-heal.go

    		var (
    			vc   *versioning.Versioning
    			lc   *lifecycle.Lifecycle
    			lr   objectlock.Retention
    			rcfg *replication.Config
    		)
    
    		if !isMinioMetaBucketName(bucket) {
    			vc, err = globalBucketVersioningSys.Get(bucket)
    			if err != nil {
    				retErr = err
    				healingLogIf(ctx, err)
    				continue
    			}
    			// Check if the current bucket has a configured lifecycle policy
    			lc, err = globalLifecycleSys.Get(bucket)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Apr 26 06:32:14 GMT 2024
    - 15K bytes
    - Viewed (1)
  5. internal/bucket/lifecycle/lifecycle_test.go

    				NumVersions: 1,
    			},
    			want: 0,
    			lc:   lc,
    		},
    	}
    	for i, tc := range tests {
    		t.Run(fmt.Sprintf("test-%d", i+1), func(t *testing.T) {
    			if got := tc.lc.FilterRules(tc.opts); len(got) != tc.want {
    				t.Fatalf("Expected %d rules to match but got %d", tc.want, len(got))
    			}
    			w := httptest.NewRecorder()
    			tc.lc.SetPredictionHeaders(w, tc.opts)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 01:11:10 GMT 2024
    - 53.2K bytes
    - Viewed (0)
  6. cmd/object-handlers-common.go

    			w.Header()[xhttp.AmzDeleteMarker] = []string{strconv.FormatBool(objInfo.DeleteMarker)}
    		}
    	}
    
    	if objInfo.Bucket != "" && objInfo.Name != "" {
    		if lc, err := globalLifecycleSys.Get(objInfo.Bucket); err == nil && !delete {
    			lc.SetPredictionHeaders(w, objInfo.ToLifecycleOpts())
    		}
    	}
    	hash.AddChecksumHeader(w, objInfo.decryptChecksums(0))
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Apr 09 08:17:49 GMT 2024
    - 14.6K bytes
    - Viewed (0)
  7. cmd/api-headers.go

    		// https://docs.aws.amazon.com/AmazonS3/latest/API/API_HeadObject.html#API_HeadObject_ResponseSyntax
    		w.Header()[xhttp.AmzStorageClass] = []string{objInfo.TransitionedObject.Tier}
    	}
    
    	if lc, err := globalLifecycleSys.Get(objInfo.Bucket); err == nil {
    		lc.SetPredictionHeaders(w, objInfo.ToLifecycleOpts())
    	}
    
    	if v, ok := objInfo.UserDefined[ReservedMetadataPrefix+"compression"]; ok {
    		if i := strings.LastIndexByte(v, '/'); i >= 0 {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 6.9K bytes
    - Viewed (1)
  8. cmd/metacache-set.go

    	lc, _ := globalLifecycleSys.Get(o.Bucket)
    	vc, _ := globalBucketVersioningSys.Get(o.Bucket)
    
    	// Check if bucket is object locked.
    	rcfg, _ := globalBucketObjectLockSys.Get(o.Bucket)
    	replCfg, _, _ := globalBucketMetadataSys.GetReplicationConfig(ctx, o.Bucket)
    	tgts, _ := globalBucketTargetSys.ListBucketTargets(ctx, o.Bucket)
    	o.Lifecycle = lc
    	o.Versioning = vc
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 17:59:08 GMT 2024
    - 30.4K bytes
    - Viewed (0)
  9. cmd/data-scanner.go

    		i.healReplication(ctx, o, oi.Clone(), sizeS)
    		done()
    	}
    	return false, size
    }
    
    func evalActionFromLifecycle(ctx context.Context, lc lifecycle.Lifecycle, lr lock.Retention, rcfg *replication.Config, obj ObjectInfo) lifecycle.Event {
    	event := lc.Eval(obj.ToLifecycleOpts())
    	if serverDebugLog {
    		console.Debugf(applyActionsLogPrefix+" lifecycle: Secondary scan: %v\n", event.Action)
    	}
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri May 03 11:18:58 GMT 2024
    - 47.6K bytes
    - Viewed (0)
  10. cmd/testdata/xl-meta-merge.zip

    FjDyjØlÖ}yˆyvMVEôPªQSp_YeU\c² +»oe\ûwÀmapgy _sT^w\†1n{DãÌ|f~ÄÌž®’9 ‚¬ l co߀NrG|ûU]IzY¼uòYx}nôÝÌ ×ûZeñ ÿ÷Ûî½t`fVIItiR}^gl~†÷á0û#<À6 ïè€ût¦[Õ:ÌgEoS_ïÀÌÏÌ îØÁü Ñeßâ )1 =ˆE~PŒe}xûc€BTuoªF÷_x]Y³qt·ftoe£ýôû j†Yê0iy)=ôæHsL{¦S`yNGQ¸fXXæà _^öæ|IK¼Qò!`I =ô2¾k]lc{ ² }Eò%ò3VGX~„÷}la{—ÕrqNdï³kûxauÔhhjÖ^ rk yT rkD~wc÷kVBŽsVGÊÜ5¾MISò[¾FKêMUpܤro_zªAÖGrïÊLSKTá>þÕßÜçÑÿÌëÙÆ<×ÛÒÇñKr÷qnF˜„!ñm¾OGò†VKyV„Ühm†ìIxvUc}gòzŠYSqTO¬v`w’‹¯¦§‘ü[ 8áñ.}¨ò=ò„Ek@ïjrsJ¾Aeæ©zãqmp¨o|þO{xˆæRCÙ]eZ¢LGSìܲwònoŠ—U`= qÖ\ H¬†:ñyòz€i¦Kct¦ævo}...
    ZIP Archive
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Mar 08 17:50:48 GMT 2024
    - 30.2K bytes
    - Viewed (0)
Back to top