Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 289 for Sprintf (0.18 sec)

  1. istioctl/pkg/writer/envoy/configdump/listener.go

    			})
    			for _, match := range matches {
    				if includeConfigType {
    					name := fmt.Sprintf("listener/%s", l.Name)
    					fmt.Fprintf(w, "%v\t%v\t%v\t%v\t%v\n", name, strings.Join(addresses, ","), port, match.match, match.destination)
    				} else {
    					fmt.Fprintf(w, "%v\t%v\t%v\t%v\n", strings.Join(addresses, ","), port, match.match, match.destination)
    				}
    			}
    		} else {
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Wed Nov 29 12:37:14 GMT 2023
    - 18.1K bytes
    - Viewed (0)
  2. istioctl/pkg/validate/validate.go

    	objLabels, err := GetTemplateLabels(un)
    	if err != nil {
    		return err
    	}
    	url := fmt.Sprintf("See %s\n", url.DeploymentRequirements)
    	if !labels.HasCanonicalServiceName(objLabels) || !labels.HasCanonicalServiceRevision(objLabels) {
    		fmt.Fprintf(writer, "deployment %q may not provide Istio metrics and telemetry labels: %q. "+url,
    			fmt.Sprintf("%s/%s:", un.GetName(), un.GetNamespace()), objLabels)
    	}
    	return nil
    }
    
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Mon Jan 22 17:58:52 GMT 2024
    - 15K bytes
    - Viewed (0)
  3. cmd/signature-v4_test.go

    		{
    			form: http.Header{
    				"X-Amz-Credential": []string{fmt.Sprintf(credentialTemplate, "EXAMPLEINVALIDEXAMPL", now.Format(yyyymmdd), globalMinioDefaultRegion)},
    			},
    			expected: ErrInvalidAccessKeyID,
    		},
    		// (2) It should fail with a bad signature.
    		{
    			form: http.Header{
    				"X-Amz-Credential": []string{fmt.Sprintf(credentialTemplate, accessKey, now.Format(yyyymmdd), globalMinioDefaultRegion)},
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 10.4K bytes
    - Viewed (1)
  4. istioctl/pkg/analyze/analyze.go

    	for _, aName := range analyzerNames {
    		b.WriteString(fmt.Sprintf("* %s:\n", aName))
    		a := nameToAnalyzer[aName]
    		if a.Metadata().Description != "" {
    			b.WriteString(fmt.Sprintf("    %s\n", a.Metadata().Description))
    		}
    	}
    	return b.String()
    }
    
    func analyzeTargetAsString() string {
    	if allNamespaces {
    		return "all namespaces"
    	}
    	return fmt.Sprintf("namespace: %s", selectedNamespace)
    }
    
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Tue Apr 02 08:32:06 GMT 2024
    - 17K bytes
    - Viewed (0)
  5. 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)
  6. 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)
  7. 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)
  8. cmd/bucket-replication_test.go

    				ReplicationStatus:         replication.Pending,
    				VersionID:                 "a3348c34-c352-4498-82f0-1098e8b34df9",
    				UserDefined:               map[string]string{xhttp.MinIOReplicationResetStatus: fmt.Sprintf("%s;abc", UTCNow().AddDate(0, -1, 0).String())},
    			},
    			expectedSync: true,
    			dsc:          ReplicateDecision{targetsMap: map[string]replicateTargetDecision{"arn1": newReplicateTargetDecision("arn1", true, false)}},
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sat Sep 16 09:28:06 GMT 2023
    - 12.2K bytes
    - Viewed (0)
  9. 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)
  10. istioctl/pkg/multixds/gather.go

    	}
    
    	return &retval, nil
    }
    
    func makeSan(istioNamespace, revision string) string {
    	if revision == "" {
    		return fmt.Sprintf("istiod.%s.svc", istioNamespace)
    	}
    	return fmt.Sprintf("istiod-%s.%s.svc", revision, istioNamespace)
    }
    
    // AllRequestAndProcessXds returns all XDS responses from 1 central or 1..N K8s cluster-based XDS servers
    // nolint: lll
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Fri Mar 08 08:38:19 GMT 2024
    - 13.6K bytes
    - Viewed (0)
Back to top