Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for ptrsort (0.2 sec)

  1. staging/src/k8s.io/apimachinery/pkg/util/strategicpatch/patch.go

    		if err != nil {
    			return nil, err
    		}
    	}
    
    	sort.SliceStable(toSort, func(i, j int) bool {
    		if ii := index(order, toSort[i], mergeKey, kind); ii >= 0 {
    			if ij := index(order, toSort[j], mergeKey, kind); ij >= 0 {
    				return ii < ij
    			}
    		}
    		return true
    	})
    	toSort = append(toSort, toDelete...)
    	return toSort, nil
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 01 23:34:23 UTC 2023
    - 75.5K bytes
    - Viewed (0)
  2. istioctl/pkg/describe/describe.go

    	fmt.Fprintf(writer, "Effective PeerAuthentication:\n")
    	fmt.Fprintf(writer, "   Workload mTLS mode: %s\n", pa.Mode.String())
    	if len(pa.PerPort) != 0 {
    		fmt.Fprintf(writer, "   Port Level mTLS mode:\n")
    		for port, mode := range pa.PerPort {
    			fmt.Fprintf(writer, "      %d: %s\n", port, mode.String())
    		}
    	}
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sat Apr 13 05:23:38 UTC 2024
    - 50.4K bytes
    - Viewed (0)
  3. pilot/pkg/security/authn/policy_applier_test.go

    								Mode: v1beta1.PeerAuthentication_MutualTLS_UNSET,
    							},
    							100: {},
    						},
    					},
    				},
    			},
    			want: MergedPeerAuthentication{
    				Mode: model.MTLSStrict,
    				PerPort: map[uint32]model.MutualTLSMode{
    					80:  model.MTLSDisable,
    					90:  model.MTLSStrict,
    					100: model.MTLSStrict,
    				},
    			},
    		},
    	}
    	for _, tt := range tests {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Dec 01 07:32:22 UTC 2023
    - 60.2K bytes
    - Viewed (0)
  4. src/encoding/json/decode_test.go

    		t.Run(tt.Name, func(t *testing.T) {
    			ptrstr := fmt.Sprintf("%v", tt.ptr)
    			err := Unmarshal([]byte(tt.in), tt.ptr) // tt.ptr edited here
    			if err != nil {
    				t.Errorf("%s: Unmarshal error: %v", tt.Where, err)
    			}
    			if !reflect.DeepEqual(tt.ptr, tt.out) {
    				t.Errorf("%s: Unmarshal(%#q, %T):\n\tgot:  %v\n\twant: %v", tt.Where, tt.in, ptrstr, tt.ptr, tt.out)
    			}
    		})
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 11 16:40:14 UTC 2024
    - 67.6K bytes
    - Viewed (0)
Back to top