- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 14 for to_bytes (0.75 sec)
-
internal/s3select/sql/value.go
return } // ToTimestamp returns the timestamp value if present. func (v Value) ToTimestamp() (t time.Time, ok bool) { t, ok = v.value.(time.Time) return } // ToBytes returns the value if byte-slice. func (v Value) ToBytes() (val []byte, ok bool) { val, ok = v.value.([]byte) return } // ToArray returns the value if it is a slice of values. func (v Value) ToArray() (val []Value, ok bool) {
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Fri Feb 25 20:31:19 GMT 2022 - 20.2K bytes - Viewed (0) -
cmd/server_test.go
c.Assert(err, nil) // assert the http response status code. c.Assert(response.StatusCode, http.StatusOK) invalidBucket := "Invalid\\Bucket" tooByte := bytes.Repeat([]byte("a"), 1025) tooBigPrefix := string(tooByte) validEvents := []string{"s3:ObjectCreated:*", "s3:ObjectRemoved:*"} invalidEvents := []string{"invalidEvent"} req, err = newTestSignedRequest(http.MethodGet,
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Thu Feb 22 06:26:06 GMT 2024 - 108K bytes - Viewed (0) -
cni/pkg/iptables/iptables_test.go
} func compareToGolden(t *testing.T, ipv6 bool, name string, actual []string) { t.Helper() gotBytes := []byte(strings.Join(actual, "\n")) goldenFile := filepath.Join("testdata", name+".golden") if ipv6 { goldenFile = filepath.Join("testdata", name+"_ipv6.golden") } testutil.CompareContent(t, gotBytes, goldenFile) } func constructTestConfig() *Config { return &Config{ RestoreFormat: false, }
Go - Registered: Wed May 01 22:53:12 GMT 2024 - Last Modified: Tue Apr 30 22:24:38 GMT 2024 - 3.7K bytes - Viewed (0) -
cmd/admin-bucket-handlers.go
if err != nil { writeErrorResponse(ctx, w, toAPIError(ctx, err), r.URL) return } tgtBytes, err := json.Marshal(&targets) if err != nil { writeErrorResponseJSON(ctx, w, errorCodes.ToAPIErrWithErr(ErrAdminConfigBadJSON, err), r.URL) return } if _, err = globalBucketMetadataSys.Update(ctx, bucket, bucketTargetsFile, tgtBytes); err != nil { writeErrorResponse(ctx, w, toAPIError(ctx, err), r.URL) return }
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) -
cmd/bucket-replication-metrics.go
v := q.srQueueStats return InQueueMetric{ Curr: QStat{Bytes: float64(v.nowBytes), Count: float64(v.nowCount)}, Max: QStat{Bytes: float64(v.histBytes.Max()), Count: float64(v.histCounts.Max())}, Avg: QStat{Bytes: v.histBytes.Mean(), Count: v.histCounts.Mean()}, } } // InQueueStats holds queue stats for replication type InQueueStats struct { nowBytes int64 `json:"-"` nowCount int64 `json:"-"`
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Tue Feb 06 06:00:45 GMT 2024 - 14.2K bytes - Viewed (0) -
internal/s3select/json/record.go
v = sql.FormatSQLTimestamp(t) } else if s, ok := value.ToString(); ok { v = s } else if value.IsNull() { v = nil } else if value.IsMissing() { return r, nil } else if b, ok := value.ToBytes(); ok { // This can either be raw json or a CSV value. // Only treat objects and arrays as JSON. if len(b) > 0 && (b[0] == '{' || b[0] == '[') { v = RawJSON(b) } else { v = string(b) }
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) -
istioctl/pkg/kubeinject/kubeinject.go
} else if isMCPAddr(address) { var err error client.Transport, err = mcpTransport(context.TODO(), client.Transport) if err != nil { return nil, err } } podBytes, err := json.Marshal(pod) if pod.Namespace != "" { deploymentNS = pod.Namespace } if err != nil { return nil, err } rev := &admission.AdmissionReview{ TypeMeta: metav1.TypeMeta{
Go - Registered: Wed May 01 22:53:12 GMT 2024 - Last Modified: Fri Mar 29 02:29:02 GMT 2024 - 21.6K bytes - Viewed (0) -
cmd/bucket-replication-stats.go
defer r.qCache.Unlock() v, ok := r.qCache.bucketStats[bucket] if !ok { v = newInQueueStats(r.registry, bucket) } atomic.AddInt64(&v.nowBytes, sz) atomic.AddInt64(&v.nowCount, 1) r.qCache.bucketStats[bucket] = v atomic.AddInt64(&r.qCache.srQueueStats.nowBytes, sz) atomic.AddInt64(&r.qCache.srQueueStats.nowCount, 1) }
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Thu Feb 22 06:26:06 GMT 2024 - 13.4K bytes - Viewed (0) -
cmd/site-replication.go
continue } quotaCfgs[i] = cfg } if s.Tags != nil { tagBytes, err := base64.StdEncoding.DecodeString(*s.Tags) if err != nil { continue } tagCount++ if !tagSet.Contains(string(tagBytes)) { tagSet.Add(string(tagBytes)) } } if len(s.Policy) > 0 {
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) -
src/cmd/cgo/gcc.go
// which rounds up to 2 pointers after alignment. t.Go = c.string t.Size = c.ptrSize * 2 t.Align = c.ptrSize break } if dt.Name == "_GoBytes_" { // Special C name for Go []byte type. // Knows slice layout used by compilers: pointer, length, cap. t.Go = c.Ident("[]byte") t.Size = c.ptrSize + 4 + 4 t.Align = c.ptrSize break
Go - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Thu Nov 02 16:43:23 GMT 2023 - 97K bytes - Viewed (0)