Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for CommonAccessor (0.1 sec)

  1. staging/src/k8s.io/apimachinery/pkg/api/meta/meta.go

    var errNotCommon = fmt.Errorf("object does not implement the common interface for accessing the SelfLink")
    
    // CommonAccessor returns a Common interface for the provided object or an error if the object does
    // not provide List.
    func CommonAccessor(obj interface{}) (metav1.Common, error) {
    	switch t := obj.(type) {
    	case List:
    		return t, nil
    	case ListMetaAccessor:
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Jun 25 16:23:43 UTC 2022
    - 16.5K bytes
    - Viewed (0)
Back to top