Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 29 for Sprintf (0.26 sec)

  1. 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)
  2. istioctl/pkg/waypoint/waypoint.go

    						break
    					}
    					if time.Since(startTime) > waitTimeout {
    						errorMsg := fmt.Sprintf("timed out while waiting for waypoint %v/%v", gw.Namespace, gw.Name)
    						if err != nil {
    							errorMsg += fmt.Sprintf(": %s", err)
    						}
    						return fmt.Errorf(errorMsg)
    					}
    				}
    			}
    			fmt.Fprintf(cmd.OutOrStdout(), "waypoint %v/%v applied\n", gw.Namespace, gw.Name)
    
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Wed May 01 16:16:40 GMT 2024
    - 15.2K bytes
    - Viewed (0)
  3. cmd/object-api-errors.go

    	Endpoint  string
    	AccessKey string
    }
    
    func (e RemoteTargetConnectionErr) Error() string {
    	if e.Bucket != "" {
    		return fmt.Sprintf("Remote service endpoint offline, target bucket: %s or remote service credentials: %s invalid \n\t%s", e.Bucket, e.AccessKey, e.Err.Error())
    	}
    	return fmt.Sprintf("Remote service endpoint %s not available\n\t%s", e.Endpoint, e.Err.Error())
    }
    
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Fri Apr 26 00:31:12 GMT 2024
    - 21.3K bytes
    - Viewed (0)
  4. cmd/erasure-multipart.go

    	// Need a unique name for the part being written in minioMetaBucket to
    	// accommodate concurrent PutObjectPart requests
    
    	partSuffix := fmt.Sprintf("part.%d", partID)
    	// Random UUID and timestamp for temporary part file.
    	tmpPart := fmt.Sprintf("%sx%d", mustGetUUID(), time.Now().UnixNano())
    	tmpPartPath := pathJoin(tmpPart, partSuffix)
    
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 43K bytes
    - Viewed (0)
  5. cni/pkg/ipset/ipset.go

    func NewIPSet(name string, v6 bool, deps NetlinkIpsetDeps) (IPSet, error) {
    	var err error
    	set := IPSet{
    		V4Name: fmt.Sprintf(V4Name, name),
    		Deps:   deps,
    		Prefix: name,
    	}
    	err = deps.ipsetIPHashCreate(set.V4Name, false)
    	if v6 {
    		set.V6Name = fmt.Sprintf(V6Name, name)
    		v6err := deps.ipsetIPHashCreate(set.V6Name, true)
    		err = errors.Join(err, v6err)
    	}
    	return set, err
    }
    
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Tue Apr 30 22:24:38 GMT 2024
    - 3.9K bytes
    - Viewed (0)
  6. cni/pkg/util/podutil.go

    	"istio.io/api/annotation"
    	"istio.io/istio/pkg/config/constants"
    )
    
    var annotationPatch = []byte(fmt.Sprintf(
    	`{"metadata":{"annotations":{"%s":"%s"}}}`,
    	constants.AmbientRedirection,
    	constants.AmbientRedirectionEnabled,
    ))
    
    var annotationRemovePatch = []byte(fmt.Sprintf(
    	`{"metadata":{"annotations":{"%s":null}}}`,
    	constants.AmbientRedirection,
    ))
    
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Wed May 01 18:04:40 GMT 2024
    - 4.1K bytes
    - Viewed (0)
  7. migrator/migrator.go

    				if !field.PrimaryKey &&
    					(len(matches2) == 1 && matches2[0][1] != fmt.Sprint(length) && ok) {
    					alterColumn = true
    				}
    			}
    		}
    
    		// check precision
    		if precision, _, ok := columnType.DecimalSize(); ok && int64(field.Precision) != precision {
    			if regexp.MustCompile(fmt.Sprintf("[^0-9]%d[^0-9]", field.Precision)).MatchString(m.DataTypeOf(field)) {
    				alterColumn = true
    			}
    		}
    Go
    - Registered: Sun Apr 28 09:35:09 GMT 2024
    - Last Modified: Fri Apr 26 07:15:49 GMT 2024
    - 29K bytes
    - Viewed (0)
  8. cni/cmd/istio-cni/main.go

    		Add:   plugin.CmdAdd,
    		Del:   plugin.CmdDelete,
    		Check: plugin.CmdCheck,
    	}
    	err := skel.PluginMainFuncsWithError(funcs, version.All, fmt.Sprintf("CNI plugin istio-cni %v", istioversion.Info.Version))
    	if err != nil {
    		log.Errorf("istio-cni failed with: %v", err)
    		if err := err.Print(); err != nil {
    			log.Errorf("istio-cni failed to write error JSON to stdout: %v", err)
    		}
    
    		return err
    	}
    
    	return nil
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Tue Apr 30 13:56:46 GMT 2024
    - 1.9K bytes
    - Viewed (0)
  9. cmd/metacache-set.go

    	}
    	if search == "" {
    		return 0, nil
    	}
    	o.debugln("searching for ", search)
    	var tmp metacacheBlock
    	json := jsoniter.ConfigCompatibleWithStandardLibrary
    	i := 0
    	for {
    		partKey := fmt.Sprintf("%s-metacache-part-%d", ReservedMetadataPrefixLower, i)
    		v, ok := fi.Metadata[partKey]
    		if !ok {
    			o.debugln("no match in metadata, waiting")
    			return -1, io.ErrUnexpectedEOF
    		}
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Fri Apr 26 19:52:52 GMT 2024
    - 30.4K bytes
    - Viewed (0)
  10. cmd/erasure-server-pool-rebalance.go

    				switch {
    				case errors.Is(rebalErr, context.Canceled):
    					status = rebalStopped
    					traceMsg = fmt.Sprintf("stopped at %s", now)
    				case rebalErr == nil:
    					status = rebalCompleted
    					traceMsg = fmt.Sprintf("completed at %s", now)
    				default:
    					status = rebalFailed
    					traceMsg = fmt.Sprintf("stopped at %s with err: %v", now, rebalErr)
    				}
    
    				z.rebalMu.Lock()
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Fri Apr 26 19:29:28 GMT 2024
    - 27.2K bytes
    - Viewed (0)
Back to top