forked from TrueCloudLab/frostfs-node
[#235] object/head: Support raw flag in service
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
1d23483828
commit
397d912e19
5 changed files with 33 additions and 3 deletions
|
@ -11,6 +11,8 @@ type Prm struct {
|
|||
short bool
|
||||
|
||||
addr *object.Address
|
||||
|
||||
raw bool
|
||||
}
|
||||
|
||||
func (p *Prm) WithCommonPrm(v *util.CommonPrm) *Prm {
|
||||
|
@ -36,3 +38,11 @@ func (p *Prm) WithAddress(v *object.Address) *Prm {
|
|||
|
||||
return p
|
||||
}
|
||||
|
||||
func (p *Prm) WithRaw(v bool) *Prm {
|
||||
if p != nil {
|
||||
p.raw = v
|
||||
}
|
||||
|
||||
return p
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue