Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BackupCreate ¶
type BackupCreate struct {
Name string `form:"name" json:"name"`
// contains filtered or unexported fields
}
func NewBackupCreate ¶
func NewBackupCreate(app core.App, createBackup CreateBackupFunc) *BackupCreate
func (*BackupCreate) SetContext ¶
func (form *BackupCreate) SetContext(ctx context.Context)
func (*BackupCreate) Submit ¶
func (form *BackupCreate) Submit(interceptors ...forms.InterceptorFunc[string]) error
func (*BackupCreate) Validate ¶
func (form *BackupCreate) Validate() error
type BackupUpload ¶
type BackupUpload struct {
File *filesystem.File `json:"file"`
// contains filtered or unexported fields
}
BackupUpload is a request form for uploading a new app backup.
func NewBackupUpload ¶
func NewBackupUpload(app core.App) *BackupUpload
NewBackupUpload creates new BackupUpload request form.
func (*BackupUpload) SetContext ¶
func (form *BackupUpload) SetContext(ctx context.Context)
SetContext replaces the default form upload context with the provided one.
func (*BackupUpload) Submit ¶
func (form *BackupUpload) Submit(interceptors ...forms.InterceptorFunc[*filesystem.File]) error
Submit validates the form and upload the backup file.
You can optionally provide a list of InterceptorFunc to further modify the form behavior before uploading the backup.
func (*BackupUpload) Validate ¶
func (form *BackupUpload) Validate() error
Validate makes the form validatable by implementing validation.Validatable interface.