backupv2

package
v0.2.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 7, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BackupTemplate

type BackupTemplate struct {
	ExpirationTime time.Time       `json:"expirationTime"`
	IgnoredSources *IgnoredSources `json:"ignoredSources,omitempty"`
}

func (*BackupTemplate) Validate

func (o *BackupTemplate) Validate() error

type DatabaseReference

type DatabaseReference struct {
	Kind string `json:"kind"`
	Name string `json:"name"`
}

func (*DatabaseReference) Validate

func (o *DatabaseReference) Validate() error

type IgnoredSources

type IgnoredSources struct {
	Databases []DatabaseReference `json:"databases,omitempty"`
	Files     bool                `json:"files"`
}

func (*IgnoredSources) Validate

func (o *IgnoredSources) Validate() error

type ProjectBackup

type ProjectBackup struct {
	CreatedAt   *time.Time           `json:"createdAt,omitempty"`
	Deletable   bool                 `json:"deletable"`
	Description *string              `json:"description,omitempty"`
	ExpiresAt   *time.Time           `json:"expiresAt,omitempty"`
	Export      *ProjectBackupExport `json:"export,omitempty"`
	Id          string               `json:"id"`
	ParentId    *string              `json:"parentId,omitempty"`
	ProjectId   string               `json:"projectId"`
	Status      string               `json:"status"`
}

func (*ProjectBackup) Validate

func (o *ProjectBackup) Validate() error

type ProjectBackupExport

type ProjectBackupExport struct {
	DownloadURL  *string                   `json:"downloadURL,omitempty"`
	ExpiresAt    *time.Time                `json:"expiresAt,omitempty"`
	Format       string                    `json:"format"`
	Phase        *ProjectBackupExportPhase `json:"phase,omitempty"`
	WithPassword bool                      `json:"withPassword"`
}

func (*ProjectBackupExport) Validate

func (o *ProjectBackupExport) Validate() error

type ProjectBackupExportPhase

type ProjectBackupExportPhase string
const ProjectBackupExportPhaseCompleted ProjectBackupExportPhase = "Completed"
const ProjectBackupExportPhaseEmpty ProjectBackupExportPhase = ""
const ProjectBackupExportPhaseExpired ProjectBackupExportPhase = "Expired"
const ProjectBackupExportPhaseExporting ProjectBackupExportPhase = "Exporting"
const ProjectBackupExportPhaseFailed ProjectBackupExportPhase = "Failed"
const ProjectBackupExportPhasePending ProjectBackupExportPhase = "Pending"

func (ProjectBackupExportPhase) Validate

func (e ProjectBackupExportPhase) Validate() error

type ProjectBackupSchedule

type ProjectBackupSchedule struct {
	CreatedAt      *time.Time `json:"createdAt,omitempty"`
	Description    *string    `json:"description,omitempty"`
	Id             string     `json:"id"`
	IsSystemBackup bool       `json:"isSystemBackup"`
	ProjectId      string     `json:"projectId"`
	Schedule       string     `json:"schedule"`
	Ttl            *string    `json:"ttl,omitempty"`
	UpdatedAt      *time.Time `json:"updatedAt,omitempty"`
}

func (*ProjectBackupSchedule) Validate

func (o *ProjectBackupSchedule) Validate() error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL