Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 275 for ptrval (0.18 sec)

  1. staging/src/k8s.io/apimachinery/pkg/util/intstr/intstr.go

    	case String:
    		isPercent := false
    		s := intOrStr.StrVal
    		if strings.HasSuffix(s, "%") {
    			isPercent = true
    			s = strings.TrimSuffix(intOrStr.StrVal, "%")
    		} else {
    			return 0, false, fmt.Errorf("invalid type: string is not a percentage")
    		}
    		v, err := strconv.Atoi(s)
    		if err != nil {
    			return 0, false, fmt.Errorf("invalid value %q: %v", intOrStr.StrVal, err)
    		}
    		return int(v), isPercent, nil
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 21:48:09 UTC 2024
    - 7.8K bytes
    - Viewed (0)
  2. pkg/kube/apimirror/probe.go

    )
    
    type IntOrString struct {
    	Type   Type
    	IntVal int32
    	StrVal string
    }
    
    // UnmarshalJSON implements the json.Unmarshaller interface.
    func (intstr *IntOrString) UnmarshalJSON(value []byte) error {
    	if value[0] == '"' {
    		intstr.Type = String
    		return json.Unmarshal(value, &intstr.StrVal)
    	}
    	intstr.Type = Int
    	return json.Unmarshal(value, &intstr.IntVal)
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 15:07:03 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  3. pkg/apis/apps/v1beta2/zz_generated.defaults.go

    			}
    			if a.LivenessProbe.ProbeHandler.GRPC != nil {
    				if a.LivenessProbe.ProbeHandler.GRPC.Service == nil {
    					var ptrVar1 string = ""
    					a.LivenessProbe.ProbeHandler.GRPC.Service = &ptrVar1
    				}
    			}
    		}
    		if a.ReadinessProbe != nil {
    			v1.SetDefaults_Probe(a.ReadinessProbe)
    			if a.ReadinessProbe.ProbeHandler.HTTPGet != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Nov 17 17:31:23 UTC 2021
    - 40K bytes
    - Viewed (0)
  4. platforms/documentation/docs/src/docs/userguide/authoring-builds/plugins/publishing_gradle_plugins.adoc

    // See the License for the specific language governing permissions and
    // limitations under the License.
    
    [[publishing_portal]]
    = Publishing Plugins to the Gradle Plugin Portal
    :portal: Gradle Plugin Portal
    :plugin: Greeting Plugin
    :publishplugin: Plugin Publishing Plugin
    :plugin-reference-documentation: https://plugins.gradle.org/docs/publish-plugin[reference documentation of the {publishplugin}]
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Mar 13 18:40:53 UTC 2024
    - 11.6K bytes
    - Viewed (0)
  5. pkg/apis/core/v1/zz_generated.defaults.go

    				SetDefaults_HTTPGetAction(a.LivenessProbe.ProbeHandler.HTTPGet)
    			}
    			if a.LivenessProbe.ProbeHandler.GRPC != nil {
    				if a.LivenessProbe.ProbeHandler.GRPC.Service == nil {
    					var ptrVar1 string = ""
    					a.LivenessProbe.ProbeHandler.GRPC.Service = &ptrVar1
    				}
    			}
    		}
    		if a.ReadinessProbe != nil {
    			SetDefaults_Probe(a.ReadinessProbe)
    			if a.ReadinessProbe.ProbeHandler.HTTPGet != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 10 14:49:26 UTC 2023
    - 37.8K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiserver/pkg/cel/library/regex.go

    	return []cel.ProgramOption{
    		cel.OptimizeRegex(FindRegexOptimization, FindAllRegexOptimization),
    	}
    }
    
    func find(strVal ref.Val, regexVal ref.Val) ref.Val {
    	str, ok := strVal.Value().(string)
    	if !ok {
    		return types.MaybeNoSuchOverloadErr(strVal)
    	}
    	regex, ok := regexVal.Value().(string)
    	if !ok {
    		return types.MaybeNoSuchOverloadErr(regexVal)
    	}
    	re, err := regexp.Compile(regex)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Aug 23 21:31:27 UTC 2023
    - 5.7K bytes
    - Viewed (0)
  7. pkg/apis/apps/v1/zz_generated.defaults.go

    			}
    			if a.LivenessProbe.ProbeHandler.GRPC != nil {
    				if a.LivenessProbe.ProbeHandler.GRPC.Service == nil {
    					var ptrVar1 string = ""
    					a.LivenessProbe.ProbeHandler.GRPC.Service = &ptrVar1
    				}
    			}
    		}
    		if a.ReadinessProbe != nil {
    			corev1.SetDefaults_Probe(a.ReadinessProbe)
    			if a.ReadinessProbe.ProbeHandler.HTTPGet != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Nov 17 17:31:23 UTC 2021
    - 40.8K bytes
    - Viewed (0)
  8. tests/test_tutorial/test_response_model/test_tutorial003_02.py

    client = TestClient(app)
    
    
    def test_get_portal():
        response = client.get("/portal")
        assert response.status_code == 200, response.text
        assert response.json() == {"message": "Here's your interdimensional portal."}
    
    
    def test_get_redirect():
        response = client.get("/portal", params={"teleport": True}, follow_redirects=False)
        assert response.status_code == 307, response.text
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Fri Jun 30 18:25:16 UTC 2023
    - 3.4K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apimachinery/pkg/util/intstr/instr_fuzz.go

    func (intstr *IntOrString) Fuzz(c fuzz.Continue) {
    	if intstr == nil {
    		return
    	}
    	if c.RandBool() {
    		intstr.Type = Int
    		c.Fuzz(&intstr.IntVal)
    		intstr.StrVal = ""
    	} else {
    		intstr.Type = String
    		intstr.IntVal = 0
    		c.Fuzz(&intstr.StrVal)
    	}
    }
    
    // ensure IntOrString implements fuzz.Interface
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Aug 24 19:47:49 UTC 2021
    - 1K bytes
    - Viewed (0)
  10. pkg/apis/extensions/v1beta1/zz_generated.defaults.go

    			}
    			if a.LivenessProbe.ProbeHandler.GRPC != nil {
    				if a.LivenessProbe.ProbeHandler.GRPC.Service == nil {
    					var ptrVar1 string = ""
    					a.LivenessProbe.ProbeHandler.GRPC.Service = &ptrVar1
    				}
    			}
    		}
    		if a.ReadinessProbe != nil {
    			v1.SetDefaults_Probe(a.ReadinessProbe)
    			if a.ReadinessProbe.ProbeHandler.HTTPGet != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jan 06 09:07:02 UTC 2023
    - 31.2K bytes
    - Viewed (0)
Back to top