func (s *Source) readTarComponent(path string) ([]byte, error) {
	file, err := s.openTarComponent(path)
	if err != nil {
		return nil, errors.Wrapf(err, "Error loading tar component %s", path)
	}
	defer file.Close()
	bytes, err := ioutil.ReadAll(file)
	if err != nil {
		return nil, err
	}
	return bytes, nil
}
func (s *Source) readTarComponent(path string) ([]byte, error) {
	file, err := s.openTarComponent(path)
	if err != nil {
		return nil, errors.Wrapf(err, "Error loading tar component %s", path)
	}
	defer file.Close()
	bytes, err := ioutil.ReadAll(file)
	if err != nil {
		return nil, err
	}
	return bytes, nil
}
func ( s * Source ) readTarComponent ( path string ) ( [ ] byte , error ) { file , err := s . openTarComponent ( path ) if err != nil { return nil , errors . Wrapf ( err , " " , path ) } defer file . Close ( ) bytes , err := ioutil . ReadAll ( file ) if err != nil { return nil , err } return bytes , nil }
// readTarComponent returns full contents of componentPath.
readTarComponent returns full contents of componentPath .