Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for StatusDetails (2.45 sec)

  1. staging/src/k8s.io/apimachinery/pkg/api/errors/errors_test.go

    	}
    }
    
    func TestNewInvalid(t *testing.T) {
    	testCases := []struct {
    		Err     *field.Error
    		Details *metav1.StatusDetails
    		Msg     string
    	}{
    		{
    			field.Duplicate(field.NewPath("field[0].name"), "bar"),
    			&metav1.StatusDetails{
    				Kind: "Kind",
    				Name: "name",
    				Causes: []metav1.StatusCause{{
    					Type:  metav1.CauseTypeFieldValueDuplicate,
    					Field: "field[0].name",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Oct 28 07:31:28 UTC 2023
    - 19.5K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apimachinery/pkg/apis/meta/v1/zz_generated.deepcopy.go

    func (in *StatusDetails) DeepCopyInto(out *StatusDetails) {
    	*out = *in
    	if in.Causes != nil {
    		in, out := &in.Causes, &out.Causes
    		*out = make([]StatusCause, len(*in))
    		copy(*out, *in)
    	}
    	return
    }
    
    // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StatusDetails.
    func (in *StatusDetails) DeepCopy() *StatusDetails {
    	if in == nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 01 10:00:25 UTC 2023
    - 32.2K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/endpoints/handlers/delete.go

    		// object with the response.
    		if result == nil {
    			result = &metav1.Status{
    				Status: metav1.StatusSuccess,
    				Code:   int32(status),
    				Details: &metav1.StatusDetails{
    					Name: name,
    					Kind: scope.Kind.Kind,
    				},
    			}
    		}
    
    		span.AddEvent("About to write a response")
    		defer span.AddEvent("Writing http response done")
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 01 10:00:32 UTC 2023
    - 11.4K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiserver/pkg/util/proxy/streamtranslator_test.go

    		err = ctx.writeStatus(&apierrors.StatusError{ErrStatus: metav1.Status{
    			Status: metav1.StatusFailure,
    			Reason: rcconstants.NonZeroExitCodeReason,
    			Details: &metav1.StatusDetails{
    				Causes: []metav1.StatusCause{
    					{
    						Type:    rcconstants.ExitCodeCauseType,
    						Message: fmt.Sprintf("%d", expectedExitCode),
    					},
    				},
    			},
    		}})
    		if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Feb 27 23:21:55 UTC 2024
    - 36.4K bytes
    - Viewed (0)
Back to top