Search Options

Results per page
Sort
Preferred Languages
Advance

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

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

    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)
    }
    
    func (intstr *IntOrString) UnmarshalCBOR(value []byte) error {
    	if err := cbor.Unmarshal(value, &intstr.StrVal); err == nil {
    		intstr.Type = String
    		return 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

    // 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)
    }
    
    // MarshalJSON implements the json.Marshaller interface.
    func (intstr IntOrString) MarshalJSON() ([]byte, error) {
    	switch intstr.Type {
    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. operator/pkg/apis/istio/v1alpha1/value_types_json.go

    	return this.UnmarshalJSON(value)
    }
    
    func (this *IntOrString) ToKubernetes() intstr.IntOrString {
    	if this.IntVal != nil {
    		return intstr.FromInt32(this.GetIntVal().GetValue())
    	}
    	return intstr.FromString(this.GetStrVal().GetValue())
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sun Apr 21 17:42:54 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  4. pkg/kubelet/kuberuntime/labels_test.go

    			Exec: &v1.ExecAction{
    				Command: []string{"action1", "action2"},
    			},
    			HTTPGet: &v1.HTTPGetAction{
    				Path:   "path",
    				Host:   "host",
    				Port:   intstr.FromInt32(8080),
    				Scheme: "scheme",
    			},
    			TCPSocket: &v1.TCPSocketAction{
    				Port: intstr.FromString("80"),
    			},
    		},
    	}
    	container := &v1.Container{
    		Name:                   "test_container",
    		TerminationMessagePath: "/somepath",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 22 22:43:36 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  5. src/os/dir_darwin.go

    		size = 100
    		n = -1
    	}
    
    	var dirent syscall.Dirent
    	var entptr *syscall.Dirent
    	for len(names)+len(dirents)+len(infos) < size || n == -1 {
    		if errno := readdir_r(d.dir, &dirent, &entptr); errno != 0 {
    			if errno == syscall.EINTR {
    				continue
    			}
    			return names, dirents, infos, &PathError{Op: "readdir", Path: f.name, Err: errno}
    		}
    		if entptr == nil { // EOF
    			break
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 15 20:52:06 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  6. common-protos/k8s.io/apimachinery/pkg/util/intstr/generated.proto

    */
    
    
    // This file was autogenerated by go-to-protobuf. Do not edit it manually!
    
    syntax = "proto2";
    
    package k8s.io.apimachinery.pkg.util.intstr;
    
    // Package-wide variables from generator "generated".
    option go_package = "k8s.io/apimachinery/pkg/util/intstr";
    
    // IntOrString is a type that can hold an int32 or a string.  When used in
    // JSON or YAML marshalling and unmarshalling, it produces or consumes the
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Mar 11 18:43:24 UTC 2024
    - 1.3K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apimachinery/pkg/util/intstr/generated.pb.go

    See the License for the specific language governing permissions and
    limitations under the License.
    */
    
    // Code generated by protoc-gen-gogo. DO NOT EDIT.
    // source: k8s.io/apimachinery/pkg/util/intstr/generated.proto
    
    package intstr
    
    import (
    	fmt "fmt"
    
    	io "io"
    	math "math"
    	math_bits "math/bits"
    
    	proto "github.com/gogo/protobuf/proto"
    )
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 06:06:37 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  8. staging/src/k8s.io/api/policy/v1/generated.proto

    import "k8s.io/apimachinery/pkg/apis/meta/v1/generated.proto";
    import "k8s.io/apimachinery/pkg/runtime/generated.proto";
    import "k8s.io/apimachinery/pkg/runtime/schema/generated.proto";
    import "k8s.io/apimachinery/pkg/util/intstr/generated.proto";
    
    // Package-wide variables from generator "generated".
    option go_package = "k8s.io/api/policy/v1";
    
    // Eviction evicts a pod from its node subject to certain policies and safety constraints.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 28 15:34:11 UTC 2024
    - 8K bytes
    - Viewed (0)
  9. pkg/kubelet/lifecycle/handlers.go

    // If a port with the same name is found, it's ContainerPort value is returned.  If no matching
    // port is found, an error is returned.
    func resolvePort(portReference intstr.IntOrString, container *v1.Container) (int, error) {
    	if portReference.Type == intstr.Int {
    		return portReference.IntValue(), nil
    	}
    	portName := portReference.StrVal
    	port, err := strconv.Atoi(portName)
    	if err == nil {
    		return port, nil
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Feb 19 11:40:52 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  10. common-protos/k8s.io/api/policy/v1/generated.proto

    import "k8s.io/apimachinery/pkg/apis/meta/v1/generated.proto";
    import "k8s.io/apimachinery/pkg/runtime/generated.proto";
    import "k8s.io/apimachinery/pkg/runtime/schema/generated.proto";
    import "k8s.io/apimachinery/pkg/util/intstr/generated.proto";
    
    // Package-wide variables from generator "generated".
    option go_package = "k8s.io/api/policy/v1";
    
    // Eviction evicts a pod from its node subject to certain policies and safety constraints.
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Mar 11 18:43:24 UTC 2024
    - 8K bytes
    - Viewed (0)
Back to top