当前位置: 首页>>代码示例>>Golang>>正文


Golang cache.ListAll函数代码示例

本文整理汇总了Golang中k8s/io/kubernetes/pkg/client/cache.ListAll函数的典型用法代码示例。如果您正苦于以下问题:Golang ListAll函数的具体用法?Golang ListAll怎么用?Golang ListAll使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了ListAll函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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


注:本文中的k8s/io/kubernetes/pkg/client/cache.ListAll函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。