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


Golang core.NewDeleteCollectionAction函數代碼示例

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


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

示例1: DeleteCollection

func (c *FakeScheduledJobs) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error {
	action := core.NewDeleteCollectionAction(scheduledjobsResource, c.ns, listOptions)

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

示例2: DeleteCollection

func (c *FakeHorizontalPodAutoscalers) DeleteCollection(options *api.DeleteOptions, listOptions api.ListOptions) error {
	action := core.NewDeleteCollectionAction("horizontalpodautoscalers", c.ns, listOptions)

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

示例3: DeleteCollection

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

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

示例4: DeleteCollection

func (c *FakeSecrets) DeleteCollection(options *api.DeleteOptions, listOptions api.ListOptions) error {
	action := core.NewDeleteCollectionAction("events", c.ns, listOptions)

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

示例5: DeleteCollection

func (c *FakeDeployments) DeleteCollection(options *api.DeleteOptions, listOptions api.ListOptions) error {
	action := core.NewDeleteCollectionAction(deploymentsResource, c.ns, listOptions)

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

示例6: DeleteCollection

func (c *FakePodTemplates) DeleteCollection(options *api.DeleteOptions, listOptions api.ListOptions) error {
	action := core.NewDeleteCollectionAction("podtemplates", c.ns, listOptions)

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

示例7: DeleteCollection

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

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

示例8: DeleteCollection

func (c *FakeEndpoints) DeleteCollection(options *api.DeleteOptions, listOptions api.ListOptions) error {
	action := core.NewDeleteCollectionAction("endpoints", c.ns, listOptions)

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

示例9: DeleteCollection

func (c *FakeEndpoints) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error {
	action := core.NewDeleteCollectionAction(endpointsResource, c.ns, listOptions)

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

示例10: DeleteCollection

func (c *FakeOAuthClients) DeleteCollection(options *pkg_api.DeleteOptions, listOptions pkg_api.ListOptions) error {
	action := core.NewDeleteCollectionAction(oauthclientsResource, c.ns, listOptions)

	_, err := c.Fake.Invokes(action, &api.OAuthClientList{})
	return err
}
開發者ID:juanluisvaladas,項目名稱:origin,代碼行數:6,代碼來源:fake_oauthclient.go

示例11: DeleteCollection

func (c *FakeNetworkPolicies) DeleteCollection(options *api.DeleteOptions, listOptions api.ListOptions) error {
	action := core.NewDeleteCollectionAction(networkpoliciesResource, c.ns, listOptions)

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

示例12: DeleteCollection

func (c *FakeDaemonSets) DeleteCollection(options *api.DeleteOptions, listOptions api.ListOptions) error {
	action := core.NewDeleteCollectionAction("daemonsets", c.ns, listOptions)

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

示例13: DeleteCollection

func (c *FakeReplicationControllers) DeleteCollection(options *api.DeleteOptions, listOptions api.ListOptions) error {
	action := core.NewDeleteCollectionAction("events", c.ns, listOptions)

	_, err := c.Fake.Invokes(action, &api.ReplicationControllerList{})
	return err
}
開發者ID:XiaoningDing,項目名稱:UbernetesPOC,代碼行數:6,代碼來源:fake_replicationcontroller.go

示例14: DeleteCollection

func (c *FakeUsers) DeleteCollection(options *api_v1.DeleteOptions, listOptions api_v1.ListOptions) error {
	action := core.NewDeleteCollectionAction(usersResource, c.ns, listOptions)

	_, err := c.Fake.Invokes(action, &v1.UserList{})
	return err
}
開發者ID:xgwang-zte,項目名稱:origin,代碼行數:6,代碼來源:fake_user.go

示例15: DeleteCollection

func (c *FakeLimitRanges) DeleteCollection(options *api.DeleteOptions, listOptions api.ListOptions) error {
	action := core.NewDeleteCollectionAction("limitranges", c.ns, listOptions)

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


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