Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 241 for halse (0.14 sec)

  1. internal/s3select/select.go

    			if err = s3Select.marshal(buf, outputRecord); err != nil {
    				bufPool.Put(buf)
    				return false
    			}
    			if buf.Len()-before > maxRecordSize {
    				writer.FinishWithError("OverMaxRecordSize", "The length of a record in the input or result is greater than maxCharsPerRecord of 1 MB.")
    				bufPool.Put(buf)
    				return false
    			}
    		}
    
    		if err = writer.SendRecord(buf); err != nil {
    			// FIXME: log this error.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Nov 06 22:26:08 GMT 2023
    - 21K bytes
    - Viewed (1)
  2. internal/event/target/kafka.go

    func (target *KafkaTarget) IsActive() (bool, error) {
    	if err := target.init(); err != nil {
    		return false, err
    	}
    	return target.isActive()
    }
    
    func (target *KafkaTarget) isActive() (bool, error) {
    	// Refer https://github.com/IBM/sarama/issues/1341
    	brokers := target.client.Brokers()
    	if len(brokers) == 0 {
    		return false, store.ErrNotConnected
    	}
    	return true, nil
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Feb 20 08:16:35 GMT 2024
    - 13K bytes
    - Viewed (0)
  3. helm/minio/templates/statefulset.yaml

              {{- if and .Values.securityContext.enabled .Values.persistence.enabled }}
              securityContext:
                readOnlyRootFilesystem: {{ .Values.securityContext.readOnlyRootFilesystem | default false }}
              {{- end }}
            {{- with .Values.extraContainers }}
              {{- if eq (typeOf .) "string" }}
                {{- tpl . $ | nindent 8 }}
              {{- else }}
                {{- toYaml . | nindent 8 }}
    Others
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Apr 26 07:50:24 GMT 2024
    - 10.7K bytes
    - Viewed (0)
  4. internal/hash/checksum.go

    		if len(parts) > 0 {
    			b = append(b, parts...)
    		}
    	}
    	return b
    }
    
    // Valid returns whether checksum is valid.
    func (c Checksum) Valid() bool {
    	if c.Type == ChecksumInvalid {
    		return false
    	}
    	if len(c.Encoded) == 0 || c.Type.Trailing() {
    		return c.Type.Is(ChecksumNone) || c.Type.Trailing()
    	}
    	raw := c.Raw
    	return c.Type.RawByteLen() == len(raw)
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 11.9K bytes
    - Viewed (0)
  5. internal/jwt/parser.go

    	return &MapClaims{MapClaims: jwtgo.MapClaims{}}
    }
    
    // Lookup returns the value and if the key is found.
    func (c *MapClaims) Lookup(key string) (value string, ok bool) {
    	if c == nil {
    		return "", false
    	}
    	var vinterface interface{}
    	vinterface, ok = c.MapClaims[key]
    	if ok {
    		value, ok = vinterface.(string)
    	}
    	return
    }
    
    // SetExpiry sets expiry in unix epoch secs
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue May 09 07:53:08 GMT 2023
    - 13.9K bytes
    - Viewed (0)
  6. Makefile

    check-gen: ## check for updated autogenerated files
    	@go generate ./... >/dev/null
    	@(! git diff --name-only | grep '_gen.go$$') || (echo "Non-committed changes in auto-generated code is detected, please commit them to proceed." && false)
    
    lint: getdeps ## runs golangci-lint suite of linters
    	@echo "Running $@ check"
    	@$(GOLANGCI) run --build-tags kqueue --timeout=10m --config ./.golangci.yml
    
    Plain Text
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 25 21:55:41 GMT 2024
    - 10.3K bytes
    - Viewed (1)
  7. docs/debugging/xl-meta/main.go

    			hh, _ := highwayhash.New([]byte(magicHighwayHash256Key))
    			hh.Write(data)
    			got := hh.Sum(nil)
    			if bytes.Equal(want, got) {
    				s += ", \"bitrot_valid\": true"
    			} else {
    				s += ", \"bitrot_valid\": false"
    			}
    			s += "}"
    		}
    		res = append(res, []byte(s)...)
    	}
    	res = append(res, '}')
    	return res, nil
    }
    
    // files returns files as callback.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Apr 24 17:56:22 GMT 2024
    - 20.2K bytes
    - Viewed (1)
  8. cmd/metacache-stream_test.go

    	}
    
    	want = want[:0]
    	entries, err = r.readN(0, false, false, false, "")
    	if err != nil {
    		t.Fatal(err, entries.len())
    	}
    	if entries.len() != len(want) {
    		t.Fatal("unexpected length:", entries.len(), "want:", len(want))
    	}
    
    	// Reload.
    	r = loadMetacacheSample(t)
    	defer r.Close()
    	entries, err = r.readN(0, false, false, false, "")
    	if err != nil {
    		t.Fatal(err, entries.len())
    	}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Sep 19 18:05:16 GMT 2022
    - 15K bytes
    - Viewed (0)
  9. internal/s3select/sql/value_test.go

    			},
    			wantVal: true,
    			wantOk:  true,
    		},
    		{
    			name: "FALSE",
    			fields: fields{
    				value: []byte("FALSE"),
    			},
    			wantVal: false,
    			wantOk:  true,
    		},
    		{
    			name: "invalid",
    			fields: fields{
    				value: []byte("no"),
    			},
    			wantVal: false,
    			wantOk:  false,
    		},
    	}
    	for _, tt := range tests {
    		t.Run(tt.name, func(t *testing.T) {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Mar 06 16:56:10 GMT 2023
    - 12.5K bytes
    - Viewed (0)
  10. cmd/erasure-server-pool-decom.go

    		p.Pools[idx].LastUpdate = UTCNow()
    		p.Pools[idx].Decommission.Complete = true
    		p.Pools[idx].Decommission.Failed = false
    		p.Pools[idx].Decommission.Canceled = false
    		return true
    	}
    	return false
    }
    
    func (p *poolMeta) DecommissionFailed(idx int) bool {
    	if p.Pools[idx].Decommission != nil && !p.Pools[idx].Decommission.Failed {
    		p.Pools[idx].LastUpdate = UTCNow()
    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)
Back to top