예제 #1
0
func (c *FakeNamespaces) Get(name string) (result *api.Namespace, err error) {
	obj, err := c.Fake.
		Invokes(core.NewRootGetAction("namespaces", name), &api.Namespace{})
	if obj == nil {
		return nil, err
	}
	return obj.(*api.Namespace), err
}
예제 #2
0
func (c *FakePersistentVolumes) Get(name string) (result *api.PersistentVolume, err error) {
	obj, err := c.Fake.
		Invokes(core.NewRootGetAction("persistentvolumes", name), &api.PersistentVolume{})
	if obj == nil {
		return nil, err
	}
	return obj.(*api.PersistentVolume), err
}
예제 #3
0
func (c *FakeComponentStatuses) Get(name string) (result *api.ComponentStatus, err error) {
	obj, err := c.Fake.
		Invokes(core.NewRootGetAction("componentstatuses", name), &api.ComponentStatus{})
	if obj == nil {
		return nil, err
	}
	return obj.(*api.ComponentStatus), err
}