Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LvolToProtoLvol ¶
func ReplicaToProtoReplica ¶
Types ¶
type Engine ¶
type Engine struct { Name string `json:"name"` VolumeName string `json:"volumeName"` SpecSize uint64 `json:"spec_size"` ActualSize uint64 `json:"actual_size"` IP string `json:"ip"` Port int32 `json:"port"` TargetIP string `json:"target_ip"` TargetPort int32 `json:"target_port"` ReplicaAddressMap map[string]string `json:"replica_address_map"` ReplicaModeMap map[string]types.Mode `json:"replica_mode_map"` Head *Lvol `json:"head"` Snapshots map[string]*Lvol `json:"snapshots"` Frontend string `json:"frontend"` Endpoint string `json:"endpoint"` State string `json:"state"` ErrorMsg string `json:"error_msg"` }
func ProtoEngineToEngine ¶
type EngineStream ¶
type EngineStream struct {
// contains filtered or unexported fields
}
func NewEngineStream ¶
func NewEngineStream(stream spdkrpc.SPDKService_EngineWatchClient) *EngineStream
type Lvol ¶
type Lvol struct { Name string `json:"name"` UUID string `json:"uuid"` SpecSize uint64 `json:"spec_size"` ActualSize uint64 `json:"actual_size"` Parent string `json:"parent"` Children map[string]bool `json:"children"` CreationTime string `json:"creation_time"` UserCreated bool `json:"user_created"` SnapshotTimestamp string `json:"snapshot_timestamp"` }
func ProtoLvolToLvol ¶
type Replica ¶
type Replica struct { Name string `json:"name"` LvsName string `json:"lvs_name"` LvsUUID string `json:"lvs_uuid"` SpecSize uint64 `json:"spec_size"` ActualSize uint64 `json:"actual_size"` Head *Lvol `json:"head"` Snapshots map[string]*Lvol `json:"snapshots"` IP string `json:"ip"` PortStart int32 `json:"port_start"` PortEnd int32 `json:"port_end"` State string `json:"state"` ErrorMsg string `json:"error_msg"` Rebuilding bool `json:"rebuilding"` }
func ProtoReplicaToReplica ¶
type ReplicaRebuildingStatus ¶
type ReplicaRebuildingStatus struct { DstReplicaName string `json:"dst_replica_name"` DstReplicaAddress string `json:"dst_replica_address"` SrcReplicaName string `json:"src_replica_name"` SrcReplicaAddress string `json:"src_replica_address"` SnapshotName string `json:"snapshot_name"` State string `json:"state"` Progress uint32 `json:"progress"` TotalState string `json:"total_state"` TotalProgress uint32 `json:"total_progress"` Error string `json:"error"` }
func ProtoShallowCopyStatusToReplicaRebuildingStatus ¶
func ProtoShallowCopyStatusToReplicaRebuildingStatus(replicaName, replicaAddress string, status *spdkrpc.ReplicaRebuildingDstShallowCopyCheckResponse) *ReplicaRebuildingStatus
type ReplicaStream ¶
type ReplicaStream struct {
// contains filtered or unexported fields
}
func NewReplicaStream ¶
func NewReplicaStream(stream spdkrpc.SPDKService_ReplicaWatchClient) *ReplicaStream
type SnapshotOptions ¶
Click to show internal directories.
Click to hide internal directories.