2022-12-23 17:35:35 +00:00
|
|
|
package frostfsapiclient
|
2021-10-27 12:12:05 +00:00
|
|
|
|
|
|
|
import (
|
|
|
|
"context"
|
|
|
|
|
2023-03-07 13:38:26 +00:00
|
|
|
oid "git.frostfs.info/TrueCloudLab/frostfs-sdk-go/object/id"
|
2021-10-27 12:12:05 +00:00
|
|
|
)
|
|
|
|
|
2023-03-20 06:39:44 +00:00
|
|
|
// nolint: containedctx
|
2021-10-27 12:12:05 +00:00
|
|
|
type contextPrm struct {
|
|
|
|
ctx context.Context
|
|
|
|
}
|
|
|
|
|
|
|
|
// SetContext sets context.Context used for network communication.
|
|
|
|
func (x *contextPrm) SetContext(ctx context.Context) {
|
|
|
|
x.ctx = ctx
|
|
|
|
}
|
|
|
|
|
|
|
|
type objectAddressPrm struct {
|
2022-05-31 17:00:41 +00:00
|
|
|
objAddr oid.Address
|
2021-10-27 12:12:05 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// SetAddress sets address of the object.
|
2022-05-31 17:00:41 +00:00
|
|
|
func (x *objectAddressPrm) SetAddress(addr oid.Address) {
|
2021-10-27 12:12:05 +00:00
|
|
|
x.objAddr = addr
|
|
|
|
}
|
|
|
|
|
|
|
|
type getObjectPrm struct {
|
|
|
|
contextPrm
|
|
|
|
objectAddressPrm
|
|
|
|
}
|