本文整理汇总了Golang中k8s/io/kubernetes/pkg/client/cache.ListAll函数的典型用法代码示例。如果您正苦于以下问题:Golang ListAll函数的具体用法?Golang ListAll怎么用?Golang ListAll使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了ListAll函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Golang代码示例。
示例1: List
// List lists all Endpoints in the indexer.
func (s *endpointsLister) List(selector labels.Selector) (ret []*v1.Endpoints, err error) {
err = cache.ListAll(s.indexer, selector, func(m interface{}) {
ret = append(ret, m.(*v1.Endpoints))
})
return ret, err
}
开发者ID:upmc-enterprises,项目名称:kubernetes,代码行数:7,代码来源:zz_generated.endpoints.go
示例2: List
// List lists all TokenReviews in the indexer.
func (s *tokenReviewLister) List(selector labels.Selector) (ret []*v1beta1.TokenReview, err error) {
err = cache.ListAll(s.indexer, selector, func(m interface{}) {
ret = append(ret, m.(*v1beta1.TokenReview))
})
return ret, err
}
开发者ID:eljefedelrodeodeljefe,项目名称:kubernetes,代码行数:7,代码来源:tokenreview.go
示例3: List
// List lists all ServiceAccounts in the indexer.
func (s *serviceAccountLister) List(selector labels.Selector) (ret []*v1.ServiceAccount, err error) {
err = cache.ListAll(s.indexer, selector, func(m interface{}) {
ret = append(ret, m.(*v1.ServiceAccount))
})
return ret, err
}
开发者ID:alex-mohr,项目名称:kubernetes,代码行数:7,代码来源:serviceaccount.go
示例4: List
// List lists all ConfigMaps in the indexer.
func (s *configMapLister) List(selector labels.Selector) (ret []*v1.ConfigMap, err error) {
err = cache.ListAll(s.indexer, selector, func(m interface{}) {
ret = append(ret, m.(*v1.ConfigMap))
})
return ret, err
}
开发者ID:alex-mohr,项目名称:kubernetes,代码行数:7,代码来源:configmap.go
示例5: List
// List lists all Pods in the indexer.
func (s *podLister) List(selector labels.Selector) (ret []*api.Pod, err error) {
err = cache.ListAll(s.indexer, selector, func(m interface{}) {
ret = append(ret, m.(*api.Pod))
})
return ret, err
}
开发者ID:eljefedelrodeodeljefe,项目名称:kubernetes,代码行数:7,代码来源:pod.go
示例6: List
// List lists all StorageClasses in the indexer.
func (s *storageClassLister) List(selector labels.Selector) (ret []*storage.StorageClass, err error) {
err = cache.ListAll(s.indexer, selector, func(m interface{}) {
ret = append(ret, m.(*storage.StorageClass))
})
return ret, err
}
开发者ID:alex-mohr,项目名称:kubernetes,代码行数:7,代码来源:storageclass.go
示例7: List
// List lists all CertificateSigningRequests in the indexer.
func (s *certificateSigningRequestLister) List(selector labels.Selector) (ret []*certificates.CertificateSigningRequest, err error) {
err = cache.ListAll(s.indexer, selector, func(m interface{}) {
ret = append(ret, m.(*certificates.CertificateSigningRequest))
})
return ret, err
}
开发者ID:Q-Lee,项目名称:kubernetes,代码行数:7,代码来源:certificatesigningrequest.go
示例8: List
// List lists all ReplicationControllers in the indexer.
func (s *replicationControllerLister) List(selector labels.Selector) (ret []*v1.ReplicationController, err error) {
err = cache.ListAll(s.indexer, selector, func(m interface{}) {
ret = append(ret, m.(*v1.ReplicationController))
})
return ret, err
}
开发者ID:kubernetes,项目名称:kubernetes,代码行数:7,代码来源:replicationcontroller.go
示例9: List
// List lists all RoleBindings in the indexer.
func (s *roleBindingLister) List(selector labels.Selector) (ret []*rbac.RoleBinding, err error) {
err = cache.ListAll(s.indexer, selector, func(m interface{}) {
ret = append(ret, m.(*rbac.RoleBinding))
})
return ret, err
}
开发者ID:kubernetes,项目名称:kubernetes,代码行数:7,代码来源:rolebinding.go
示例10: List
// List lists all NetworkPolicies in the indexer.
func (s *networkPolicyLister) List(selector labels.Selector) (ret []*extensions.NetworkPolicy, err error) {
err = cache.ListAll(s.indexer, selector, func(m interface{}) {
ret = append(ret, m.(*extensions.NetworkPolicy))
})
return ret, err
}
开发者ID:upmc-enterprises,项目名称:kubernetes,代码行数:7,代码来源:zz_generated.networkpolicy.go
示例11: List
// List lists all LocalSubjectAccessReviews in the indexer.
func (s *localSubjectAccessReviewLister) List(selector labels.Selector) (ret []*authorization.LocalSubjectAccessReview, err error) {
err = cache.ListAll(s.indexer, selector, func(m interface{}) {
ret = append(ret, m.(*authorization.LocalSubjectAccessReview))
})
return ret, err
}
开发者ID:alex-mohr,项目名称:kubernetes,代码行数:7,代码来源:localsubjectaccessreview.go
示例12: List
// List lists all SecurityContextConstraintses in the indexer.
func (s *securityContextConstraintsLister) List(selector labels.Selector) (ret []*api.SecurityContextConstraints, err error) {
err = cache.ListAll(s.indexer, selector, func(m interface{}) {
ret = append(ret, m.(*api.SecurityContextConstraints))
})
return ret, err
}
开发者ID:xgwang-zte,项目名称:origin,代码行数:7,代码来源:securitycontextconstraints.go
示例13: List
// List lists all ThirdPartyResources in the indexer.
func (s *thirdPartyResourceLister) List(selector labels.Selector) (ret []*extensions.ThirdPartyResource, err error) {
err = cache.ListAll(s.indexer, selector, func(m interface{}) {
ret = append(ret, m.(*extensions.ThirdPartyResource))
})
return ret, err
}
开发者ID:kubernetes,项目名称:kubernetes,代码行数:7,代码来源:thirdpartyresource.go
示例14: List
// List lists all ScheduledJobs in the indexer.
func (s *scheduledJobLister) List(selector labels.Selector) (ret []*batch.ScheduledJob, err error) {
err = cache.ListAll(s.indexer, selector, func(m interface{}) {
ret = append(ret, m.(*batch.ScheduledJob))
})
return ret, err
}
开发者ID:oszi,项目名称:kubernetes,代码行数:7,代码来源:scheduledjob.go
示例15: List
// List lists all APIServices in the indexer.
func (s *aPIServiceLister) List(selector labels.Selector) (ret []*v1alpha1.APIService, err error) {
err = cache.ListAll(s.indexer, selector, func(m interface{}) {
ret = append(ret, m.(*v1alpha1.APIService))
})
return ret, err
}
开发者ID:kubernetes,项目名称:kubernetes,代码行数:7,代码来源:apiservice.go
示例16: List
// List lists all StatefulSets in the indexer.
func (s *statefulSetLister) List(selector labels.Selector) (ret []*apps.StatefulSet, err error) {
err = cache.ListAll(s.indexer, selector, func(m interface{}) {
ret = append(ret, m.(*apps.StatefulSet))
})
return ret, err
}
开发者ID:eljefedelrodeodeljefe,项目名称:kubernetes,代码行数:7,代码来源:statefulset.go
示例17: List
// List lists all HorizontalPodAutoscalers in the indexer.
func (s *horizontalPodAutoscalerLister) List(selector labels.Selector) (ret []*autoscaling.HorizontalPodAutoscaler, err error) {
err = cache.ListAll(s.indexer, selector, func(m interface{}) {
ret = append(ret, m.(*autoscaling.HorizontalPodAutoscaler))
})
return ret, err
}
开发者ID:alex-mohr,项目名称:kubernetes,代码行数:7,代码来源:horizontalpodautoscaler.go
示例18: List
// List lists all ComponentStatuses in the indexer.
func (s *componentStatusLister) List(selector labels.Selector) (ret []*api.ComponentStatus, err error) {
err = cache.ListAll(s.indexer, selector, func(m interface{}) {
ret = append(ret, m.(*api.ComponentStatus))
})
return ret, err
}
开发者ID:eljefedelrodeodeljefe,项目名称:kubernetes,代码行数:7,代码来源:componentstatus.go
示例19: List
// List lists all PersistentVolumeClaims in the indexer.
func (s *persistentVolumeClaimLister) List(selector labels.Selector) (ret []*v1.PersistentVolumeClaim, err error) {
err = cache.ListAll(s.indexer, selector, func(m interface{}) {
ret = append(ret, m.(*v1.PersistentVolumeClaim))
})
return ret, err
}
开发者ID:kubernetes,项目名称:kubernetes,代码行数:7,代码来源:persistentvolumeclaim.go
示例20: List
// List lists all Evictions in the indexer.
func (s *evictionLister) List(selector labels.Selector) (ret []*policy.Eviction, err error) {
err = cache.ListAll(s.indexer, selector, func(m interface{}) {
ret = append(ret, m.(*policy.Eviction))
})
return ret, err
}
开发者ID:kubernetes,项目名称:kubernetes,代码行数:7,代码来源:eviction.go
注:本文中的k8s/io/kubernetes/pkg/client/cache.ListAll函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论