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