tasks

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

Types

type GetResult

type GetResult struct {
	// contains filtered or unexported fields
}

func Get

func Get(client *golangsdk.ServiceClient, id string) (r GetResult)

func (GetResult) Extract

func (r GetResult) Extract() (*OperationLog, error)

type ListOpts

type ListOpts struct {
	EndTime             string `q:"end_time"`
	EnterpriseProjectId string `q:"enterprise_project_id"`
	Limit               int    `q:"limit"`
	Offset              int    `q:"offset"`
	OperationType       string `q:"operation_type"`
	ProviderId          string `q:"provider_id"`
	ResourceId          string `q:"resource_id"`
	ResourceName        string `q:"resource_name"`
	StartTime           string `q:"start_time"`
	Status              string `q:"status"`
	VaultId             string `q:"vault_id"`
	VaultName           string `q:"vault_name"`
}

func (ListOpts) ToTaskListQuery

func (opts ListOpts) ToTaskListQuery() (string, error)

type ListOptsBuilder

type ListOptsBuilder interface {
	ToTaskListQuery() (string, error)
}

type OpErrorInfo

type OpErrorInfo struct {
	Code    string `json:"code"`
	Message string `json:"message"`
}

type OpExtendInfoBackup

type OpExtendInfoBackup struct {
	AppConsistencyErrorCode    string `json:"app_consistency_error_code"`
	AppConsistencyErrorMessage string `json:"app_consistency_error_message"`
	AppConsistencyStatus       string `json:"app_consistency_status"`
	BackupID                   string `json:"backup_id"`
	BackupName                 string `json:"backup_name"`
	Incremental                string `json:"incremental"`
}

type OpExtendInfoCommon

type OpExtendInfoCommon struct {
	Progress  int    `json:"progress"`
	RequestID string `json:"request_id"`
	TaskID    string `json:"task_id"`
}

type OpExtendInfoDelete

type OpExtendInfoDelete struct {
	BackupID   string `json:"backup_id"`
	BackupName string `json:"backup_name"`
}

type OpExtendInfoRemoveResources

type OpExtendInfoRemoveResources struct {
	FailCount  int        `json:"fail_count"`
	TotalCount int        `json:"total_count"`
	Resources  []Resource `json:"resources"`
}

type OpExtendInfoReplication

type OpExtendInfoReplication struct {
	DestinationBackupID     string `json:"destination_backup_id"`
	DestinationCheckpointID string `json:"destination_checkpoint_id"`
	DestinationProjectID    string `json:"destination_project_id"`
	DestinationRegion       string `json:"destination_region"`
	SourceBackupID          string `json:"source_backup_id"`
	SourceCheckpointID      string `json:"source_checkpoint_id"`
	SourceProjectID         string `json:"source_project_id"`
	SourceRegion            string `json:"source_region"`
	SourceBackupName        string `json:"source_backup_name"`
	DestinationBackupName   string `json:"destination_backup_name"`
}

type OpExtendInfoRestore

type OpExtendInfoRestore struct {
	BackupID           string `json:"backup_id"`
	BackupName         string `json:"backup_name"`
	TargetResourceId   string `json:"target_resource_id"`
	TargetResourceName string `json:"target_resource_name"`
}

type OpExtendInfoSync

type OpExtendInfoSync struct {
	SyncBackupNum    int `json:"sync_backup_num"`
	DeleteBackupNum  int `json:"delete_backup_num"`
	ErrSyncBackupNum int `json:"err_sync_backup_num"`
}

type OpExtendInfoVaultDelete

type OpExtendInfoVaultDelete struct {
	FailCount  int `json:"fail_count"`
	TotalCount int `json:"total_count"`
}

type OpExtraInfo

type OpExtraInfo struct {
	Backup          OpExtendInfoBackup          `json:"backup"`
	Common          OpExtendInfoCommon          `json:"common"`
	Delete          OpExtendInfoDelete          `json:"delete"`
	Sync            OpExtendInfoSync            `json:"sync"`
	RemoveResources OpExtendInfoRemoveResources `json:"remove_resources"`
	Replication     OpExtendInfoReplication     `json:"replication"`
	Resource        Resource                    `json:"resource"`
	Restore         OpExtendInfoRestore         `json:"restore"`
	VaultDelete     OpExtendInfoVaultDelete     `json:"vault_delete"`
}

type OperationLog

type OperationLog struct {
	CheckpointID  string      `json:"checkpoint_id"`
	CreatedAt     string      `json:"created_at"`
	EndedAt       string      `json:"ended_at"`
	ErrorInfo     OpErrorInfo `json:"error_info"`
	ExtraInfo     OpExtraInfo `json:"extra_info"`
	ID            string      `json:"id"`
	OperationType string      `json:"operation_type"`
	PolicyID      string      `json:"policy_id"`
	ProjectID     string      `json:"project_id"`
	ProviderID    string      `json:"provider_id"`
	StartedAt     string      `json:"started_at"`
	Status        string      `json:"status"`
	UpdatedAt     string      `json:"updated_at"`
	VaultID       string      `json:"vault_id"`
	VaultName     string      `json:"vault_name"`
}

func ExtractTasks

func ExtractTasks(r pagination.Page) ([]OperationLog, error)

type Resource

type Resource struct {
	ExtraInfo ResourceExtraInfo `json:"extra_info"`
	ID        string            `json:"id"`
	Name      string            `json:"name"`
	Type      string            `json:"type"`
}

type ResourceExtraInfo

type ResourceExtraInfo struct {
	ExcludeVolumes []string                          `json:"exclude_volumes"`
	IncludeVolumes []ResourceExtraInfoIncludeVolumes `json:"include_volumes"`
}

type ResourceExtraInfoIncludeVolumes

type ResourceExtraInfoIncludeVolumes struct {
	ID        string `json:"id"`
	OsVersion string `json:"os_version"`
}

type TaskPage

type TaskPage struct {
	pagination.SinglePageBase
}

Jump to

Keyboard shortcuts

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