GetCredentialsFromRequest extracts the credentials from a backup request.
(req *pb.BackupRequest)
| 140 | |
| 141 | // GetCredentialsFromRequest extracts the credentials from a backup request. |
| 142 | func GetCredentialsFromRequest(req *pb.BackupRequest) *x.MinioCredentials { |
| 143 | return &x.MinioCredentials{ |
| 144 | AccessKey: req.GetAccessKey(), |
| 145 | SecretKey: req.SecretKey, |
| 146 | SessionToken: req.SessionToken, |
| 147 | Anonymous: req.GetAnonymous(), |
| 148 | } |
| 149 | } |
| 150 | |
| 151 | func StoreExport(request *pb.ExportRequest, dir string, key x.Sensitive) error { |
| 152 | db, err := badger.OpenManaged(badger.DefaultOptions(dir). |
no test coverage detected