當前位置: 首頁>>代碼示例>>Golang>>正文


Golang testing.NewDeleteAction函數代碼示例

本文整理匯總了Golang中k8s/io/client-go/testing.NewDeleteAction函數的典型用法代碼示例。如果您正苦於以下問題:Golang NewDeleteAction函數的具體用法?Golang NewDeleteAction怎麽用?Golang NewDeleteAction使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。


在下文中一共展示了NewDeleteAction函數的14個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Golang代碼示例。

示例1: Delete

func (c *FakeSecrets) Delete(name string, options *v1.DeleteOptions) error {
	_, err := c.Fake.
		Invokes(testing.NewDeleteAction(secretsResource, c.ns, name), &v1.Secret{})

	return err
}
開發者ID:nak3,項目名稱:kubernetes,代碼行數:6,代碼來源:fake_secret.go

示例2: Delete

func (c *FakeReplicaSets) Delete(name string, options *v1.DeleteOptions) error {
	_, err := c.Fake.
		Invokes(testing.NewDeleteAction(replicasetsResource, c.ns, name), &v1beta1.ReplicaSet{})

	return err
}
開發者ID:jbeda,項目名稱:kubernetes,代碼行數:6,代碼來源:fake_replicaset.go

示例3: Delete

func (c *FakeDeployments) Delete(name string, options *v1.DeleteOptions) error {
	_, err := c.Fake.
		Invokes(testing.NewDeleteAction(deploymentsResource, c.ns, name), &v1beta1.Deployment{})

	return err
}
開發者ID:kubernetes,項目名稱:kubernetes,代碼行數:6,代碼來源:fake_deployment.go

示例4: Delete

func (c *FakePodTemplates) Delete(name string, options *v1.DeleteOptions) error {
	_, err := c.Fake.
		Invokes(testing.NewDeleteAction(podtemplatesResource, c.ns, name), &v1.PodTemplate{})

	return err
}
開發者ID:Q-Lee,項目名稱:kubernetes,代碼行數:6,代碼來源:fake_podtemplate.go

示例5: Delete

func (c *FakeReplicationControllers) Delete(name string, options *v1.DeleteOptions) error {
	_, err := c.Fake.
		Invokes(testing.NewDeleteAction(replicationcontrollersResource, c.ns, name), &v1.ReplicationController{})

	return err
}
開發者ID:kubernetes,項目名稱:kubernetes,代碼行數:6,代碼來源:fake_replicationcontroller.go

示例6: Delete

func (c *FakePersistentVolumeClaims) Delete(name string, options *v1.DeleteOptions) error {
	_, err := c.Fake.
		Invokes(testing.NewDeleteAction(persistentvolumeclaimsResource, c.ns, name), &v1.PersistentVolumeClaim{})

	return err
}
開發者ID:Q-Lee,項目名稱:kubernetes,代碼行數:6,代碼來源:fake_persistentvolumeclaim.go

示例7: Delete

func (c *FakeJobs) Delete(name string, options *v1.DeleteOptions) error {
	_, err := c.Fake.
		Invokes(testing.NewDeleteAction(jobsResource, c.ns, name), &v2alpha1.Job{})

	return err
}
開發者ID:alex-mohr,項目名稱:kubernetes,代碼行數:6,代碼來源:fake_job.go

示例8: Delete

func (c *FakeIngresses) Delete(name string, options *v1.DeleteOptions) error {
	_, err := c.Fake.
		Invokes(testing.NewDeleteAction(ingressesResource, c.ns, name), &v1beta1.Ingress{})

	return err
}
開發者ID:Q-Lee,項目名稱:kubernetes,代碼行數:6,代碼來源:fake_ingress.go

示例9: Delete

func (c *FakeConfigMaps) Delete(name string, options *v1.DeleteOptions) error {
	_, err := c.Fake.
		Invokes(testing.NewDeleteAction(configmapsResource, c.ns, name), &v1.ConfigMap{})

	return err
}
開發者ID:kubernetes,項目名稱:kubernetes,代碼行數:6,代碼來源:fake_configmap.go

示例10: Delete

func (c *FakeLimitRanges) Delete(name string, options *v1.DeleteOptions) error {
	_, err := c.Fake.
		Invokes(testing.NewDeleteAction(limitrangesResource, c.ns, name), &v1.LimitRange{})

	return err
}
開發者ID:eljefedelrodeodeljefe,項目名稱:kubernetes,代碼行數:6,代碼來源:fake_limitrange.go

示例11: Delete

func (c *FakeResourceQuotas) Delete(name string, options *v1.DeleteOptions) error {
	_, err := c.Fake.
		Invokes(testing.NewDeleteAction(resourcequotasResource, c.ns, name), &v1.ResourceQuota{})

	return err
}
開發者ID:kubernetes,項目名稱:kubernetes,代碼行數:6,代碼來源:fake_resourcequota.go

示例12: Delete

func (c *FakeRoles) Delete(name string, options *v1.DeleteOptions) error {
	_, err := c.Fake.
		Invokes(testing.NewDeleteAction(rolesResource, c.ns, name), &v1alpha1.Role{})

	return err
}
開發者ID:maisem,項目名稱:kubernetes,代碼行數:6,代碼來源:fake_role.go

示例13: Delete

func (c *FakeHorizontalPodAutoscalers) Delete(name string, options *api_v1.DeleteOptions) error {
	_, err := c.Fake.
		Invokes(testing.NewDeleteAction(horizontalpodautoscalersResource, c.ns, name), &v1.HorizontalPodAutoscaler{})

	return err
}
開發者ID:maisem,項目名稱:kubernetes,代碼行數:6,代碼來源:fake_horizontalpodautoscaler.go

示例14: Delete

func (c *FakePodDisruptionBudgets) Delete(name string, options *v1.DeleteOptions) error {
	_, err := c.Fake.
		Invokes(testing.NewDeleteAction(poddisruptionbudgetsResource, c.ns, name), &v1beta1.PodDisruptionBudget{})

	return err
}
開發者ID:eljefedelrodeodeljefe,項目名稱:kubernetes,代碼行數:6,代碼來源:fake_poddisruptionbudget.go


注:本文中的k8s/io/client-go/testing.NewDeleteAction函數示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。