forked from openshift/origin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
fake_projectrequest.go
26 lines (21 loc) · 1016 Bytes
/
fake_projectrequest.go
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
package fake
import (
project "github.com/openshift/origin/pkg/project/apis/project"
schema "k8s.io/apimachinery/pkg/runtime/schema"
testing "k8s.io/client-go/testing"
)
// FakeProjectRequests implements ProjectRequestInterface
type FakeProjectRequests struct {
Fake *FakeProject
}
var projectrequestsResource = schema.GroupVersionResource{Group: "project.openshift.io", Version: "", Resource: "projectrequests"}
var projectrequestsKind = schema.GroupVersionKind{Group: "project.openshift.io", Version: "", Kind: "ProjectRequest"}
// Create takes the representation of a projectRequest and creates it. Returns the server's representation of the projectResource, and an error, if there is any.
func (c *FakeProjectRequests) Create(projectRequest *project.ProjectRequest) (result *project.Project, err error) {
obj, err := c.Fake.
Invokes(testing.NewRootCreateAction(projectrequestsResource, projectRequest), &project.Project{})
if obj == nil {
return nil, err
}
return obj.(*project.Project), err
}