mirror of
https://github.com/vwxyzjn/portwarden
synced 2025-12-23 19:03:14 +00:00
23 lines
547 B
Go
23 lines
547 B
Go
package models
|
|
|
|
import (
|
|
"mime/multipart"
|
|
|
|
"github.com/vwxyzjn/portwarden"
|
|
)
|
|
|
|
const (
|
|
BackupDefaultSleepMilliseconds = 300
|
|
)
|
|
|
|
type EncryptBackupInfo struct {
|
|
FileNamePrefix string `json:"filename_prefix"`
|
|
Passphrase string `json:"passphrase"`
|
|
BitwardenLoginCredentials portwarden.LoginCredentials `json:"bitwarden_login_credentials"`
|
|
}
|
|
|
|
type DecryptBackupInfo struct {
|
|
File *multipart.FileHeader `form:"file"`
|
|
Passphrase string `form:"passphrase"`
|
|
}
|