コード例 #1
0
func (r *ReplicaDurability) SetExecutorVolumeRequest(v *executors.VolumeRequest) {
	v.Type = executors.DurabilityReplica
	v.Replica = r.Replica
}
コード例 #2
0
func (d *DisperseDurability) SetExecutorVolumeRequest(v *executors.VolumeRequest) {
	v.Type = executors.DurabilityDispersion
	v.Data = d.Data
	v.Redundancy = d.Redundancy
}
コード例 #3
0
func (n *NoneDurability) SetExecutorVolumeRequest(v *executors.VolumeRequest) {
	v.Type = executors.DurabilityNone
	v.Replica = n.Replica
}