Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for IsPreconditionFailed (0.13 sec)

  1. staging/src/k8s.io/apimachinery/pkg/util/mergepatch/errors.go

    }
    
    func ErrBadPatchType(t interface{}, m map[string]interface{}) error {
    	return fmt.Errorf("unknown patch type: %s in map: %v", t, m)
    }
    
    // IsPreconditionFailed returns true if the provided error indicates
    // a precondition failed.
    func IsPreconditionFailed(err error) bool {
    	_, ok := err.(ErrPreconditionFailed)
    	return ok
    }
    
    type ErrPreconditionFailed struct {
    	message string
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Nov 01 13:12:11 UTC 2017
    - 3.1K bytes
    - Viewed (0)
Back to top