Exemplo n.º 1
0
func printClusterPolicyList(list *authorizationapi.ClusterPolicyList, w io.Writer, opts kctl.PrintOptions) error {
	return printPolicyList(authorizationapi.ToPolicyList(list), w, opts)
}
Exemplo n.º 2
0
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
}
Exemplo n.º 3
0
func printClusterPolicyList(list *authorizationapi.ClusterPolicyList, w io.Writer, withNamespace bool) error {
	return printPolicyList(authorizationapi.ToPolicyList(list), w, withNamespace)
}
Exemplo n.º 4
0
func printClusterPolicyList(list *authorizationapi.ClusterPolicyList, w io.Writer, withNamespace, wide bool, columnLabels []string) error {
	return printPolicyList(authorizationapi.ToPolicyList(list), w, withNamespace, wide, columnLabels)
}
Exemplo n.º 5
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
}