本文整理汇总了Golang中k8s/io/kubernetes/pkg/client/testing/core.NewRootUpdateSubresourceAction函数的典型用法代码示例。如果您正苦于以下问题:Golang NewRootUpdateSubresourceAction函数的具体用法?Golang NewRootUpdateSubresourceAction怎么用?Golang NewRootUpdateSubresourceAction使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了NewRootUpdateSubresourceAction函数的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Golang代码示例。
示例1: UpdateStatus
func (c *FakeNamespaces) UpdateStatus(namespace *v1.Namespace) (*v1.Namespace, error) {
obj, err := c.Fake.
Invokes(core.NewRootUpdateSubresourceAction(namespacesResource, "status", namespace), &v1.Namespace{})
if obj == nil {
return nil, err
}
return obj.(*v1.Namespace), err
}
示例2: UpdateStatus
func (c *FakeCertificateSigningRequests) UpdateStatus(certificateSigningRequest *certificates.CertificateSigningRequest) (*certificates.CertificateSigningRequest, error) {
obj, err := c.Fake.
Invokes(core.NewRootUpdateSubresourceAction(certificatesigningrequestsResource, "status", certificateSigningRequest), &certificates.CertificateSigningRequest{})
if obj == nil {
return nil, err
}
return obj.(*certificates.CertificateSigningRequest), err
}
示例3: UpdateStatus
func (c *FakeClusters) UpdateStatus(cluster *federation.Cluster) (*federation.Cluster, error) {
obj, err := c.Fake.
Invokes(core.NewRootUpdateSubresourceAction(clustersResource, "status", cluster), &federation.Cluster{})
if obj == nil {
return nil, err
}
return obj.(*federation.Cluster), err
}
示例4: UpdateStatus
func (c *FakePersistentVolumes) UpdateStatus(persistentVolume *v1.PersistentVolume) (*v1.PersistentVolume, error) {
obj, err := c.Fake.
Invokes(core.NewRootUpdateSubresourceAction(persistentvolumesResource, "status", persistentVolume), &v1.PersistentVolume{})
if obj == nil {
return nil, err
}
return obj.(*v1.PersistentVolume), err
}
示例5: UpdateStatus
func (c *FakeNodes) UpdateStatus(node *api.Node) (*api.Node, error) {
obj, err := c.Fake.
Invokes(core.NewRootUpdateSubresourceAction("nodes", "status", node), &api.Node{})
if obj == nil {
return nil, err
}
return obj.(*api.Node), err
}
示例6: UpdateStatus
func (c *FakeAPIServices) UpdateStatus(aPIService *apiregistration.APIService) (*apiregistration.APIService, error) {
obj, err := c.Fake.
Invokes(core.NewRootUpdateSubresourceAction(apiservicesResource, "status", aPIService), &apiregistration.APIService{})
if obj == nil {
return nil, err
}
return obj.(*apiregistration.APIService), err
}
示例7: UpdateStatus
func (c *FakeNetworks) UpdateStatus(network *api.Network) (*api.Network, error) {
obj, err := c.Fake.
Invokes(core.NewRootUpdateSubresourceAction("networks", "status", network), &api.Network{})
if obj == nil {
return nil, err
}
return obj.(*api.Network), err
}
示例8: UpdateStatus
func (c *FakeProjects) UpdateStatus(project *v1.Project) (*v1.Project, error) {
obj, err := c.Fake.
Invokes(core.NewRootUpdateSubresourceAction(projectsResource, "status", project), &v1.Project{})
if obj == nil {
return nil, err
}
return obj.(*v1.Project), err
}