Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 28 for IntPtr (0.21 sec)

  1. src/database/sql/convert_test.go

    	}
    }
    
    func intPtrValue(intptr any) any {
    	return reflect.Indirect(reflect.Indirect(reflect.ValueOf(intptr))).Int()
    }
    
    func intValue(intptr any) int64 {
    	return reflect.Indirect(reflect.ValueOf(intptr)).Int()
    }
    
    func uintValue(intptr any) uint64 {
    	return reflect.Indirect(reflect.ValueOf(intptr)).Uint()
    }
    
    func float64Value(ptr any) float64 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 10 20:23:22 UTC 2024
    - 17K bytes
    - Viewed (0)
  2. src/cmd/cgo/internal/test/test.go

    } test9557bar = { 42 };
    struct issue9557_t *issue9557foo = &test9557bar;
    
    // issue 10303
    // Pointers passed to C were not marked as escaping (bug in cgo).
    
    typedef int *intptr;
    
    void setintstar(int *x) {
    	*x = 1;
    }
    
    void setintptr(intptr x) {
    	*x = 1;
    }
    
    void setvoidptr(void *x) {
    	*(int*)x = 1;
    }
    
    typedef struct Struct Struct;
    struct Struct {
    	int *P;
    };
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 15:50:06 UTC 2024
    - 48.5K bytes
    - Viewed (0)
  3. pkg/kubelet/lifecycle/handlers_test.go

    	tests := []struct {
    		Name        string
    		Port        intstr.IntOrString
    		ExpectError bool
    		Expected    string
    	}{
    		{
    			Name:     "consistent/with port",
    			Port:     intstr.FromString("70"),
    			Expected: "https://foo:70/bar",
    		}, {
    			Name:        "consistent/without port",
    			Port:        intstr.FromString(""),
    			ExpectError: true,
    		},
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 24.4K bytes
    - Viewed (0)
  4. pkg/apis/apps/v1beta1/defaults_test.go

    	_ "k8s.io/kubernetes/pkg/apis/core/install"
    	"k8s.io/kubernetes/pkg/features"
    	"k8s.io/utils/ptr"
    )
    
    func TestSetDefaultDeployment(t *testing.T) {
    	defaultIntOrString := intstr.FromString("25%")
    	differentIntOrString := intstr.FromInt32(5)
    	period := int64(v1.DefaultTerminationGracePeriodSeconds)
    	defaultTemplate := v1.PodTemplateSpec{
    		Spec: v1.PodSpec{
    			DNSPolicy:                     v1.DNSClusterFirst,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 17.4K bytes
    - Viewed (0)
  5. pkg/apis/apps/v1beta2/defaults_test.go

    	"k8s.io/kubernetes/pkg/features"
    	"k8s.io/utils/ptr"
    )
    
    func TestSetDefaultDaemonSetSpec(t *testing.T) {
    	defaultLabels := map[string]string{"foo": "bar"}
    	maxUnavailable := intstr.FromInt32(1)
    	maxSurge := intstr.FromInt32(0)
    	period := int64(v1.DefaultTerminationGracePeriodSeconds)
    	defaultTemplate := v1.PodTemplateSpec{
    		Spec: v1.PodSpec{
    			DNSPolicy:                     v1.DNSClusterFirst,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 23.4K bytes
    - Viewed (0)
  6. pkg/apis/apps/v1/defaults_test.go

    	"k8s.io/kubernetes/pkg/features"
    	"k8s.io/utils/ptr"
    )
    
    func TestSetDefaultDaemonSetSpec(t *testing.T) {
    	defaultLabels := map[string]string{"foo": "bar"}
    	maxUnavailable := intstr.FromInt32(1)
    	maxSurge := intstr.FromInt32(0)
    	period := int64(v1.DefaultTerminationGracePeriodSeconds)
    	defaultTemplate := v1.PodTemplateSpec{
    		Spec: v1.PodSpec{
    			DNSPolicy:                     v1.DNSClusterFirst,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 27.1K bytes
    - Viewed (0)
  7. pkg/registry/policy/poddisruptionbudget/strategy_test.go

    	// Changing MinAvailable?  OK
    	newMinAvailable := intstr.FromString("28%")
    	newPdb.Spec.MinAvailable = &newMinAvailable
    	Strategy.PrepareForUpdate(ctx, newPdb, pdb)
    	errs = Strategy.ValidateUpdate(ctx, newPdb, pdb)
    	if len(errs) != 0 {
    		t.Errorf("Expected no error updating MinAvailable on poddisruptionbudgets.")
    	}
    
    	// Changing MinAvailable to MaxAvailable? OK
    	maxUnavailable := intstr.FromString("28%")
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 19.2K bytes
    - Viewed (0)
  8. cmd/kubeadm/app/phases/addons/dns/dns_test.go

    								Name:     "dns",
    								Port:     53,
    								Protocol: v1.ProtocolUDP,
    								TargetPort: intstr.IntOrString{
    									Type:   0,
    									IntVal: 53,
    								},
    							},
    							{
    								Name:     "dns-tcp",
    								Port:     53,
    								Protocol: v1.ProtocolTCP,
    								TargetPort: intstr.IntOrString{
    									Type:   0,
    									IntVal: 53,
    								},
    							},
    						},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 11 10:21:20 UTC 2024
    - 41.7K bytes
    - Viewed (0)
  9. pkg/apis/apps/validation/validation.go

    // percentage.
    func ValidatePositiveIntOrPercent(intOrPercent intstr.IntOrString, fldPath *field.Path) field.ErrorList {
    	allErrs := field.ErrorList{}
    	switch intOrPercent.Type {
    	case intstr.String:
    		for _, msg := range validation.IsValidPercent(intOrPercent.StrVal) {
    			allErrs = append(allErrs, field.Invalid(fldPath, intOrPercent, msg))
    		}
    	case intstr.Int:
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Apr 06 22:11:20 UTC 2024
    - 41.4K bytes
    - Viewed (0)
  10. staging/src/k8s.io/api/policy/v1/types.go

    See the License for the specific language governing permissions and
    limitations under the License.
    */
    
    package v1
    
    import (
    	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
    	"k8s.io/apimachinery/pkg/util/intstr"
    )
    
    // DisruptionBudgetCause is the status cause returned for eviction failures caused by PodDisruptionBudget violations.
    const DisruptionBudgetCause metav1.CauseType = "DisruptionBudget"
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 23 17:42:49 UTC 2024
    - 10.8K bytes
    - Viewed (0)
Back to top