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


Golang testing.NewDeleteCollectionAction函數代碼示例

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


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

示例1: DeleteCollection

func (c *FakeSecrets) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error {
	action := testing.NewDeleteCollectionAction(secretsResource, c.ns, listOptions)

	_, err := c.Fake.Invokes(action, &v1.SecretList{})
	return err
}
開發者ID:nak3,項目名稱:kubernetes,代碼行數:6,代碼來源:fake_secret.go

示例2: DeleteCollection

func (c *FakePodTemplates) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error {
	action := testing.NewDeleteCollectionAction(podtemplatesResource, c.ns, listOptions)

	_, err := c.Fake.Invokes(action, &v1.PodTemplateList{})
	return err
}
開發者ID:Q-Lee,項目名稱:kubernetes,代碼行數:6,代碼來源:fake_podtemplate.go

示例3: DeleteCollection

func (c *FakeReplicaSets) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error {
	action := testing.NewDeleteCollectionAction(replicasetsResource, c.ns, listOptions)

	_, err := c.Fake.Invokes(action, &v1beta1.ReplicaSetList{})
	return err
}
開發者ID:jbeda,項目名稱:kubernetes,代碼行數:6,代碼來源:fake_replicaset.go

示例4: DeleteCollection

func (c *FakePersistentVolumeClaims) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error {
	action := testing.NewDeleteCollectionAction(persistentvolumeclaimsResource, c.ns, listOptions)

	_, err := c.Fake.Invokes(action, &v1.PersistentVolumeClaimList{})
	return err
}
開發者ID:Q-Lee,項目名稱:kubernetes,代碼行數:6,代碼來源:fake_persistentvolumeclaim.go

示例5: DeleteCollection

func (c *FakeJobs) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error {
	action := testing.NewDeleteCollectionAction(jobsResource, c.ns, listOptions)

	_, err := c.Fake.Invokes(action, &v2alpha1.JobList{})
	return err
}
開發者ID:alex-mohr,項目名稱:kubernetes,代碼行數:6,代碼來源:fake_job.go

示例6: DeleteCollection

func (c *FakeIngresses) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error {
	action := testing.NewDeleteCollectionAction(ingressesResource, c.ns, listOptions)

	_, err := c.Fake.Invokes(action, &v1beta1.IngressList{})
	return err
}
開發者ID:Q-Lee,項目名稱:kubernetes,代碼行數:6,代碼來源:fake_ingress.go

示例7: DeleteCollection

func (c *FakeConfigMaps) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error {
	action := testing.NewDeleteCollectionAction(configmapsResource, c.ns, listOptions)

	_, err := c.Fake.Invokes(action, &v1.ConfigMapList{})
	return err
}
開發者ID:kubernetes,項目名稱:kubernetes,代碼行數:6,代碼來源:fake_configmap.go

示例8: DeleteCollection

func (c *FakeLimitRanges) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error {
	action := testing.NewDeleteCollectionAction(limitrangesResource, c.ns, listOptions)

	_, err := c.Fake.Invokes(action, &v1.LimitRangeList{})
	return err
}
開發者ID:eljefedelrodeodeljefe,項目名稱:kubernetes,代碼行數:6,代碼來源:fake_limitrange.go

示例9: DeleteCollection

func (c *FakeResourceQuotas) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error {
	action := testing.NewDeleteCollectionAction(resourcequotasResource, c.ns, listOptions)

	_, err := c.Fake.Invokes(action, &v1.ResourceQuotaList{})
	return err
}
開發者ID:kubernetes,項目名稱:kubernetes,代碼行數:6,代碼來源:fake_resourcequota.go

示例10: DeleteCollection

func (c *FakeRoleBindings) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error {
	action := testing.NewDeleteCollectionAction(rolebindingsResource, c.ns, listOptions)

	_, err := c.Fake.Invokes(action, &v1alpha1.RoleBindingList{})
	return err
}
開發者ID:maisem,項目名稱:kubernetes,代碼行數:6,代碼來源:fake_rolebinding.go

示例11: DeleteCollection

func (c *FakeHorizontalPodAutoscalers) DeleteCollection(options *api_v1.DeleteOptions, listOptions api_v1.ListOptions) error {
	action := testing.NewDeleteCollectionAction(horizontalpodautoscalersResource, c.ns, listOptions)

	_, err := c.Fake.Invokes(action, &v1.HorizontalPodAutoscalerList{})
	return err
}
開發者ID:maisem,項目名稱:kubernetes,代碼行數:6,代碼來源:fake_horizontalpodautoscaler.go

示例12: DeleteCollection

func (c *FakePodDisruptionBudgets) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error {
	action := testing.NewDeleteCollectionAction(poddisruptionbudgetsResource, c.ns, listOptions)

	_, err := c.Fake.Invokes(action, &v1beta1.PodDisruptionBudgetList{})
	return err
}
開發者ID:eljefedelrodeodeljefe,項目名稱:kubernetes,代碼行數:6,代碼來源:fake_poddisruptionbudget.go


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