Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 43 for EqualFold (0.17 sec)

  1. istioctl/pkg/writer/ztunnel/configdump/workload.go

    	}
    
    	if wf.Namespace != "" {
    		if !strings.EqualFold(workload.Namespace, wf.Namespace) {
    			return false
    		}
    	}
    
    	if wf.Address != "" {
    		var find bool
    		for _, ip := range workload.WorkloadIPs {
    			if strings.EqualFold(ip, wf.Address) {
    				find = true
    				break
    			}
    		}
    		if !find {
    			return false
    		}
    	}
    	if wf.Node != "" && !strings.EqualFold(workload.Node, wf.Node) {
    		return false
    	}
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Tue Apr 23 21:30:30 GMT 2024
    - 4K bytes
    - Viewed (0)
  2. istioctl/pkg/writer/envoy/clusters/clusters.go

    		return true
    	}
    	if e.Address != "" && !strings.EqualFold(retrieveEndpointAddress(host), e.Address) {
    		return false
    	}
    	if e.Port != 0 && retrieveEndpointPort(host) != e.Port {
    		return false
    	}
    	if e.Cluster != "" && !strings.EqualFold(cluster, e.Cluster) {
    		return false
    	}
    	status := retrieveEndpointStatus(host)
    	if e.Status != "" && !strings.EqualFold(core.HealthStatus_name[int32(status)], e.Status) {
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Thu Nov 03 08:41:32 GMT 2022
    - 5.8K bytes
    - Viewed (0)
  3. internal/config/bool-flag.go

    	case "1", "t", "T", "true", "TRUE", "True", "on", "ON", "On":
    		return true, nil
    	case "0", "f", "F", "false", "FALSE", "False", "off", "OFF", "Off":
    		return false, nil
    	}
    	if strings.EqualFold(str, "enabled") {
    		return true, nil
    	}
    	if strings.EqualFold(str, "disabled") {
    		return false, nil
    	}
    	return false, fmt.Errorf("ParseBool: parsing '%s': %w", str, strconv.ErrSyntax)
    }
    
    // ParseBoolFlag - parses string into BoolFlag.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 07 15:10:40 GMT 2022
    - 2.3K bytes
    - Viewed (0)
  4. docs/debugging/s3-verify/main.go

    )
    
    func buildS3Client(endpoint, accessKey, secretKey string, insecure bool) (*minio.Client, error) {
    	u, err := url.Parse(endpoint)
    	if err != nil {
    		return nil, err
    	}
    
    	secure := strings.EqualFold(u.Scheme, "https")
    	transport, err := minio.DefaultTransport(secure)
    	if err != nil {
    		return nil, err
    	}
    	if insecure {
    		// skip TLS verification
    		transport.TLSClientConfig.InsecureSkipVerify = true
    	}
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Jun 22 15:12:47 GMT 2022
    - 8.4K bytes
    - Viewed (0)
  5. internal/hash/checksum.go

    			var duplicates bool
    			switch {
    			case strings.EqualFold(header, ChecksumCRC32C.Key()):
    				duplicates = res != nil
    				res = NewChecksumWithType(ChecksumCRC32C|ChecksumTrailing, "")
    			case strings.EqualFold(header, ChecksumCRC32.Key()):
    				duplicates = res != nil
    				res = NewChecksumWithType(ChecksumCRC32|ChecksumTrailing, "")
    			case strings.EqualFold(header, ChecksumSHA256.Key()):
    				duplicates = res != nil
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 11.9K bytes
    - Viewed (0)
  6. istioctl/pkg/writer/ztunnel/configdump/policies.go

    type PolicyFilter struct {
    	Namespace string
    }
    
    // Verify returns true if the passed workload matches the filter fields
    func (wf *PolicyFilter) Verify(pol *ZtunnelPolicy) bool {
    	if wf.Namespace != "" {
    		if !strings.EqualFold(pol.Namespace, wf.Namespace) {
    			return false
    		}
    	}
    
    	return true
    }
    
    // PrintServiceSummary prints a summary of the relevant services in the config dump to the ConfigWriter stdout
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Tue Apr 23 21:30:30 GMT 2024
    - 2.5K bytes
    - Viewed (0)
  7. internal/s3select/sql/utils.go

    func (e *JSONPath) StripTableAlias(tableAlias string) []*JSONPathElement {
    	if e.strippedTableAlias == tableAlias {
    		return e.strippedPathExpr
    	}
    
    	hasTableAlias := e.BaseKey.String() == tableAlias || strings.EqualFold(e.BaseKey.String(), baseTableName)
    	var pathExpr []*JSONPathElement
    	if hasTableAlias {
    		pathExpr = e.PathExpr
    	} else {
    		pathExpr = make([]*JSONPathElement, len(e.PathExpr)+1)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Nov 10 16:12:50 GMT 2021
    - 3.6K bytes
    - Viewed (0)
  8. istioctl/pkg/util/formatting/formatter.go

    	}
    	return prefix
    }
    
    func colorSuffix(colorize bool) string {
    	if !colorize {
    		return ""
    	}
    	return "\033[0m"
    }
    
    func IstioctlColorDefault(writer io.Writer) bool {
    	if strings.EqualFold(termEnvVar.Get(), "dumb") {
    		return false
    	}
    
    	file, ok := writer.(*os.File)
    	if ok {
    		if !isatty.IsTerminal(file.Fd()) {
    			return false
    		}
    	}
    
    	return true
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Tue Jul 11 02:41:45 GMT 2023
    - 3.1K bytes
    - Viewed (0)
  9. utils/utils.go

    }
    
    // CheckTruth check string true or not
    func CheckTruth(vals ...string) bool {
    	for _, val := range vals {
    		if val != "" && !strings.EqualFold(val, "false") {
    			return true
    		}
    	}
    	return false
    }
    
    func ToStringKey(values ...interface{}) string {
    	results := make([]string, len(values))
    
    	for idx, value := range values {
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Mon Apr 22 06:43:02 GMT 2024
    - 3.8K bytes
    - Viewed (0)
  10. istioctl/pkg/writer/envoy/configdump/listener.go

    		found := false
    		for _, address := range addresses {
    			if strings.EqualFold(address, l.Address) {
    				found = true
    			}
    		}
    		if !found {
    			return false
    		}
    	}
    	if l.Port != 0 && retrieveListenerPort(listener) != l.Port {
    		return false
    	}
    	if l.Type != "" && !strings.EqualFold(retrieveListenerType(listener), l.Type) {
    		return false
    	}
    	return true
    }
    
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Wed Nov 29 12:37:14 GMT 2023
    - 18.1K bytes
    - Viewed (0)
Back to top