func (c *FakePersistentVolumes) Create(persistentVolume *api.PersistentVolume) (result *api.PersistentVolume, err error) { obj, err := c.Fake. Invokes(core.NewRootCreateAction("persistentvolumes", persistentVolume), &api.PersistentVolume{}) if obj == nil { return nil, err } return obj.(*api.PersistentVolume), err }
func (c *FakeNamespaces) Create(namespace *api.Namespace) (result *api.Namespace, err error) { obj, err := c.Fake. Invokes(core.NewRootCreateAction("namespaces", namespace), &api.Namespace{}) if obj == nil { return nil, err } return obj.(*api.Namespace), err }
func (c *FakeComponentStatuses) Create(componentStatus *api.ComponentStatus) (result *api.ComponentStatus, err error) { obj, err := c.Fake. Invokes(core.NewRootCreateAction("componentstatuses", componentStatus), &api.ComponentStatus{}) if obj == nil { return nil, err } return obj.(*api.ComponentStatus), err }
func (c *FakeEvents) CreateWithEventNamespace(event *api.Event) (*api.Event, error) { action := core.NewRootCreateAction("events", event) if c.ns != "" { action = core.NewCreateAction("events", c.ns, event) } obj, err := c.Fake.Invokes(action, event) if obj == nil { return nil, err } return obj.(*api.Event), err }