Documentation ¶
Index ¶
- func ServerPreferredResources(fake *ServerResourcesFake) ([]*metav1.APIResourceList, error)
- type ServerResourcesFake
- func (s ServerResourcesFake) ServerGroupsAndResources() ([]*metav1.APIGroup, []*metav1.APIResourceList, error)
- func (s ServerResourcesFake) ServerPreferredNamespacedResources() ([]*metav1.APIResourceList, error)
- func (s ServerResourcesFake) ServerPreferredResources() ([]*metav1.APIResourceList, error)
- func (s ServerResourcesFake) ServerResources() ([]*metav1.APIResourceList, error)deprecated
- func (s ServerResourcesFake) ServerResourcesForGroupVersion(groupVersion string) (*metav1.APIResourceList, error)
- type SubjectAccessFake
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ServerPreferredResources ¶
func ServerPreferredResources(fake *ServerResourcesFake) ([]*metav1.APIResourceList, error)
Types ¶
type ServerResourcesFake ¶
type ServerResourcesFake struct { Empty bool NoVerbs bool Err bool Namespaced bool APIResourceList []*metav1.APIResourceList ServerPreferredResourcesFn func(*ServerResourcesFake) ([]*metav1.APIResourceList, error) }
func (ServerResourcesFake) ServerGroupsAndResources ¶
func (s ServerResourcesFake) ServerGroupsAndResources() ([]*metav1.APIGroup, []*metav1.APIResourceList, error)
ServerResources returns the supported groups and resources for all groups and versions.
The returned group and resource lists might be non-nil with partial results even in the case of non-nil error.
func (ServerResourcesFake) ServerPreferredNamespacedResources ¶
func (s ServerResourcesFake) ServerPreferredNamespacedResources() ([]*metav1.APIResourceList, error)
ServerPreferredNamespacedResources returns the supported namespaced resources with the version preferred by the server.
The returned resource list might be non-nil with partial results even in the case of non-nil error.
func (ServerResourcesFake) ServerPreferredResources ¶
func (s ServerResourcesFake) ServerPreferredResources() ([]*metav1.APIResourceList, error)
ServerPreferredResources returns the supported resources with the version preferred by the server.
The returned group and resource lists might be non-nil with partial results even in the case of non-nil error.
func (ServerResourcesFake) ServerResources
deprecated
func (s ServerResourcesFake) ServerResources() ([]*metav1.APIResourceList, error)
ServerResources returns the supported resources for all groups and versions.
The returned resource list might be non-nil with partial results even in the case of non-nil error.
Deprecated: use ServerGroupsAndResources instead.
func (ServerResourcesFake) ServerResourcesForGroupVersion ¶
func (s ServerResourcesFake) ServerResourcesForGroupVersion(groupVersion string) (*metav1.APIResourceList, error)
ServerResourcesForGroupVersion returns the supported resources for a group and version.
type SubjectAccessFake ¶
type SubjectAccessFake struct {
CreateFn func(*SubjectAccessFake) (*v1.SelfSubjectAccessReview, error)
}
func (SubjectAccessFake) Create ¶
func (s SubjectAccessFake) Create(ctx context.Context, selfSubjectAccessReview *v1.SelfSubjectAccessReview, opts metav1.CreateOptions) (*v1.SelfSubjectAccessReview, error)