-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Expand file tree
/
Copy pathfake_appliedclusterresourcequota.go
More file actions
35 lines (27 loc) · 1.36 KB
/
fake_appliedclusterresourcequota.go
File metadata and controls
35 lines (27 loc) · 1.36 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
package testclient
import (
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/runtime/schema"
clientgotesting "k8s.io/client-go/testing"
quotaapi "github.com/openshift/origin/pkg/quota/apis/quota"
)
type FakeAppliedClusterResourceQuotas struct {
Fake *Fake
Namespace string
}
var appliedClusterResourceQuotasResource = schema.GroupVersionResource{Group: "", Version: "", Resource: "appliedclusterresourcequotas"}
var appliedClusterResourceQuotasKind = schema.GroupVersionKind{Group: "", Version: "", Kind: "AppliedClusterResourceQuota"}
func (c *FakeAppliedClusterResourceQuotas) Get(name string, options metav1.GetOptions) (*quotaapi.AppliedClusterResourceQuota, error) {
obj, err := c.Fake.Invokes(clientgotesting.NewGetAction(appliedClusterResourceQuotasResource, c.Namespace, name), "aapi.AppliedClusterResourceQuota{})
if obj == nil {
return nil, err
}
return obj.(*quotaapi.AppliedClusterResourceQuota), err
}
func (c *FakeAppliedClusterResourceQuotas) List(opts metav1.ListOptions) (*quotaapi.AppliedClusterResourceQuotaList, error) {
obj, err := c.Fake.Invokes(clientgotesting.NewListAction(appliedClusterResourceQuotasResource, appliedClusterResourceQuotasKind, c.Namespace, opts), "aapi.AppliedClusterResourceQuotaList{})
if obj == nil {
return nil, err
}
return obj.(*quotaapi.AppliedClusterResourceQuotaList), err
}