Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 42 for rules (0.25 sec)

  1. cmd/batch-expire.go

    			}
    		}
    		return err
    	}
    
    	if len(r.Rules) > maxBatchRules {
    		return batchExpireJobError{
    			Code:           "InvalidArgument",
    			Description:    "Too many rules. Batch expire job can't have more than 100 rules",
    			HTTPStatusCode: http.StatusBadRequest,
    		}
    	}
    
    	for _, rule := range r.Rules {
    		if err := rule.Validate(); err != nil {
    			return batchExpireJobError{
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 21K bytes
    - Viewed (1)
  2. cni/pkg/iptables/iptables.go

    	// Append our rules here
    	builder := cfg.appendHostRules(hostSNATIP, hostSNATIPV6)
    
    	log.Info("Adding host netnamespace iptables rules")
    
    	if err := cfg.executeCommands(builder); err != nil {
    		log.Errorf("failed to add host netnamespace iptables rules: %v", err)
    		return err
    	}
    	return nil
    }
    
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Tue May 07 19:54:50 GMT 2024
    - 19.7K bytes
    - Viewed (0)
  3. cni/pkg/nodeagent/net.go

    	}
    	// pod is removed from the mesh, but is still running. remove iptables rules
    	log.Debugf("calling DeleteInpodRules.")
    	if err := s.netnsRunner(openNetns, func() error { return s.iptablesConfigurator.DeleteInpodRules() }); err != nil {
    		log.Errorf("failed to delete inpod rules %v", err)
    		return fmt.Errorf("failed to delete inpod rules %w", err)
    	}
    
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Tue Apr 30 22:24:38 GMT 2024
    - 12.2K bytes
    - Viewed (1)
  4. internal/bucket/lifecycle/lifecycle.go

    		return nil
    	}
    	var rules []Rule
    	for _, rule := range lc.Rules {
    		if rule.Status == Disabled {
    			continue
    		}
    		if !strings.HasPrefix(obj.Name, rule.GetPrefix()) {
    			continue
    		}
    		if !rule.Filter.TestTags(obj.UserTags) {
    			continue
    		}
    		if !obj.DeleteMarker && !rule.Filter.BySize(obj.Size) {
    			continue
    		}
    		rules = append(rules, rule)
    	}
    	return rules
    }
    
    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)
  5. internal/bucket/replication/replication_test.go

    		{ObjectOpts{Name: "xyz/c3test", DeleteMarker: true, OpType: DeleteReplicationType}, cfgs[2], true},                                      // 24. matches rule 2 - DeleteMarker replication allowed by rule
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Mar 28 17:44:56 GMT 2024
    - 32.5K bytes
    - Viewed (0)
  6. cmd/batch-expire_gen.go

    				return
    			}
    		case "Rules":
    			var zb0002 uint32
    			zb0002, err = dc.ReadArrayHeader()
    			if err != nil {
    				err = msgp.WrapError(err, "Rules")
    				return
    			}
    			if cap(z.Rules) >= int(zb0002) {
    				z.Rules = (z.Rules)[:zb0002]
    			} else {
    				z.Rules = make([]BatchJobExpireFilter, zb0002)
    			}
    			for za0001 := range z.Rules {
    				err = z.Rules[za0001].DecodeMsg(dc)
    				if err != nil {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sat Dec 02 10:51:33 GMT 2023
    - 19.8K bytes
    - Viewed (0)
  7. src/bytes/bytes.go

    		// returning nil instead of empty slice if all spaces.
    		return nil
    	}
    	return s[start:stop]
    }
    
    // Runes interprets s as a sequence of UTF-8-encoded code points.
    // It returns a slice of runes (Unicode code points) equivalent to s.
    func Runes(s []byte) []rune {
    	t := make([]rune, utf8.RuneCount(s))
    	i := 0
    	for len(s) > 0 {
    		r, l := utf8.DecodeRune(s)
    		t[i] = r
    		i++
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Feb 19 19:51:15 GMT 2024
    - 33.8K bytes
    - Viewed (0)
  8. cni/pkg/nodeagent/net_test.go

    	err := netServer.DelPodFromMesh(ctx, pod)
    	assert.NoError(t, err)
    	assert.Equal(t, ztunnelServer.deletedPods.Load(), 1)
    	// with delete iptables is not called, as there is no need to delete the iptables rules
    	// from a pod that's gone from the cluster.
    	assert.Equal(t, nlDeps.DelInpodMarkIPRuleCnt.Load(), 0)
    	assert.Equal(t, nlDeps.DelLoopbackRoutesCnt.Load(), 0)
    	// make sure the uid was taken from cache and netns closed
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Tue Apr 30 22:24:38 GMT 2024
    - 16.4K bytes
    - Viewed (0)
  9. cmd/erasure-server-pool-decom.go

    			var decommissioned, expired int
    			for _, version := range fivs.Versions {
    				stopFn := globalDecommissionMetrics.log(decomMetricDecommissionObject, idx, bi.Name, version.Name, version.VersionID)
    				// Apply lifecycle rules on the objects that are expired.
    				if filterLifecycle(bi.Name, version.Name, version) {
    					expired++
    					decommissioned++
    					stopFn(errors.New("ILM expired object/version will be skipped"))
    					continue
    				}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 15:18:21 GMT 2024
    - 41.5K bytes
    - Viewed (1)
  10. cmd/bucket-lifecycle.go

    func validateTransitionTier(lc *lifecycle.Lifecycle) error {
    	for _, rule := range lc.Rules {
    		if rule.Transition.StorageClass != "" {
    			if valid := globalTierConfigMgr.IsTierValid(rule.Transition.StorageClass); !valid {
    				return errInvalidStorageClass
    			}
    		}
    		if rule.NoncurrentVersionTransition.StorageClass != "" {
    			if valid := globalTierConfigMgr.IsTierValid(rule.NoncurrentVersionTransition.StorageClass); !valid {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Apr 17 05:09:58 GMT 2024
    - 33.1K bytes
    - Viewed (0)
Back to top