本文整理汇总了Golang中github.com/openshift/origin/pkg/authorization/api.ToPolicyList函数的典型用法代码示例。如果您正苦于以下问题:Golang ToPolicyList函数的具体用法?Golang ToPolicyList怎么用?Golang ToPolicyList使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了ToPolicyList函数的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Golang代码示例。
示例1: printClusterPolicyList
func printClusterPolicyList(list *authorizationapi.ClusterPolicyList, w io.Writer, opts kctl.PrintOptions) error {
return printPolicyList(authorizationapi.ToPolicyList(list), w, opts)
}
示例2: ListPolicies
func (s *simulatedStorage) ListPolicies(ctx kapi.Context, options *kapi.ListOptions) (*authorizationapi.PolicyList, error) {
ret, err := s.clusterRegistry.ListClusterPolicies(ctx, options)
return authorizationapi.ToPolicyList(ret), err
}
示例3: printClusterPolicyList
func printClusterPolicyList(list *authorizationapi.ClusterPolicyList, w io.Writer, withNamespace bool) error {
return printPolicyList(authorizationapi.ToPolicyList(list), w, withNamespace)
}
示例4: printClusterPolicyList
func printClusterPolicyList(list *authorizationapi.ClusterPolicyList, w io.Writer, withNamespace, wide bool, columnLabels []string) error {
return printPolicyList(authorizationapi.ToPolicyList(list), w, withNamespace, wide, columnLabels)
}
示例5: ListPolicies
func (s *simulatedStorage) ListPolicies(ctx kapi.Context, label labels.Selector, field fields.Selector) (*authorizationapi.PolicyList, error) {
ret, err := s.clusterRegistry.ListClusterPolicies(ctx, label, field)
return authorizationapi.ToPolicyList(ret), err
}