Documentation ¶
Index ¶
- Constants
- type Backup
- func (b *Backup) Download(ctx context.Context, applianceID, backupID, destination string) (*os.File, error)
- func (b *Backup) DownloadLegacy(ctx context.Context, applianceID, backupID, destination string) (*os.File, error)
- func (b *Backup) Initiate(ctx context.Context, applianceID string, logs, audit bool) (string, error)
- func (b *Backup) Status(ctx context.Context, applianceID, backupID string) (*openapi.AppliancesIdBackupBackupIdStatusGet200Response, error)
Constants ¶
View Source
const ( // https://github.com/appgate/sdp-api-specification/blob/0cae2de511a135ca1c29beb89fe9d38e83ffc4f1/appliance_backup.yml#L87-L88 Processing string = "processing" Done string = "done" Success string = "success" Failure string = "failure" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Backup ¶
type Backup struct { HTTPClient *http.Client APIClient *openapi.APIClient Token string Version int // contains filtered or unexported fields }
func (*Backup) Download ¶
func (b *Backup) Download(ctx context.Context, applianceID, backupID, destination string) (*os.File, error)
Download a completed appliance backup with the given ID of an Appliance
func (*Backup) DownloadLegacy ¶
func (b *Backup) DownloadLegacy(ctx context.Context, applianceID, backupID, destination string) (*os.File, error)
DownloadLegacy a completed appliance backup with the given ID of an Appliance
Click to show internal directories.
Click to hide internal directories.