Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 15 for prie (0.12 sec)

  1. tests/hooks_test.go

    	// will set all product's price to last product's price + 10
    	for idx, value := range []int64{410, 410, 410} {
    		if products[idx].Price != value {
    			t.Errorf("invalid price for product #%v, expects: %v, got %v", idx, value, products[idx].Price)
    		}
    	}
    
    	products2 := []Product3{
    		{Name: "Product-1", Price: 100},
    		{Name: "Product-2", Price: 200},
    		{Name: "Product-3", Price: 300},
    	}
    
    	DB.Create(&products2)
    
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Sat Feb 18 01:20:29 GMT 2023
    - 15.9K bytes
    - Viewed (0)
  2. cmd/object-api-utils.go

    		if ok := wildcard.MatchSimple(pattern, matchStr); ok {
    			return true
    		}
    	}
    	return false
    }
    
    // Returns the part file name which matches the partNumber and etag.
    func getPartFile(entriesTrie *trie.Trie, partNumber int, etag string) (partFile string) {
    	for _, match := range entriesTrie.PrefixMatch(fmt.Sprintf("%.5d.%s.", partNumber, etag)) {
    		partFile = match
    		break
    	}
    	return partFile
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Mar 11 11:55:34 GMT 2024
    - 35.6K bytes
    - Viewed (1)
  3. internal/hash/reader.go

    }
    
    // Size returns the absolute number of bytes the Reader
    // will return during reading. It returns -1 for unlimited
    // data.
    func (r *Reader) Size() int64 { return r.size }
    
    // ActualSize returns the pre-modified size of the object.
    // DecompressedSize - For compressed objects.
    func (r *Reader) ActualSize() int64 { return r.actualSize }
    
    // ETag returns the ETag computed by an underlying etag.Tagger.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Sep 18 17:00:54 GMT 2023
    - 10.8K bytes
    - Viewed (0)
  4. cni/test/install_cni.go

    	"istio.io/istio/cni/pkg/util"
    	"istio.io/istio/pkg/file"
    	"istio.io/istio/pkg/slices"
    	"istio.io/istio/pkg/test/env"
    	"istio.io/istio/pkg/test/util/retry"
    )
    
    const (
    	cniConfSubDir    = "/testdata/pre/"
    	k8sSvcAcctSubDir = "/testdata/k8s_svcacct/"
    
    	defaultFileMode = 0o644
    
    	cniConfName          = "CNI_CONF_NAME"
    	chainedCNIPluginName = "CHAINED_CNI_PLUGIN"
    	cniNetworkConfigName = "CNI_NETWORK_CONFIG"
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Jan 26 20:34:28 GMT 2024
    - 12.5K bytes
    - Viewed (0)
  5. internal/rest/client.go

    	if c.TraceOutput != nil && resp.StatusCode != http.StatusOK {
    		c.dumpHTTP(req, resp)
    	}
    
    	if resp.StatusCode != http.StatusOK {
    		// If server returns 412 pre-condition failed, it would
    		// mean that authentication succeeded, but another
    		// side-channel check has failed, we shall take
    		// the client offline in such situations.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 14.4K bytes
    - Viewed (0)
  6. cmd/bucket-object-lock.go

    				days, objRetention.RetainUntilDate.Time, objRetention.Mode,
    				false, r, cred, owner)
    			if apiErr == ErrAccessDenied {
    				return errAuthentication
    			}
    			return nil
    		}
    		return nil
    	} // No pre-existing retention metadata present.
    
    	apiErr := isPutRetentionAllowed(oi.Bucket, oi.Name,
    		days, objRetention.RetainUntilDate.Time,
    		objRetention.Mode, byPassSet, r, cred, owner)
    	if apiErr == ErrAccessDenied {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Apr 22 17:49:30 GMT 2024
    - 13.2K bytes
    - Viewed (0)
  7. cmd/metacache-server-pool.go

    		return entries, err
    	}
    
    	// Marker points to before the prefix, just ignore it.
    	if o.Marker < o.Prefix {
    		o.Marker = ""
    	}
    
    	// Marker is set validate pre-condition.
    	if o.Marker != "" && o.Prefix != "" {
    		// Marker not common with prefix is not implemented. Send an empty response
    		if !HasPrefix(o.Marker, o.Prefix) {
    			return entries, io.EOF
    		}
    	}
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 12.8K bytes
    - Viewed (0)
  8. cmd/streaming-signature-v4.go

    	n += cr.offset
    	return n, err
    }
    
    // readTrailers will read all trailers and populate cr.trailers with actual values.
    func (cr *s3ChunkedReader) readTrailers() error {
    	if cr.debug {
    		fmt.Printf("pre trailer sig: %s\n", cr.seedSignature)
    	}
    	var valueBuffer bytes.Buffer
    	// Read value
    	for {
    		v, err := cr.reader.ReadByte()
    		if err != nil {
    			if err == io.EOF {
    				return io.ErrUnexpectedEOF
    			}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 18.2K bytes
    - Viewed (0)
  9. cmd/admin-bucket-handlers.go

    		ops = madmin.GetTargetUpdateOps(r.Form)
    	} else {
    		var exists bool // true if arn exists
    		target.Arn, exists = globalBucketTargetSys.getRemoteARN(bucket, &target, "")
    		if exists && target.Arn != "" { // return pre-existing ARN
    			data, err := json.Marshal(target.Arn)
    			if err != nil {
    				writeErrorResponseJSON(ctx, w, toAdminAPIErr(ctx, err), r.URL)
    				return
    			}
    			// Write success response.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 01:09:56 GMT 2024
    - 32.5K bytes
    - Viewed (0)
  10. istioctl/pkg/ztunnelconfig/ztunnelconfig.go

    	}
    	return debug, err
    }
    
    func setupConfigdumpZtunnelConfigWriter(debug []byte, out io.Writer) (*ztunnelDump.ConfigWriter, error) {
    	cw := &ztunnelDump.ConfigWriter{Stdout: out, FullDump: debug}
    	err := cw.Prime(debug)
    	if err != nil {
    		return nil, err
    	}
    	return cw, nil
    }
    
    func setupFileZtunnelConfigdumpWriter(filename string, out io.Writer) (*ztunnelDump.ConfigWriter, error) {
    	data, err := readFile(filename)
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Wed May 01 13:11:40 GMT 2024
    - 22.2K bytes
    - Viewed (0)
Back to top