Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 742 for Sprintf (0.22 sec)

  1. cmd/post-policy_test.go

    	t := UTCNow()
    	// Add the expiration date.
    	expirationStr := fmt.Sprintf(`"expiration": "%s"`, expiration.Format(iso8601TimeFormat))
    	// Add the bucket condition, only accept buckets equal to the one passed.
    	bucketConditionStr := fmt.Sprintf(`["eq", "$bucket", "%s"]`, bucketName)
    	// Add the key condition, only accept keys equal to the one passed.
    	keyConditionStr := fmt.Sprintf(`["eq", "$key", "%s/upload.txt"]`, objectKey)
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Fri Apr 19 16:45:54 GMT 2024
    - 29.6K bytes
    - Viewed (0)
  2. cmd/bucket-policy-handlers_test.go

    		// expected Response.
    		expectedRespStatus int
    	}{
    		// Test case - 1.
    		{
    			bucketName:         bucketName,
    			bucketPolicyReader: bytes.NewReader([]byte(fmt.Sprintf(bucketPolicyTemplate, bucketName, bucketName))),
    
    			policyLen:          len(fmt.Sprintf(bucketPolicyTemplate, bucketName, bucketName)),
    			accessKey:          credentials.AccessKey,
    			secretKey:          credentials.SecretKey,
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 32.7K bytes
    - Viewed (0)
  3. internal/grid/msg.go

    	if m.MuxID != 0 {
    		res = append(res, fmt.Sprintf("MuxID: %v", m.MuxID))
    	}
    	if m.Seq != 0 {
    		res = append(res, fmt.Sprintf("Seq: %v", m.Seq))
    	}
    	if m.DeadlineMS != 0 {
    		res = append(res, fmt.Sprintf("Deadline: %vms", m.DeadlineMS))
    	}
    	if m.Handler != handlerInvalid {
    		res = append(res, fmt.Sprintf("Handler: %v", m.Handler))
    	}
    	if m.Op != 0 {
    		res = append(res, fmt.Sprintf("Op: %v", m.Op))
    	}
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Tue Nov 28 19:22:29 GMT 2023
    - 7.3K bytes
    - Viewed (0)
  4. cmd/endpoint-ellipses.go

    	setIndexes = make([][]uint64, len(totalSizes))
    	for _, totalSize := range totalSizes {
    		// Check if totalSize has minimum range upto setSize
    		if totalSize < setSizes[0] || totalSize < customSetDriveCount {
    			msg := fmt.Sprintf("Incorrect number of endpoints provided %s", args)
    			return nil, config.ErrInvalidNumberOfErasureEndpoints(nil).Msg(msg)
    		}
    	}
    
    	commonSize := getDivisibleSize(totalSizes)
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 11 21:22:47 GMT 2024
    - 14.8K bytes
    - Viewed (0)
  5. cni/pkg/plugin/kubernetes.go

    func (pi PodInfo) String() string {
    	var b strings.Builder
    	b.WriteString(fmt.Sprintf("  Containers: %v\n", sets.SortedList(pi.Containers)))
    	b.WriteString(fmt.Sprintf("  Labels: %+v\n", pi.Labels))
    	b.WriteString(fmt.Sprintf("  Annotations: %+v\n", pi.Annotations))
    	b.WriteString(fmt.Sprintf("  Envs: %+v\n", pi.ProxyEnvironments))
    	b.WriteString(fmt.Sprintf("  ProxyConfig: %+v\n", pi.ProxyEnvironments))
    	return b.String()
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Sat Feb 10 00:31:55 GMT 2024
    - 3.6K bytes
    - Viewed (0)
  6. cni/pkg/iptables/iptables.go

    func (cfg *IptablesConfigurator) appendInpodRules(hostProbeSNAT *netip.Addr) *builder.IptablesRuleBuilder {
    	redirectDNS := cfg.cfg.RedirectDNS
    
    	inpodMark := fmt.Sprintf("0x%x", InpodMark) + "/" + fmt.Sprintf("0x%x", InpodMask)
    	inpodTproxyMark := fmt.Sprintf("0x%x", InpodTProxyMark) + "/" + fmt.Sprintf("0x%x", InpodTProxyMask)
    
    	iptablesBuilder := builder.NewIptablesRuleBuilder(ipbuildConfig(cfg.cfg))
    
    	// Insert jumps to our custom chains
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Tue Apr 30 22:24:38 GMT 2024
    - 19.6K bytes
    - Viewed (0)
  7. tests/count_test.go

    		t.Errorf(fmt.Sprintf("Count should work, but got err %v", err))
    	}
    	if count1 != 1 {
    		t.Errorf("Count with group should be 1, but got count: %v", count1)
    	}
    
    	var count2 int64
    	if err := DB.Model(&Company{}).Where("name in ?", []string{"company_count_group_b", "company_count_group_c"}).Group("name").Count(&count2).Error; err != nil {
    		t.Errorf(fmt.Sprintf("Count should work, but got err %v", err))
    	}
    Go
    - Registered: Sun Apr 28 09:35:09 GMT 2024
    - Last Modified: Mon Oct 30 09:15:49 GMT 2023
    - 6.9K bytes
    - Viewed (0)
  8. cmd/bootstrap-peer-server.go

    	}
    	msg := "Expected same MINIO_ environment variables and values across all servers: "
    	if len(missing) > 0 {
    		msg += fmt.Sprintf(`Missing environment values: %v. `, missing)
    	}
    	if len(mismatching) > 0 {
    		msg += fmt.Sprintf(`Mismatching environment values: %v. `, mismatching)
    	}
    	if len(extra) > 0 {
    		msg += fmt.Sprintf(`Extra environment values: %v. `, extra)
    	}
    
    	return errors.New(strings.TrimSpace(msg))
    }
    
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 7.5K bytes
    - Viewed (0)
  9. internal/logger/target/console/console.go

    	// No formatting is required for the first entry
    	for i, element := range entry.Trace.Source {
    		trace[i] = fmt.Sprintf("%8v: %s", traceLength-i, element)
    	}
    
    	tagString := ""
    	for key, value := range entry.Trace.Variables {
    		if value != "" {
    			if tagString != "" {
    				tagString += ", "
    			}
    			tagString += fmt.Sprintf("%s=%#v", key, value)
    		}
    	}
    
    	var apiString string
    	if entry.API != nil {
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 3.9K bytes
    - Viewed (0)
  10. internal/config/lambda/event/errors.go

    type ErrUnknownRegion struct {
    	Region string
    }
    
    func (err ErrUnknownRegion) Error() string {
    	return fmt.Sprintf("unknown region '%v'", err.Region)
    }
    
    // ErrARNNotFound - ARN not found error.
    type ErrARNNotFound struct {
    	ARN ARN
    }
    
    func (err ErrARNNotFound) Error() string {
    	return fmt.Sprintf("ARN '%v' not found", err.ARN)
    }
    
    // ErrInvalidARN - invalid ARN error.
    type ErrInvalidARN struct {
    	ARN string
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Tue Mar 07 16:12:41 GMT 2023
    - 1.3K bytes
    - Viewed (0)
Back to top