// GetFile implementation for Google Cloud Storage Data Backend
GetFile implementation for Google Cloud Storage Data Backend
// GetFile implementation for Google Cloud Storage Data Backend
func (sb *Backend) GetFile(file *common.File) (reader io.ReadCloser, err error) {
	err = sb.initClient()
	if err != nil {
		err = fmt.Errorf("unable to get gcs client: %s", err)
		return
	}
	return sb.client.Bucket(sb.Config.Bucket).Object(sb.getFileID(file.UploadID, file.ID)).NewReader(context.Background())
}
func ( sb * Backend ) GetFile ( file * common . File ) ( reader io . ReadCloser , err error ) { err = sb . initClient ( ) if err != nil { err = fmt . Errorf ( " " , err ) return } return sb . client . Bucket ( sb . Config . Bucket ) . Object ( sb . getFileID ( file . UploadID , file . ID ) ) . NewReader ( context . Background ( ) ) }
GetFile implementation for Google Cloud Storage Data Backend
GetFile implementation for Google Cloud Storage Data Backend
// Get the GCS client // Get the object