- Sort Score
- Result 10 results
- Languages All
Results 881 - 890 of 1,423 for Func (0.03 sec)
-
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) -
misc/ios/go_ios_exec.go
return 1, err } err = runOnSimulator(appdir) if err != nil { return 1, err } return 0, nil } func runOnSimulator(appdir string) error { if err := installSimulator(appdir); err != nil { return err } return runSimulator(appdir, bundleID, os.Args[2:]) } func assembleApp(appdir, bin string) error { if err := os.MkdirAll(appdir, 0755); err != nil { return err }
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Tue Jun 18 16:32:49 UTC 2024 - 8.7K bytes - Viewed (0) -
docs/sts/web-identity.go
return } var getWebTokenExpiry func() (*credentials.WebIdentityToken, error) if clientSec == "" { getWebTokenExpiry = func() (*credentials.WebIdentityToken, error) { return &credentials.WebIdentityToken{ Token: r.Form.Get("id_token"), }, nil } } else { getWebTokenExpiry = func() (*credentials.WebIdentityToken, error) {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Fri May 19 09:13:33 UTC 2023 - 7.8K bytes - Viewed (0) -
cmd/metrics-v3-api.go
) // loadAPIRequestsHTTPMetrics - reads S3 HTTP metrics. // // This is a `MetricsLoaderFn`. // // This includes node level S3 HTTP metrics. // // This function currently ignores `opts`. func loadAPIRequestsHTTPMetrics(ctx context.Context, m MetricValues, _ *metricsCache) error { // Collect node level S3 HTTP metrics. httpStats := globalHTTPStats.toServerHTTPStats(false)
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Tue Sep 24 17:13:00 UTC 2024 - 9.4K bytes - Viewed (0) -
internal/event/target/kafka_scram_client_contrib.go
"strings" "github.com/IBM/sarama" "github.com/xdg/scram" "github.com/minio/minio/internal/hash/sha256" ) func initScramClient(args KafkaArgs, config *sarama.Config) { switch strings.ToLower(args.SASL.Mechanism) { case "sha512": config.Net.SASL.SCRAMClientGeneratorFunc = func() sarama.SCRAMClient { return &XDGSCRAMClient{HashGeneratorFcn: KafkaSHA512} }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Thu Nov 09 04:04:01 UTC 2023 - 3.2K bytes - Viewed (0)