(in *pb.ExportRequest, backupName string)
| 575 | } |
| 576 | |
| 577 | func NewExportStorage(in *pb.ExportRequest, backupName string) (ExportStorage, error) { |
| 578 | switch { |
| 579 | case strings.HasPrefix(in.Destination, "/"): |
| 580 | return newLocalExportStorage(in.Destination, backupName) |
| 581 | case strings.HasPrefix(in.Destination, "minio://") || strings.HasPrefix(in.Destination, "s3://"): |
| 582 | return newRemoteExportStorage(in, backupName) |
| 583 | default: |
| 584 | return newLocalExportStorage(x.WorkerConfig.ExportPath, backupName) |
| 585 | } |
| 586 | } |
| 587 | |
| 588 | // export creates a export of data by exporting it as an RDF gzip. |
| 589 | func export(ctx context.Context, in *pb.ExportRequest) (ExportedFiles, error) { |
no test coverage detected
searching dependent graphs…