// List takes label and field selectors, and returns the list of DbRoles that match those selectors.
List takes label and field selectors, and returns the list of DbRoles that match those selectors.
// List takes label and field selectors and returns the list of DbRoles that match those selectors .
func (c *FakeDbRoles) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.DbRoleList, err error) {
	obj, err := c.Fake.
		Invokes(testing.NewListAction(dbrolesResource, dbrolesKind, c.ns, opts), &v1alpha1.DbRoleList{})
	if obj == nil {
		return nil, err
	}
	label, _, _ := testing.ExtractFromListOptions(opts)
	if label == nil {
		label = labels.Everything()
	}
	list := &v1alpha1.DbRoleList{ListMeta: obj.(*v1alpha1.DbRoleList).ListMeta}
	for _, item := range obj.(*v1alpha1.DbRoleList).Items {
		if label.Matches(labels.Set(item.Labels)) {
			list.Items = append(list.Items, item)
		}
	}
	return list, err
}
func ( c * FakeDbRoles ) List ( ctx context . Context , opts v1 . ListOptions ) ( result * v1alpha1 . DbRoleList , err error ) { obj , err := c . Fake . Invokes ( testing . NewListAction ( dbrolesResource , dbrolesKind , c . ns , opts ) , & v1alpha1 . DbRoleList { } ) if obj == nil { return nil , err } label , _ , _ := testing . ExtractFromListOptions ( opts ) if label == nil { label = labels . Everything ( ) } list := & v1alpha1 . DbRoleList { ListMeta : obj . ( * v1alpha1 . DbRoleList ) . ListMeta } for _ , item := range obj . ( * v1alpha1 . DbRoleList ) . Items { if label . Matches ( labels . Set ( item . Labels ) ) { list . Items = append ( list . Items , item ) } } return list , err }
List takes label and field selectors, and returns the list of DbRoles that match those selectors.
List takes label and field selectors and returns the list of DbRoles that match those selectors .