mirror of
https://github.com/vwxyzjn/portwarden
synced 2025-12-10 05:13:54 +00:00
29 lines
673 B
Go
29 lines
673 B
Go
package server
|
|
|
|
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"`
|
|
}
|
|
|
|
type GoogleDriveCredentials struct {
|
|
State string `form:"state"`
|
|
Code string `form:"code"`
|
|
Scope string `form:"scope"`
|
|
}
|