func (s *pluginService) ListUserTemplates(
	ctx context.Context,
	owner string,
	pageSize uint32,
	pageToken string,
	reverse bool,
) (templates []*v1alpha1.Template, nextPageToken string, _ error) {
	if s.contextModifier != nil {
		ctx = s.contextModifier(ctx)
	}
	response, err := s.client.ListUserTemplates(
		ctx,
		&v1alpha1.ListUserTemplatesRequest{
			Owner:     owner,
			PageSize:  pageSize,
			PageToken: pageToken,
			Reverse:   reverse,
		},
	)
	if err != nil {
		return nil, "", err
	}
	return response.Templates, response.NextPageToken, nil
}
// ListUserPlugins lists all templates belonging to a user.
ListUserPlugins lists all templates belonging to a user.
// ListUserPlugins lists all templates belonging to a user .
func (s *pluginService) ListUserTemplates(
	ctx context.Context,
	owner string,
	pageSize uint32,
	pageToken string,
	reverse bool,
) (templates []*v1alpha1.Template, nextPageToken string, _ error) {
	if s.contextModifier != nil {
		ctx = s.contextModifier(ctx)
	}
	response, err := s.client.ListUserTemplates(
		ctx,
		&v1alpha1.ListUserTemplatesRequest{
			Owner:     owner,
			PageSize:  pageSize,
			PageToken: pageToken,
			Reverse:   reverse,
		},
	)
	if err != nil {
		return nil, "", err
	}
	return response.Templates, response.NextPageToken, nil
}
func ( s * pluginService ) ListUserTemplates ( ctx context . Context , owner string , pageSize uint32 , pageToken string , reverse bool , ) ( templates [ ] * v1alpha1 . Template , nextPageToken string , _ error ) { if s . contextModifier != nil { ctx = s . contextModifier ( ctx ) } response , err := s . client . ListUserTemplates ( ctx , & v1alpha1 . ListUserTemplatesRequest { Owner : owner , PageSize : pageSize , PageToken : pageToken , Reverse : reverse , } , ) if err != nil { return nil , " " , err } return response . Templates , response . NextPageToken , nil }
ListUserPlugins lists all templates belonging to a user.
ListUserPlugins lists all templates belonging to a user .