- Sort Score
- Result 10 results
- Languages All
Results 161 - 170 of 1,583 for makeT (0.04 sec)
-
cmd/erasure_test.go
} func TestErasureEncodeDecode(t *testing.T) { data := make([]byte, 256) if _, err := io.ReadFull(rand.Reader, data); err != nil { t.Fatalf("Failed to read random data: %v", err) } for i, test := range erasureEncodeDecodeTests { buffer := make([]byte, len(data), 2*len(data)) copy(buffer, data)
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Mon Jul 25 19:37:26 UTC 2022 - 4.8K bytes - Viewed (0) -
callbacks/delete.go
return } case schema.Many2Many: var ( queryConds = make([]clause.Expression, 0, len(rel.References)) foreignFields = make([]*schema.Field, 0, len(rel.References)) relForeignKeys = make([]string, 0, len(rel.References)) modelValue = reflect.New(rel.JoinTable.ModelType).Interface() table = rel.JoinTable.Table
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Fri Feb 25 02:48:23 UTC 2022 - 5.6K bytes - Viewed (0) -
cmd/site-replication.go
bucketStats := make(map[string][]srBucketMetaInfo) policyStats := make(map[string][]srPolicy) userPolicyStats := make(map[string][]srPolicyMapping) groupPolicyStats := make(map[string][]srPolicyMapping) userInfoStats := make(map[string][]srUserInfo) groupDescStats := make(map[string][]srGroupDesc) ilmExpiryRuleStats := make(map[string][]srILMExpiryRule) numSites := len(sris)
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Thu Aug 15 12:04:40 UTC 2024 - 185.1K bytes - Viewed (0) -
istioctl/pkg/writer/envoy/configdump/endpoint.go
addrs := []*core.Address{ep.GetEndpoint().GetAddress()} for _, a := range ep.GetEndpoint().GetAdditionalAddresses() { addrs = append(addrs, a.GetAddress()) } result := make([]string, 0, len(addrs)) for _, addr := range addrs { if addr := addr.GetSocketAddress(); addr != nil { result = append(result, addr.Address+":"+strconv.Itoa(int(addr.GetPortValue()))) continue }
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Mon Jul 22 09:57:29 UTC 2024 - 6.1K bytes - Viewed (0) -
schema/utils.go
queryValues := make([]interface{}, len(foreignValues)) if len(foreignKeys) == 1 { for idx, r := range foreignValues { queryValues[idx] = r[0] } return clause.Column{Table: table, Name: foreignKeys[0]}, queryValues } columns := make([]clause.Column, len(foreignKeys)) for idx, key := range foreignKeys {
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Sat Aug 19 13:35:14 UTC 2023 - 5.5K bytes - Viewed (0) -
cmd/api-router.go
host, _, err := net.SplitHostPort(getHost(r)) if err != nil { host = r.Host } // Make sure to skip matching minio.<domain>` this is // specifically meant for operator/k8s deployment // The reason we need to skip this is for a special // usecase where we need to make sure that // minio.<namespace>.svc.<cluster_domain> is ignored // by the bucketDNS style to ensure that path style
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Tue Aug 13 15:25:16 UTC 2024 - 23.1K bytes - Viewed (0) -
cmd/peer-rest-client.go
if !globalIsDistErasure { // Only useful in distributed setups return nil, nil } hosts := endpoints.hostsSorted() remote = make([]*peerRESTClient, 0, len(hosts)) all = make([]*peerRESTClient, len(hosts)) for i, host := range hosts { if host == nil { continue } all[i] = newPeerRESTClient(host, endpoints.FindGridHostsFromPeer(host))
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Mon Sep 09 16:58:30 UTC 2024 - 26.1K bytes - Viewed (0) -
bin/build_ztunnel.sh
# limitations under the License. set -o errexit set -o nounset set -o pipefail if [[ "${TARGET_OUT_LINUX:-}" == "" ]]; then echo "Environment variables not set. Make sure you run through the makefile (\`make init\`) rather than directly." exit 1 fi # Gets the download command supported by the system (currently either curl or wget) DOWNLOAD_COMMAND="" function set_download_command () { # Try curl.
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Tue Apr 02 21:46:06 UTC 2024 - 5K bytes - Viewed (0) -
internal/store/batch.go
} // NewBatch creates a new batch func NewBatch[I any](config BatchConfig[I]) *Batch[I] { if config.CommitTimeout == 0 { config.CommitTimeout = defaultCommitTimeout } quitCh := make(chan struct{}) batch := &Batch[I]{ items: make([]I, 0, config.Limit), limit: config.Limit, store: config.Store, quitCh: quitCh, } if batch.store != nil { go func() {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Fri Sep 06 23:06:30 UTC 2024 - 2.9K bytes - Viewed (0) -
cmd/erasure-multipart.go
var buffer []byte switch size := data.Size(); { case size == 0: buffer = make([]byte, 1) // Allocate at least a byte to reach EOF case size == -1: if size := data.ActualSize(); size > 0 && size < fi.Erasure.BlockSize { // Account for padding and forced compression overhead and encryption. buffer = make([]byte, data.ActualSize()+256+32+32, data.ActualSize()*2+512) } else {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Sun Sep 29 22:40:36 UTC 2024 - 44.7K bytes - Viewed (0)