func (c *FakeClusterRoles) List(opts api.ListOptions) (result *rbac.ClusterRoleList, err error) { obj, err := c.Fake. Invokes(core.NewRootListAction(clusterrolesResource, opts), &rbac.ClusterRoleList{}) if obj == nil { return nil, err } label, _, _ := core.ExtractFromListOptions(opts) if label == nil { label = labels.Everything() } list := &rbac.ClusterRoleList{} for _, item := range obj.(*rbac.ClusterRoleList).Items { if label.Matches(labels.Set(item.Labels)) { list.Items = append(list.Items, item) } } return list, err }
func (c *FakeThirdPartyResources) List(opts v1.ListOptions) (result *v1beta1.ThirdPartyResourceList, err error) { obj, err := c.Fake. Invokes(core.NewRootListAction(thirdpartyresourcesResource, opts), &v1beta1.ThirdPartyResourceList{}) if obj == nil { return nil, err } label, _, _ := core.ExtractFromListOptions(opts) if label == nil { label = labels.Everything() } list := &v1beta1.ThirdPartyResourceList{} for _, item := range obj.(*v1beta1.ThirdPartyResourceList).Items { if label.Matches(labels.Set(item.Labels)) { list.Items = append(list.Items, item) } } return list, err }
func (c *FakeCertificateSigningRequests) List(opts api.ListOptions) (result *certificates.CertificateSigningRequestList, err error) { obj, err := c.Fake. Invokes(core.NewRootListAction(certificatesigningrequestsResource, opts), &certificates.CertificateSigningRequestList{}) if obj == nil { return nil, err } label, _, _ := core.ExtractFromListOptions(opts) if label == nil { label = labels.Everything() } list := &certificates.CertificateSigningRequestList{} for _, item := range obj.(*certificates.CertificateSigningRequestList).Items { if label.Matches(labels.Set(item.Labels)) { list.Items = append(list.Items, item) } } return list, err }
func (c *FakePodSecurityPolicies) List(opts api.ListOptions) (result *extensions.PodSecurityPolicyList, err error) { obj, err := c.Fake. Invokes(core.NewRootListAction(podsecuritypoliciesResource, opts), &extensions.PodSecurityPolicyList{}) if obj == nil { return nil, err } label, _, _ := core.ExtractFromListOptions(opts) if label == nil { label = labels.Everything() } list := &extensions.PodSecurityPolicyList{} for _, item := range obj.(*extensions.PodSecurityPolicyList).Items { if label.Matches(labels.Set(item.Labels)) { list.Items = append(list.Items, item) } } return list, err }
func (c *FakeConfigMaps) List(opts v1.ListOptions) (result *v1.ConfigMapList, err error) { obj, err := c.Fake. Invokes(core.NewListAction(configmapsResource, c.ns, opts), &v1.ConfigMapList{}) if obj == nil { return nil, err } label, _, _ := core.ExtractFromListOptions(opts) if label == nil { label = labels.Everything() } list := &v1.ConfigMapList{} for _, item := range obj.(*v1.ConfigMapList).Items { if label.Matches(labels.Set(item.Labels)) { list.Items = append(list.Items, item) } } return list, err }
func (c *FakeHorizontalPodAutoscalers) List(opts api.ListOptions) (result *autoscaling.HorizontalPodAutoscalerList, err error) { obj, err := c.Fake. Invokes(core.NewListAction(horizontalpodautoscalersResource, c.ns, opts), &autoscaling.HorizontalPodAutoscalerList{}) if obj == nil { return nil, err } label, _, _ := core.ExtractFromListOptions(opts) if label == nil { label = labels.Everything() } list := &autoscaling.HorizontalPodAutoscalerList{} for _, item := range obj.(*autoscaling.HorizontalPodAutoscalerList).Items { if label.Matches(labels.Set(item.Labels)) { list.Items = append(list.Items, item) } } return list, err }
func (c *FakePersistentVolumeClaims) List(opts api.ListOptions) (result *api.PersistentVolumeClaimList, err error) { obj, err := c.Fake. Invokes(core.NewListAction(persistentvolumeclaimsResource, c.ns, opts), &api.PersistentVolumeClaimList{}) if obj == nil { return nil, err } label, _, _ := core.ExtractFromListOptions(opts) if label == nil { label = labels.Everything() } list := &api.PersistentVolumeClaimList{} for _, item := range obj.(*api.PersistentVolumeClaimList).Items { if label.Matches(labels.Set(item.Labels)) { list.Items = append(list.Items, item) } } return list, err }
func (c *FakeDaemonSets) List(opts api.ListOptions) (result *extensions.DaemonSetList, err error) { obj, err := c.Fake. Invokes(core.NewListAction(daemonsetsResource, c.ns, opts), &extensions.DaemonSetList{}) if obj == nil { return nil, err } label, _, _ := core.ExtractFromListOptions(opts) if label == nil { label = labels.Everything() } list := &extensions.DaemonSetList{} for _, item := range obj.(*extensions.DaemonSetList).Items { if label.Matches(labels.Set(item.Labels)) { list.Items = append(list.Items, item) } } return list, err }
func (c *FakeTestTypes) List(opts api.ListOptions) (result *testgroup_k8s_io.TestTypeList, err error) { obj, err := c.Fake. Invokes(core.NewListAction(testtypesResource, c.ns, opts), &testgroup_k8s_io.TestTypeList{}) if obj == nil { return nil, err } label, _, _ := core.ExtractFromListOptions(opts) if label == nil { label = labels.Everything() } list := &testgroup_k8s_io.TestTypeList{} for _, item := range obj.(*testgroup_k8s_io.TestTypeList).Items { if label.Matches(labels.Set(item.Labels)) { list.Items = append(list.Items, item) } } return list, err }