Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 63 for encloses (0.16 sec)

  1. cmd/erasure-encode.go

    	return fmt.Errorf("%w (offline-disks=%d/%d)", writeErr, countErrs(p.errs, errDiskNotFound), len(p.writers))
    }
    
    // Encode reads from the reader, erasure-encodes the data and writes to the writers.
    func (e *Erasure) Encode(ctx context.Context, src io.Reader, writers []io.Writer, buf []byte, quorum int) (total int64, err error) {
    	writer := &parallelWriter{
    		writers:     writers,
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Jan 31 02:11:45 GMT 2024
    - 3K bytes
    - Viewed (0)
  2. internal/s3select/json/record.go

    	}
    
    	name = strings.ReplaceAll(name, "*", "__ALL__")
    	r.KVS = append(r.KVS, jstream.KV{Key: name, Value: v})
    	return r, nil
    }
    
    // WriteCSV - encodes to CSV data.
    func (r *Record) WriteCSV(writer io.Writer, opts sql.WriteCSVOpts) error {
    	var csvRecord []string
    	for _, kv := range r.KVS {
    		var columnValue string
    		switch val := kv.Value.(type) {
    		case float64:
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Feb 25 20:31:19 GMT 2022
    - 5.2K bytes
    - Viewed (0)
  3. cmd/api-headers.go

    		w.Header().Set(xhttp.AmzBucketRegion, region)
    	}
    	w.Header().Set(xhttp.AcceptRanges, "bytes")
    
    	// Remove sensitive information
    	crypto.RemoveSensitiveHeaders(w.Header())
    }
    
    // Encodes the response headers into XML format.
    func encodeResponse(response interface{}) []byte {
    	var buf bytes.Buffer
    	buf.WriteString(xml.Header)
    	if err := xml.NewEncoder(&buf).Encode(response); err != nil {
    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)
  4. internal/bucket/object/lock/lock.go

    	retDate, err := amztime.ISO8601Parse(dateStr)
    	if err != nil {
    		return ErrInvalidRetentionDate
    	}
    
    	*rDate = RetentionDate{retDate}
    	return nil
    }
    
    // MarshalXML encodes expiration date if it is non-zero and encodes
    // empty string otherwise
    func (rDate RetentionDate) MarshalXML(e *xml.Encoder, startElement xml.StartElement) error {
    	if rDate.IsZero() {
    		return nil
    	}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 17.1K bytes
    - Viewed (0)
  5. internal/config/lambda/event/targetid.go

    func (tid TargetID) String() string {
    	return tid.ID + ":" + tid.Name
    }
    
    // ToARN - converts to ARN.
    func (tid TargetID) ToARN(region string) ARN {
    	return ARN{TargetID: tid, region: region}
    }
    
    // MarshalJSON - encodes to JSON data.
    func (tid TargetID) MarshalJSON() ([]byte, error) {
    	return json.Marshal(tid.String())
    }
    
    // UnmarshalJSON - decodes JSON data.
    func (tid *TargetID) UnmarshalJSON(data []byte) error {
    	var s string
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Mar 07 16:12:41 GMT 2023
    - 1.8K bytes
    - Viewed (0)
  6. internal/s3select/simdj/reader.go

    			return nil, errJSONParsingError(*r.err)
    		}
    		return nil, io.EOF
    	}
    	dstRec, ok := dst.(*Record)
    	if !ok {
    		dstRec = &Record{}
    	}
    	dstRec.object = v
    	return dstRec, nil
    }
    
    // Close - closes underlying reader.
    func (r *Reader) Close() error {
    	// Close the input.
    	// Potentially racy if the stream decoder is still reading.
    	if r.readCloser != nil {
    		r.readCloser.Close()
    	}
    	if r.exitReader != nil {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue May 30 17:02:22 GMT 2023
    - 4.9K bytes
    - Viewed (0)
  7. internal/kms/context.go

    			switch b {
    			case '\\', '"':
    				dst.WriteByte(b)
    			case '\n':
    				dst.WriteByte('n')
    			case '\r':
    				dst.WriteByte('r')
    			case '\t':
    				dst.WriteByte('t')
    			default:
    				// This encodes bytes < 0x20 except for \t, \n and \r.
    				// If escapeHTML is set, it also escapes <, >, and &
    				// because they can lead to security holes when
    				// user-controlled strings are rendered into JSON
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Jan 02 17:15:06 GMT 2022
    - 6K bytes
    - Viewed (0)
  8. internal/s3select/json/reader.go

    	}
    
    	dstRec, ok := dst.(*Record)
    	if !ok {
    		dstRec = &Record{}
    	}
    	dstRec.KVS = kvs
    	dstRec.SelectFormat = sql.SelectFmtJSON
    	return dstRec, nil
    }
    
    // Close - closes underlying reader.
    func (r *Reader) Close() error {
    	// Close the input.
    	err := r.readCloser.Close()
    	for range r.valueCh {
    		// Drain values so we don't leak a goroutine.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Mar 24 03:58:53 GMT 2022
    - 3K bytes
    - Viewed (0)
  9. internal/crypto/sse-c.go

    	clientKey, err := s3.ParseHTTP(h)
    	if err != nil {
    		return
    	}
    	return unsealObjectKey(clientKey[:], metadata, bucket, object)
    }
    
    // CreateMetadata encodes the sealed key into the metadata
    // and returns the modified metadata. It allocates a new
    // metadata map if metadata is nil.
    func (ssec) CreateMetadata(metadata map[string]string, sealedKey SealedKey) map[string]string {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 5.2K bytes
    - Viewed (0)
  10. internal/s3select/sql/parser.go

    	Not   bool     `parser:" @\"NOT\"? "`
    	Start *Operand `parser:" \"BETWEEN\" @@ "`
    	End   *Operand `parser:" \"AND\" @@ "`
    }
    
    // In represents the RHS of an IN expression. The RHS can be a list-literal
    // (i.e. enclosed in parentheses like `IN (1,2,4)`) or it could be a JSON path
    // expression (as in `8.5 IN s.nested[*][*]`). Specifically, it cannot be an
    // `Expression` as an expression can never evaluate to a list.
    type In struct {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 12.9K bytes
    - Viewed (0)
Back to top