Documentation
¶
Overview ¶
* Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License.
Index ¶
- Constants
- type AgentServerStatus
- type BackupDetailResp
- type BackupIn
- type BackupInfo
- type BackupListResp
- type BackupMetaInfo
- type BackupOut
- type BackupOutResp
- type BackupStatus
- type ClusterInfo
- type DBBackupMode
- type DataNode
- type DeleteBackupIn
- type DeleteBackupOut
- type DeleteBackupResult
- type DiskSpaceIn
- type DiskSpaceInfo
- type DiskSpaceStatus
- type HealthCheckIn
- type LsBackup
- type MetaData
- type RestoreIn
- type RestoreResp
- type RestoreResult
- type ShowDetailIn
- type ShowListIn
- type SnapshotInfo
- type SsBackup
- type SsBackupInfo
- type StorageNode
- type StorageNodesInfo
Constants ¶
const ( SsBackupStatusWaiting BackupStatus = "Waiting" SsBackupStatusRunning BackupStatus = "Running" SsBackupStatusCompleted BackupStatus = "Completed" SsBackupStatusFailed BackupStatus = "Failed" SsBackupStatusCheckError BackupStatus = "CheckError" SsBackupStatusCanceled BackupStatus = "Canceled" DBBackModeFull DBBackupMode = "FULL" DBBackModePTrack DBBackupMode = "PTRACK" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AgentServerStatus ¶
type BackupDetailResp ¶
type BackupDetailResp struct { Code int `json:"code" validate:"required"` Msg string `json:"msg" validate:"required"` Data BackupInfo `json:"data"` }
type BackupIn ¶
type BackupIn struct { DBPort uint16 `json:"db_port"` DBName string `json:"db_name"` Username string `json:"username"` Password string `json:"password"` DnBackupPath string `json:"dn_backup_path"` DnThreadsNum uint8 `json:"dn_threads_num"` DnBackupMode DBBackupMode `json:"dn_backup_mode"` Instance string `json:"instance"` }
type BackupInfo ¶
type BackupListResp ¶
type BackupListResp struct { Code int `json:"code" validate:"required"` Msg string `json:"msg" validate:"required"` Data []BackupInfo `json:"data"` }
type BackupMetaInfo ¶
type BackupOutResp ¶
type BackupStatus ¶
type BackupStatus string
type ClusterInfo ¶
type ClusterInfo struct { MetaData MetaData `json:"meta_data"` SnapshotInfo *SnapshotInfo `json:"snapshot_info,omitempty"` }
type DBBackupMode ¶
type DBBackupMode string
type DeleteBackupIn ¶
type DeleteBackupOut ¶
type DeleteBackupResult ¶
type DeleteBackupResult struct { IP string `json:"ip"` Port uint16 `json:"port"` Status BackupStatus `json:"status"` Msg string }
type DiskSpaceIn ¶
type DiskSpaceIn struct { // DiskPath is the path of the disk DiskPath string `json:"diskPath"` }
type DiskSpaceInfo ¶
type DiskSpaceStatus ¶
type HealthCheckIn ¶
type LsBackup ¶
type LsBackup struct { Info *BackupMetaInfo `json:"info"` DnList []*DataNode `json:"dn_list"` SsBackup *SsBackup `json:"ss_backup"` }
LsBackup LocalStorageBackup
type RestoreIn ¶
type RestoreIn struct { DBPort uint16 `json:"db_port"` DBName string `json:"db_name"` Username string `json:"username"` Password string `json:"password"` Instance string `json:"instance"` DnBackupPath string `json:"dn_backup_path"` DnBackupID string `json:"dn_backup_id"` DnThreadsNum uint8 `json:"dn_threads_num"` }
type RestoreResp ¶
type RestoreResult ¶
type ShowDetailIn ¶
type ShowListIn ¶
type SnapshotInfo ¶
type SsBackup ¶
type SsBackup struct { Status BackupStatus `json:"status"` ClusterInfo *ClusterInfo `json:"cluster_info"` StorageNodes []*StorageNode `json:"storage_nodes"` }
type SsBackupInfo ¶
type SsBackupInfo struct {
ClusterInfo ClusterInfo `json:"cluster_info"`
}
type StorageNode ¶
type StorageNodesInfo ¶
type StorageNodesInfo struct {
StorageNodes map[string][]*StorageNode `json:"storage_nodes"`
}