示例#1
0
func (c *FakeImageStreams) Import(inObj *imageapi.ImageStreamImport) (*imageapi.ImageStreamImport, error) {
	action := ktestclient.CreateActionImpl{}
	action.Verb = "create"
	action.Resource = "imagestreamimports"
	action.Object = inObj
	obj, err := c.Fake.Invokes(action, inObj)
	if obj == nil {
		return nil, err
	}
	return obj.(*imageapi.ImageStreamImport), nil
}
示例#2
0
func (c *FakeImageStreams) UpdateStatus(inObj *imageapi.ImageStream) (result *imageapi.ImageStream, err error) {
	action := ktestclient.CreateActionImpl{}
	action.Verb = "update"
	action.Resource = "imagestreams"
	action.Subresource = "status"
	action.Object = inObj

	obj, err := c.Fake.Invokes(action, inObj)
	if obj == nil {
		return nil, err
	}

	return obj.(*imageapi.ImageStream), err
}