/
fake_imagestreammapping.go
31 lines (24 loc) · 1.11 KB
/
fake_imagestreammapping.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
27
28
29
30
31
// Code generated by client-gen. DO NOT EDIT.
package fake
import (
image "github.com/openshift/origin/pkg/image/apis/image"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
schema "k8s.io/apimachinery/pkg/runtime/schema"
testing "k8s.io/client-go/testing"
)
// FakeImageStreamMappings implements ImageStreamMappingInterface
type FakeImageStreamMappings struct {
Fake *FakeImage
ns string
}
var imagestreammappingsResource = schema.GroupVersionResource{Group: "image.openshift.io", Version: "", Resource: "imagestreammappings"}
var imagestreammappingsKind = schema.GroupVersionKind{Group: "image.openshift.io", Version: "", Kind: "ImageStreamMapping"}
// Create takes the representation of a imageStreamMapping and creates it. Returns the server's representation of the status, and an error, if there is any.
func (c *FakeImageStreamMappings) Create(imageStreamMapping *image.ImageStreamMapping) (result *v1.Status, err error) {
obj, err := c.Fake.
Invokes(testing.NewCreateAction(imagestreammappingsResource, c.ns, imageStreamMapping), &v1.Status{})
if obj == nil {
return nil, err
}
return obj.(*v1.Status), err
}