本文整理汇总了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
}
开发者ID:CodeJuan,项目名称:kubernetes,代码行数:8,代码来源:fake_namespace.go
示例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
}
开发者ID:humblec,项目名称:kubernetes,代码行数:8,代码来源:fake_certificatesigningrequest.go
示例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
}
开发者ID:Clarifai,项目名称:kubernetes,代码行数:8,代码来源:fake_cluster.go
示例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
}
开发者ID:alex-mohr,项目名称:kubernetes,代码行数:8,代码来源:fake_persistentvolume.go
示例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
}
开发者ID:XiaoningDing,项目名称:UbernetesPOC,代码行数:8,代码来源:fake_node.go
示例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
}
开发者ID:kubernetes,项目名称:kubernetes,代码行数:8,代码来源:fake_apiservice.go
示例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
}
开发者ID:thed00de,项目名称:hypernetes,代码行数:8,代码来源:fake_network.go
示例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
}
开发者ID:juanluisvaladas,项目名称:origin,代码行数:8,代码来源:fake_project.go
注:本文中的k8s/io/kubernetes/pkg/client/testing/core.NewRootUpdateSubresourceAction函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论