示例#1
0
func printClusterPolicyList(list *authorizationapi.ClusterPolicyList, w io.Writer, withNamespace bool) error {
	return printPolicyList(authorizationapi.ToPolicyList(list), w, withNamespace)
}
示例#2
0
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
}