当前位置: 首页>>代码示例>>Golang>>正文


Golang core.NewUpdateSubresourceAction函数代码示例

本文整理汇总了Golang中k8s/io/kubernetes/pkg/client/testing/core.NewUpdateSubresourceAction函数的典型用法代码示例。如果您正苦于以下问题:Golang NewUpdateSubresourceAction函数的具体用法?Golang NewUpdateSubresourceAction怎么用?Golang NewUpdateSubresourceAction使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了NewUpdateSubresourceAction函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Golang代码示例。

示例1: UpdateStatus

func (c *FakeServices) UpdateStatus(service *api.Service) (*api.Service, error) {
	obj, err := c.Fake.
		Invokes(core.NewUpdateSubresourceAction("services", "status", c.ns, service), &api.Service{})

	if obj == nil {
		return nil, err
	}
	return obj.(*api.Service), err
}
开发者ID:CNDonny,项目名称:scope,代码行数:9,代码来源:fake_service.go

示例2: UpdateStatus

func (c *FakeDeploymentConfigs) UpdateStatus(deploymentConfig *v1.DeploymentConfig) (*v1.DeploymentConfig, error) {
	obj, err := c.Fake.
		Invokes(core.NewUpdateSubresourceAction(deploymentconfigsResource, "status", c.ns, deploymentConfig), &v1.DeploymentConfig{})

	if obj == nil {
		return nil, err
	}
	return obj.(*v1.DeploymentConfig), err
}
开发者ID:Xmagicer,项目名称:origin,代码行数:9,代码来源:fake_deploymentconfig.go

示例3: UpdateStatus

func (c *FakeCronJobs) UpdateStatus(cronJob *batch.CronJob) (*batch.CronJob, error) {
	obj, err := c.Fake.
		Invokes(core.NewUpdateSubresourceAction(cronjobsResource, "status", c.ns, cronJob), &batch.CronJob{})

	if obj == nil {
		return nil, err
	}
	return obj.(*batch.CronJob), err
}
开发者ID:eljefedelrodeodeljefe,项目名称:kubernetes,代码行数:9,代码来源:fake_cronjob.go

示例4: UpdateStatus

func (c *FakeJobs) UpdateStatus(job *extensions.Job) (*extensions.Job, error) {
	obj, err := c.Fake.
		Invokes(core.NewUpdateSubresourceAction("jobs", "status", c.ns, job), &extensions.Job{})

	if obj == nil {
		return nil, err
	}
	return obj.(*extensions.Job), err
}
开发者ID:RomainVabre,项目名称:origin,代码行数:9,代码来源:fake_job.go

示例5: UpdateStatus

func (c *FakeReplicationControllers) UpdateStatus(replicationController *v1.ReplicationController) (*v1.ReplicationController, error) {
	obj, err := c.Fake.
		Invokes(core.NewUpdateSubresourceAction(replicationcontrollersResource, "status", c.ns, replicationController), &v1.ReplicationController{})

	if obj == nil {
		return nil, err
	}
	return obj.(*v1.ReplicationController), err
}
开发者ID:alex-mohr,项目名称:kubernetes,代码行数:9,代码来源:fake_replicationcontroller.go

示例6: UpdateStatus

func (c *FakePods) UpdateStatus(pod *api.Pod) (*api.Pod, error) {
	obj, err := c.Fake.
		Invokes(core.NewUpdateSubresourceAction(podsResource, "status", c.ns, pod), &api.Pod{})

	if obj == nil {
		return nil, err
	}
	return obj.(*api.Pod), err
}
开发者ID:cesardraw2,项目名称:kubernetes,代码行数:9,代码来源:fake_pod.go

示例7: UpdateStatus

func (c *FakeTestTypes) UpdateStatus(testType *testgroup_k8s_io.TestType) (*testgroup_k8s_io.TestType, error) {
	obj, err := c.Fake.
		Invokes(core.NewUpdateSubresourceAction(testtypesResource, "status", c.ns, testType), &testgroup_k8s_io.TestType{})

	if obj == nil {
		return nil, err
	}
	return obj.(*testgroup_k8s_io.TestType), err
}
开发者ID:FlyWings,项目名称:kubernetes,代码行数:9,代码来源:fake_testtype.go

示例8: UpdateStatus

func (c *FakeStatefulSets) UpdateStatus(statefulSet *v1beta1.StatefulSet) (*v1beta1.StatefulSet, error) {
	obj, err := c.Fake.
		Invokes(core.NewUpdateSubresourceAction(statefulsetsResource, "status", c.ns, statefulSet), &v1beta1.StatefulSet{})

	if obj == nil {
		return nil, err
	}
	return obj.(*v1beta1.StatefulSet), err
}
开发者ID:eljefedelrodeodeljefe,项目名称:kubernetes,代码行数:9,代码来源:fake_statefulset.go

示例9: UpdateStatus

func (c *FakeIngresses) UpdateStatus(ingress *v1beta1.Ingress) (*v1beta1.Ingress, error) {
	obj, err := c.Fake.
		Invokes(core.NewUpdateSubresourceAction("ingresses", "status", c.ns, ingress), &v1beta1.Ingress{})

	if obj == nil {
		return nil, err
	}
	return obj.(*v1beta1.Ingress), err
}
开发者ID:mml,项目名称:kubernetes,代码行数:9,代码来源:fake_ingress.go

示例10: UpdateStatus

func (c *FakeReplicaSets) UpdateStatus(replicaSet *v1beta1.ReplicaSet) (*v1beta1.ReplicaSet, error) {
	obj, err := c.Fake.
		Invokes(core.NewUpdateSubresourceAction("replicasets", "status", c.ns, replicaSet), &v1beta1.ReplicaSet{})

	if obj == nil {
		return nil, err
	}
	return obj.(*v1beta1.ReplicaSet), err
}
开发者ID:mml,项目名称:kubernetes,代码行数:9,代码来源:fake_replicaset.go

示例11: UpdateStatus

func (c *FakeRoutes) UpdateStatus(route *v1.Route) (*v1.Route, error) {
	obj, err := c.Fake.
		Invokes(core.NewUpdateSubresourceAction(routesResource, "status", c.ns, route), &v1.Route{})

	if obj == nil {
		return nil, err
	}
	return obj.(*v1.Route), err
}
开发者ID:xgwang-zte,项目名称:origin,代码行数:9,代码来源:fake_route.go

示例12: UpdateStatus

func (c *FakeDeployments) UpdateStatus(deployment *extensions.Deployment) (*extensions.Deployment, error) {
	obj, err := c.Fake.
		Invokes(core.NewUpdateSubresourceAction("deployments", "status", c.ns, deployment), &extensions.Deployment{})

	if obj == nil {
		return nil, err
	}
	return obj.(*extensions.Deployment), err
}
开发者ID:RomainVabre,项目名称:origin,代码行数:9,代码来源:fake_deployment.go

示例13: UpdateStatus

func (c *FakePodSecurityPolicySubjectReviews) UpdateStatus(podSecurityPolicySubjectReview *v1.PodSecurityPolicySubjectReview) (*v1.PodSecurityPolicySubjectReview, error) {
	obj, err := c.Fake.
		Invokes(core.NewUpdateSubresourceAction(podsecuritypolicysubjectreviewsResource, "status", c.ns, podSecurityPolicySubjectReview), &v1.PodSecurityPolicySubjectReview{})

	if obj == nil {
		return nil, err
	}
	return obj.(*v1.PodSecurityPolicySubjectReview), err
}
开发者ID:Xmagicer,项目名称:origin,代码行数:9,代码来源:fake_podsecuritypolicysubjectreview.go

示例14: UpdateStatus

func (c *FakeResourceQuotas) UpdateStatus(resourceQuota *api.ResourceQuota) (*api.ResourceQuota, error) {
	obj, err := c.Fake.
		Invokes(core.NewUpdateSubresourceAction(resourcequotasResource, "status", c.ns, resourceQuota), &api.ResourceQuota{})

	if obj == nil {
		return nil, err
	}
	return obj.(*api.ResourceQuota), err
}
开发者ID:alex-mohr,项目名称:kubernetes,代码行数:9,代码来源:fake_resourcequota.go

示例15: UpdateStatus

func (c *FakeScheduledJobs) UpdateStatus(scheduledJob *v2alpha1.ScheduledJob) (*v2alpha1.ScheduledJob, error) {
	obj, err := c.Fake.
		Invokes(core.NewUpdateSubresourceAction(scheduledjobsResource, "status", c.ns, scheduledJob), &v2alpha1.ScheduledJob{})

	if obj == nil {
		return nil, err
	}
	return obj.(*v2alpha1.ScheduledJob), err
}
开发者ID:upmc-enterprises,项目名称:kubernetes,代码行数:9,代码来源:fake_scheduledjob.go


注:本文中的k8s/io/kubernetes/pkg/client/testing/core.NewUpdateSubresourceAction函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。