本文整理汇总了Golang中k8s/io/kubernetes/pkg/client/testing/core.NewUpdateAction函数的典型用法代码示例。如果您正苦于以下问题:Golang NewUpdateAction函数的具体用法?Golang NewUpdateAction怎么用?Golang NewUpdateAction使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了NewUpdateAction函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Golang代码示例。
示例1: Update
func (c *FakeDeploymentConfigs) Update(inObj *deployapi.DeploymentConfig) (*deployapi.DeploymentConfig, error) {
obj, err := c.Fake.Invokes(core.NewUpdateAction(deploymentConfigsResource, c.Namespace, inObj), inObj)
if obj == nil {
return nil, err
}
return obj.(*deployapi.DeploymentConfig), err
}
开发者ID:xgwang-zte,项目名称:origin,代码行数:8,代码来源:fake_deploymentconfigs.go
示例2: UpdateStatus
func (c *FakeDeploymentConfigs) UpdateStatus(inObj *deployapi.DeploymentConfig) (*deployapi.DeploymentConfig, error) {
obj, err := c.Fake.Invokes(core.NewUpdateAction(deployapi.SchemeGroupVersion.WithResource("deploymentconfigs/status"), c.Namespace, inObj), inObj)
if obj == nil {
return nil, err
}
return obj.(*deployapi.DeploymentConfig), err
}
开发者ID:xgwang-zte,项目名称:origin,代码行数:8,代码来源:fake_deploymentconfigs.go
示例3: Update
func (c *FakeBuildConfigs) Update(inObj *buildapi.BuildConfig) (*buildapi.BuildConfig, error) {
obj, err := c.Fake.Invokes(core.NewUpdateAction(buildConfigsResource, c.Namespace, inObj), inObj)
if obj == nil {
return nil, err
}
return obj.(*buildapi.BuildConfig), err
}
开发者ID:xgwang-zte,项目名称:origin,代码行数:8,代码来源:fake_buildconfigs.go
示例4: Update
func (c *FakeTemplates) Update(inObj *templateapi.Template) (*templateapi.Template, error) {
obj, err := c.Fake.Invokes(core.NewUpdateAction(templatesResource, c.Namespace, inObj), inObj)
if obj == nil {
return nil, err
}
return obj.(*templateapi.Template), err
}
开发者ID:xgwang-zte,项目名称:origin,代码行数:8,代码来源:fake_templates.go
示例5: UpdateScale
func (c *FakeDeploymentConfigs) UpdateScale(inObj *extensions.Scale) (*extensions.Scale, error) {
obj, err := c.Fake.Invokes(core.NewUpdateAction(deployapi.SchemeGroupVersion.WithResource("deploymentconfigs/scale"), c.Namespace, inObj), inObj)
if obj == nil {
return nil, err
}
return obj.(*extensions.Scale), err
}
开发者ID:xgwang-zte,项目名称:origin,代码行数:8,代码来源:fake_deploymentconfigs.go
示例6: Update
func (c *FakePodTemplates) Update(podTemplate *v1.PodTemplate) (result *v1.PodTemplate, err error) {
obj, err := c.Fake.
Invokes(core.NewUpdateAction(podtemplatesResource, c.ns, podTemplate), &v1.PodTemplate{})
if obj == nil {
return nil, err
}
return obj.(*v1.PodTemplate), err
}
开发者ID:Q-Lee,项目名称:kubernetes,代码行数:9,代码来源:fake_podtemplate.go
示例7: Update
func (c *FakePodTemplates) Update(podTemplate *api.PodTemplate) (result *api.PodTemplate, err error) {
obj, err := c.Fake.
Invokes(core.NewUpdateAction("podtemplates", c.ns, podTemplate), &api.PodTemplate{})
if obj == nil {
return nil, err
}
return obj.(*api.PodTemplate), err
}
开发者ID:CNDonny,项目名称:scope,代码行数:9,代码来源:fake_podtemplate.go
示例8: Update
func (c *FakeStatefulSets) Update(statefulSet *v1beta1.StatefulSet) (result *v1beta1.StatefulSet, err error) {
obj, err := c.Fake.
Invokes(core.NewUpdateAction(statefulsetsResource, c.ns, statefulSet), &v1beta1.StatefulSet{})
if obj == nil {
return nil, err
}
return obj.(*v1beta1.StatefulSet), err
}
开发者ID:eljefedelrodeodeljefe,项目名称:kubernetes,代码行数:9,代码来源:fake_statefulset.go
示例9: Update
func (c *FakeLimitRanges) Update(limitRange *api.LimitRange) (result *api.LimitRange, err error) {
obj, err := c.Fake.
Invokes(core.NewUpdateAction("limitranges", c.ns, limitRange), &api.LimitRange{})
if obj == nil {
return nil, err
}
return obj.(*api.LimitRange), err
}
开发者ID:CNDonny,项目名称:scope,代码行数:9,代码来源:fake_limitrange.go
示例10: Update
func (c *FakeServices) Update(service *api.Service) (result *api.Service, err error) {
obj, err := c.Fake.
Invokes(core.NewUpdateAction("services", c.ns, service), &api.Service{})
if obj == nil {
return nil, err
}
return obj.(*api.Service), err
}
开发者ID:CNDonny,项目名称:scope,代码行数:9,代码来源:fake_service.go
示例11: Update
func (c *FakeJobs) Update(job *v1beta1.Job) (result *v1beta1.Job, err error) {
obj, err := c.Fake.
Invokes(core.NewUpdateAction(jobsResource, c.ns, job), &v1beta1.Job{})
if obj == nil {
return nil, err
}
return obj.(*v1beta1.Job), err
}
开发者ID:nak3,项目名称:kubernetes,代码行数:9,代码来源:fake_job.go
示例12: Update
func (c *FakeSecrets) Update(secret *api.Secret) (result *api.Secret, err error) {
obj, err := c.Fake.
Invokes(core.NewUpdateAction("secrets", c.ns, secret), &api.Secret{})
if obj == nil {
return nil, err
}
return obj.(*api.Secret), err
}
开发者ID:XiaoningDing,项目名称:UbernetesPOC,代码行数:9,代码来源:fake_secret.go
示例13: Update
func (c *FakeDeployments) Update(deployment *v1beta1.Deployment) (result *v1beta1.Deployment, err error) {
obj, err := c.Fake.
Invokes(core.NewUpdateAction(deploymentsResource, c.ns, deployment), &v1beta1.Deployment{})
if obj == nil {
return nil, err
}
return obj.(*v1beta1.Deployment), err
}
开发者ID:Clarifai,项目名称:kubernetes,代码行数:9,代码来源:fake_deployment.go
示例14: Update
func (c *FakeUsers) Update(user *api.User) (result *api.User, err error) {
obj, err := c.Fake.
Invokes(core.NewUpdateAction(usersResource, c.ns, user), &api.User{})
if obj == nil {
return nil, err
}
return obj.(*api.User), err
}
开发者ID:juanluisvaladas,项目名称:origin,代码行数:9,代码来源:fake_user.go
示例15: Update
func (c *FakePods) Update(pod *v1.Pod) (result *v1.Pod, err error) {
obj, err := c.Fake.
Invokes(core.NewUpdateAction("pods", c.ns, pod), &v1.Pod{})
if obj == nil {
return nil, err
}
return obj.(*v1.Pod), err
}
开发者ID:RomainVabre,项目名称:origin,代码行数:9,代码来源:fake_pod.go
示例16: Update
func (c *FakeDeploymentConfigs) Update(deploymentConfig *v1.DeploymentConfig) (result *v1.DeploymentConfig, err error) {
obj, err := c.Fake.
Invokes(core.NewUpdateAction(deploymentconfigsResource, c.ns, deploymentConfig), &v1.DeploymentConfig{})
if obj == nil {
return nil, err
}
return obj.(*v1.DeploymentConfig), err
}
开发者ID:Xmagicer,项目名称:origin,代码行数:9,代码来源:fake_deploymentconfig.go
示例17: Update
func (c *FakePolicies) Update(policy *api.Policy) (result *api.Policy, err error) {
obj, err := c.Fake.
Invokes(core.NewUpdateAction(policiesResource, c.ns, policy), &api.Policy{})
if obj == nil {
return nil, err
}
return obj.(*api.Policy), err
}
开发者ID:Xmagicer,项目名称:origin,代码行数:9,代码来源:fake_policy.go
示例18: Update
func (c *FakeReplicaSets) Update(replicaSet *v1beta1.ReplicaSet) (result *v1beta1.ReplicaSet, err error) {
obj, err := c.Fake.
Invokes(core.NewUpdateAction(replicasetsResource, c.ns, replicaSet), &v1beta1.ReplicaSet{})
if obj == nil {
return nil, err
}
return obj.(*v1beta1.ReplicaSet), err
}
开发者ID:CodeJuan,项目名称:kubernetes,代码行数:9,代码来源:fake_replicaset.go
示例19: Update
func (c *FakeLimitRanges) Update(limitRange *v1.LimitRange) (result *v1.LimitRange, err error) {
obj, err := c.Fake.
Invokes(core.NewUpdateAction(limitrangesResource, c.ns, limitRange), &v1.LimitRange{})
if obj == nil {
return nil, err
}
return obj.(*v1.LimitRange), err
}
开发者ID:Q-Lee,项目名称:kubernetes,代码行数:9,代码来源:fake_limitrange.go
示例20: Update
func (c *FakeHorizontalPodAutoscalers) Update(horizontalPodAutoscaler *v1beta1.HorizontalPodAutoscaler) (result *v1beta1.HorizontalPodAutoscaler, err error) {
obj, err := c.Fake.
Invokes(core.NewUpdateAction("horizontalpodautoscalers", c.ns, horizontalPodAutoscaler), &v1beta1.HorizontalPodAutoscaler{})
if obj == nil {
return nil, err
}
return obj.(*v1beta1.HorizontalPodAutoscaler), err
}
开发者ID:mml,项目名称:kubernetes,代码行数:9,代码来源:fake_horizontalpodautoscaler.go
注:本文中的k8s/io/kubernetes/pkg/client/testing/core.NewUpdateAction函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论