本文整理汇总了Golang中k8s/io/kubernetes/pkg/client/testing/core.NewDeleteCollectionAction函数的典型用法代码示例。如果您正苦于以下问题:Golang NewDeleteCollectionAction函数的具体用法?Golang NewDeleteCollectionAction怎么用?Golang NewDeleteCollectionAction使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了NewDeleteCollectionAction函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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
示例16: DeleteCollection
func (c *FakeDaemonSets) DeleteCollection(options *api.DeleteOptions, listOptions api.ListOptions) error {
action := core.NewDeleteCollectionAction(daemonsetsResource, c.ns, listOptions)
_, err := c.Fake.Invokes(action, &extensions.DaemonSetList{})
return err
}
开发者ID:kubernetes,项目名称:kubernetes,代码行数:6,代码来源:fake_daemonset.go
示例17: DeleteCollection
func (c *FakeStatefulSets) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error {
action := core.NewDeleteCollectionAction(statefulsetsResource, c.ns, listOptions)
_, err := c.Fake.Invokes(action, &v1beta1.StatefulSetList{})
return err
}
开发者ID:eljefedelrodeodeljefe,项目名称:kubernetes,代码行数:6,代码来源:fake_statefulset.go
示例18: DeleteCollection
func (c *FakeServiceAccounts) DeleteCollection(options *api.DeleteOptions, listOptions api.ListOptions) error {
action := core.NewDeleteCollectionAction(serviceaccountsResource, c.ns, listOptions)
_, err := c.Fake.Invokes(action, &api.ServiceAccountList{})
return err
}
开发者ID:humblec,项目名称:kubernetes,代码行数:6,代码来源:fake_serviceaccount.go
示例19: DeleteCollection
func (c *FakePodTemplates) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error {
action := core.NewDeleteCollectionAction(podtemplatesResource, c.ns, listOptions)
_, err := c.Fake.Invokes(action, &v1.PodTemplateList{})
return err
}
开发者ID:Q-Lee,项目名称:kubernetes,代码行数:6,代码来源:fake_podtemplate.go
示例20: DeleteCollection
func (c *FakeRoles) DeleteCollection(options *api.DeleteOptions, listOptions api.ListOptions) error {
action := core.NewDeleteCollectionAction(rolesResource, c.ns, listOptions)
_, err := c.Fake.Invokes(action, &rbac.RoleList{})
return err
}
开发者ID:humblec,项目名称:kubernetes,代码行数:6,代码来源:fake_role.go
注:本文中的k8s/io/kubernetes/pkg/client/testing/core.NewDeleteCollectionAction函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论