- Sort Score
- Result 10 results
- Languages All
Results 881 - 890 of 1,384 for funcs (0.03 sec)
-
clause/select.go
package clause // Select select attrs when querying, updating, creating type Select struct { Distinct bool Columns []Column Expression Expression } func (s Select) Name() string { return "SELECT" } func (s Select) Build(builder Builder) { if len(s.Columns) > 0 { if s.Distinct { builder.WriteString("DISTINCT ") } for idx, column := range s.Columns { if idx > 0 { builder.WriteByte(',')
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Wed Jul 14 07:51:24 UTC 2021 - 1.1K bytes - Viewed (0) -
cmd/object-handlers-common_test.go
package cmd import ( "bytes" "context" "net/http" "net/http/httptest" "testing" "time" xhttp "github.com/minio/minio/internal/http" ) // Tests - canonicalizeETag() func TestCanonicalizeETag(t *testing.T) { testCases := []struct { etag string canonicalizedETag string }{ { etag: "\"\"\"", canonicalizedETag: "", }, {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Tue Sep 03 06:33:53 UTC 2024 - 5.3K bytes - Viewed (0) -
cmd/erasure-server-pool-decom_test.go
// // You should have received a copy of the GNU Affero General Public License // along with this program. If not, see <http://www.gnu.org/licenses/>. package cmd import ( "context" "testing" ) func prepareErasurePools() (ObjectLayer, []string, error) { nDisks := 32 fsDirs, err := getRandomDisks(nDisks) if err != nil { return nil, nil, err } pools := mustGetPoolEndpoints(0, fsDirs[:16]...)
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Mon Jul 01 14:38:46 UTC 2024 - 4.8K bytes - Viewed (0) -
docs/debugging/hash-set/main.go
"log" "os" "strings" "github.com/dchest/siphash" "github.com/google/uuid" ) // hashes the key returning an integer based on the input algorithm. // This function currently supports // - SIPMOD func sipHashMod(key string, cardinality int, id [16]byte) int { if cardinality <= 0 { return -1 } // use the faster version as per siphash docs // https://github.com/dchest/siphash#usage
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Mon Sep 19 18:05:16 UTC 2022 - 3.7K bytes - Viewed (0) -
internal/config/certs.go
// to decrypt the TLS private key. It must be set if the TLS private key is // password protected. const EnvCertPassword = "MINIO_CERT_PASSWD" // ParsePublicCertFile - parses public cert into its *x509.Certificate equivalent. func ParsePublicCertFile(certFile string) (x509Certs []*x509.Certificate, err error) { // Read certificate file. var data []byte if data, err = os.ReadFile(certFile); err != nil { return nil, err }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Wed Aug 14 17:11:51 UTC 2024 - 3.8K bytes - Viewed (0) -
internal/config/dns/dns_path.go
// the root label it is ignored. Not other syntax checks are performed. func dnsJoin(labels ...string) string { ll := len(labels) if labels[ll-1] == "." { return strings.Join(labels[:ll-1], ".") + "." } return dns.Fqdn(strings.Join(labels, ".")) } // msgUnPath converts a etcd path to domainName. func msgUnPath(s string) string { l := strings.Split(s, etcdPathSeparator) if l[len(l)-1] == "" {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Thu Sep 26 15:03:08 UTC 2024 - 1.9K bytes - Viewed (0) -
misc/go_android_exec/exitcode_test.go
t.Errorf("want output %q, got %q", want, got) } if want := 1; want != code { t.Errorf("want exit code %d, got %d", want, code) } } func TestExitCodeMissing(t *testing.T) { var wantErr *regexp.Regexp check := func(text string) { t.Helper() var out strings.Builder f, exitStr := newExitCodeFilter(&out) if want := "exitcode="; want != exitStr {
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Wed May 03 14:54:58 UTC 2023 - 2.1K bytes - Viewed (0) -
lib/time/mkzip.go
package main import ( "archive/zip" "bytes" "flag" "fmt" "hash/crc32" "io/fs" "log" "os" "path/filepath" "strings" ) func usage() { fmt.Fprintf(os.Stderr, "usage: go run mkzip.go zoneinfo.zip\n") os.Exit(2) } func main() { log.SetPrefix("mkzip: ") log.SetFlags(0) flag.Usage = usage flag.Parse() args := flag.Args()
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Mon Mar 04 17:32:07 UTC 2024 - 2.1K bytes - Viewed (0) -
istioctl/cmd/root_test.go
"github.com/spf13/cobra" ) func checkHelpForFlag(t *testing.T, gotHelpText, flag string, wantExists bool) { t.Helper() if strings.Contains(gotHelpText, flag) != wantExists { if wantExists { t.Errorf("%q flag was expected but not found in help text", flag) } else { t.Errorf("%q flag was found in help text but not expected", flag) } } } func TestHideInheritedFlags(t *testing.T) { const (
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Fri Jan 15 17:59:55 UTC 2021 - 2.4K bytes - Viewed (0) -
cmd/signature-v2.go
return ErrSignatureDoesNotMatch } return ErrNone } func calculateSignatureV2(stringToSign string, secret string) string { hm := hmac.New(sha1.New, []byte(secret)) hm.Write([]byte(stringToSign)) return base64.StdEncoding.EncodeToString(hm.Sum(nil)) } // Return signature-v2 for the presigned request.
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Thu Jan 18 07:03:17 UTC 2024 - 12.2K bytes - Viewed (0)