func (s *pluginService) GetTemplateVersion(
	ctx context.Context,
	owner string,
	name string,
	version string,
) (templateVersion *v1alpha1.TemplateVersion, _ error) {
	if s.contextModifier != nil {
		ctx = s.contextModifier(ctx)
	}
	response, err := s.client.GetTemplateVersion(
		ctx,
		&v1alpha1.GetTemplateVersionRequest{
			Owner:   owner,
			Name:    name,
			Version: version,
		},
	)
	if err != nil {
		return nil, err
	}
	return response.TemplateVersion, nil
}
// GetTemplateVersion returns the template version, if found.
GetTemplateVersion returns the template version, if found.
// GetTemplateVersion returns the template version if found .
func (s *pluginService) GetTemplateVersion(
	ctx context.Context,
	owner string,
	name string,
	version string,
) (templateVersion *v1alpha1.TemplateVersion, _ error) {
	if s.contextModifier != nil {
		ctx = s.contextModifier(ctx)
	}
	response, err := s.client.GetTemplateVersion(
		ctx,
		&v1alpha1.GetTemplateVersionRequest{
			Owner:   owner,
			Name:    name,
			Version: version,
		},
	)
	if err != nil {
		return nil, err
	}
	return response.TemplateVersion, nil
}
func ( s * pluginService ) GetTemplateVersion ( ctx context . Context , owner string , name string , version string , ) ( templateVersion * v1alpha1 . TemplateVersion , _ error ) { if s . contextModifier != nil { ctx = s . contextModifier ( ctx ) } response , err := s . client . GetTemplateVersion ( ctx , & v1alpha1 . GetTemplateVersionRequest { Owner : owner , Name : name , Version : version , } , ) if err != nil { return nil , err } return response . TemplateVersion , nil }
GetTemplateVersion returns the template version, if found.
GetTemplateVersion returns the template version if found .