func (s *pluginService) ListTemplates(
	ctx context.Context,
	pageSize uint32,
	pageToken string,
	reverse bool,
) (templates []*v1alpha1.Template, nextPageToken string, _ error) {
	if s.contextModifier != nil {
		ctx = s.contextModifier(ctx)
	}
	response, err := s.client.ListTemplates(
		ctx,
		&v1alpha1.ListTemplatesRequest{
			PageSize:  pageSize,
			PageToken: pageToken,
			Reverse:   reverse,
		},
	)
	if err != nil {
		return nil, "", err
	}
	return response.Templates, response.NextPageToken, nil
}
// ListTemplates returns all the templates available to the user. This includes
// public templates, those owned by organizations the user is part of,
// and any created directly by the user.
ListTemplates returns all the templates available to the user. This includes
public templates, those owned by organizations the user is part of,
and any created directly by the user.
// ListTemplates returns all the templates available to the user . This includes // public templates those owned by organizations the user is part of // and any created directly by the user .
func (s *pluginService) ListTemplates(
	ctx context.Context,
	pageSize uint32,
	pageToken string,
	reverse bool,
) (templates []*v1alpha1.Template, nextPageToken string, _ error) {
	if s.contextModifier != nil {
		ctx = s.contextModifier(ctx)
	}
	response, err := s.client.ListTemplates(
		ctx,
		&v1alpha1.ListTemplatesRequest{
			PageSize:  pageSize,
			PageToken: pageToken,
			Reverse:   reverse,
		},
	)
	if err != nil {
		return nil, "", err
	}
	return response.Templates, response.NextPageToken, nil
}
func ( s * pluginService ) ListTemplates ( ctx context . Context , pageSize uint32 , pageToken string , reverse bool , ) ( templates [ ] * v1alpha1 . Template , nextPageToken string , _ error ) { if s . contextModifier != nil { ctx = s . contextModifier ( ctx ) } response , err := s . client . ListTemplates ( ctx , & v1alpha1 . ListTemplatesRequest { PageSize : pageSize , PageToken : pageToken , Reverse : reverse , } , ) if err != nil { return nil , " " , err } return response . Templates , response . NextPageToken , nil }
ListTemplates returns all the templates available to the user.
ListTemplates returns all the templates available to the user .