當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。