当前位置: 首页>>代码示例>>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;未经允许,请勿转载。