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