2020-09-30 10:52:14 +00:00
|
|
|
package deletesvc
|
|
|
|
|
|
|
|
import (
|
2020-12-11 08:04:04 +00:00
|
|
|
"crypto/ecdsa"
|
|
|
|
|
|
|
|
"github.com/nspcc-dev/neofs-api-go/pkg/client"
|
2020-09-30 10:52:14 +00:00
|
|
|
"github.com/nspcc-dev/neofs-node/pkg/services/object/util"
|
|
|
|
)
|
|
|
|
|
2020-12-11 08:04:04 +00:00
|
|
|
// Prm groups parameters of Delete service call.
|
2020-09-30 10:52:14 +00:00
|
|
|
type Prm struct {
|
2020-12-11 08:04:04 +00:00
|
|
|
key *ecdsa.PrivateKey
|
|
|
|
|
2020-09-30 10:52:14 +00:00
|
|
|
common *util.CommonPrm
|
|
|
|
|
2020-12-11 08:04:04 +00:00
|
|
|
client.DeleteObjectParams
|
2020-09-30 10:52:14 +00:00
|
|
|
}
|
|
|
|
|
2020-12-11 08:04:04 +00:00
|
|
|
// SetCommonParameters sets common parameters of the operation.
|
|
|
|
func (p *Prm) SetCommonParameters(common *util.CommonPrm) {
|
|
|
|
p.common = common
|
2020-09-30 10:52:14 +00:00
|
|
|
}
|
|
|
|
|
2020-12-11 08:04:04 +00:00
|
|
|
// SetPrivateKey sets private key to use during execution.
|
|
|
|
func (p *Prm) SetPrivateKey(key *ecdsa.PrivateKey) {
|
|
|
|
p.key = key
|
2020-09-30 10:52:14 +00:00
|
|
|
}
|