Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 1,304 for parsable (0.19 sec)

  1. pkg/util/net/ip.go

    	for _, i := range ips {
    		ip, err := netip.ParseAddr(i)
    		if err != nil {
    			log.Debugf("ignoring un-parsable IP address: %v", err)
    			continue
    		}
    		if ip.Is4() {
    			ipv4 = append(ipv4, ip.String())
    		} else if ip.Is6() {
    			ipv6 = append(ipv6, ip.String())
    		} else {
    			log.Debugf("ignoring un-parsable IP address: %v", ip)
    		}
    	}
    	return
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 01 14:41:40 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  2. src/internal/syscall/unix/kernel_version_solaris.go

    	// Therefore, we use the Version field on Solaris when available.
    	ver := un.Version[:]
    	if runtime.GOOS == "illumos" {
    		// Illumos distributions use different formats without a parsable
    		// and unified pattern for the Version field while Release level
    		// string is guaranteed to be in x.y or x.y.z format regardless of
    		// whether the kernel is Solaris or illumos.
    		ver = un.Release[:]
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 15 03:10:07 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  3. pkg/util/kernel/version_test.go

    			},
    			err:      errors.New("failed to read os-release file: open /proc/sys/kernel/osrelease: failed to read file"),
    			expected: nil,
    		},
    		{
    			name: "version not parsable",
    			readFileFunc: func(_ string) ([]byte, error) {
    				return []byte("5-15-0"), nil
    			},
    			err:      errors.New("failed to parse kernel version: illegal version string \"5-15-0\""),
    			expected: nil,
    		},
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Oct 27 19:24:34 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  4. cmd/net_test.go

    			sortedIPList: []string{"127.0.0.1"},
    		},
    		// Non parsable ip is assumed to be hostame and gets preserved
    		// as the left most elements, regardless of IP based sorting.
    		{
    			ipList:       []string{"hostname", "127.0.0.1", "192.168.1.106"},
    			sortedIPList: []string{"hostname", "192.168.1.106", "127.0.0.1"},
    		},
    		// Non parsable ip is assumed to be hostname, with a mixed input of ip and hostname.
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri Apr 19 08:43:09 UTC 2024
    - 9.3K bytes
    - Viewed (0)
  5. cmd/kubeadm/app/discovery/discovery.go

    		return token.RetrieveValidatedConfigInfo(&cfg.Discovery, timeout)
    	default:
    		return nil, errors.New("couldn't find a valid discovery configuration")
    	}
    }
    
    // isHTTPSURL checks whether the string is parsable as a URL and whether the Scheme is https
    func isHTTPSURL(s string) bool {
    	u, err := url.Parse(s)
    	return err == nil && u.Scheme == "https"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Jan 14 13:07:56 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/utils/tpu_rewrite_device_util.h

    // devices are determined by looking up all TPU devices associated with each
    // TPU_SYSTEM:0 device found, alongside associated `topology_attr` and
    // `device_assignment_attr`. If `topology_attr` not an empty string (parsable to
    // TopologyProto), `device_assignment_attr` must not be empty also. When
    // `topology_attr` and `device_assignment_attr` are not empty, a general device
    // assignment based on those two attributes are used. Otherwise when
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Apr 26 09:37:10 UTC 2024
    - 11.3K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/utils/tf_xla_mlir_translate.cc

      size_t numRead;
      mlir::Attribute attr = mlir::parseAttribute(input, context, {}, &numRead);
      if (!attr || !mlir::isa<mlir::StringAttr>(attr)) {
        LOG(ERROR) << "Input is not parsable as a MLIR StringAttr.";
        return nullptr;
      }
      auto str_attr = mlir::cast<mlir::StringAttr>(attr);
    
      mlir::DialectRegistry registry;
      RegisterMlirInputDialects(registry);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 18.8K bytes
    - Viewed (0)
  8. pkg/controller/job/indexed_job_utils.go

    //   - there is no annotation - for example the pod was created when the BackoffLimitPerIndex
    //     feature was temporarily disabled, or the annotation was manually removed by the user,
    //   - the value of the annotation isn't parsable as int - for example because
    //     it was set by a malicious user,
    //   - the value of the annotation is negative or greater by int32 - for example
    //     because it was set by a malicious user.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jul 21 00:44:53 UTC 2023
    - 17.5K bytes
    - Viewed (0)
  9. src/crypto/tls/handshake_messages_test.go

    					t.Errorf("#%d got:%#v want:%#v %x", i, m, m1, marshaled)
    					break
    				}
    
    				if i >= 3 {
    					// The first three message types (ClientHello,
    					// ServerHello and Finished) are allowed to
    					// have parsable prefixes because the extension
    					// data is optional and the length of the
    					// Finished varies across versions.
    					for j := 0; j < len(marshaled); j++ {
    						if m.unmarshal(marshaled[0:j]) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:10:12 UTC 2024
    - 15.7K bytes
    - Viewed (0)
  10. cmd/kubeadm/app/apis/kubeadm/validation/validation.go

    				}
    			}
    		}
    	}
    	return allErrs
    }
    
    // ValidateURLs validates the URLs given in the string slice, makes sure they are parsable. Optionally, it can enforces HTTPS usage.
    func ValidateURLs(urls []string, requireHTTPS bool, fldPath *field.Path) field.ErrorList {
    	allErrs := field.ErrorList{}
    	for _, urlstr := range urls {
    		u, err := url.Parse(urlstr)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 01 16:01:49 UTC 2024
    - 33.4K bytes
    - Viewed (0)
Back to top