2023-12-27 14:18:15 +00:00
|
|
|
package object
|
|
|
|
|
2024-03-15 12:16:52 +00:00
|
|
|
import (
|
|
|
|
"git.frostfs.info/TrueCloudLab/frostfs-sdk-go/container/acl"
|
|
|
|
"git.frostfs.info/TrueCloudLab/frostfs-sdk-go/user"
|
|
|
|
)
|
2023-12-27 14:18:15 +00:00
|
|
|
|
|
|
|
type RequestContextKeyT struct{}
|
|
|
|
|
|
|
|
var RequestContextKey = RequestContextKeyT{}
|
|
|
|
|
|
|
|
// RequestContext is a context passed between middleware handlers.
|
|
|
|
type RequestContext struct {
|
|
|
|
Namespace string
|
|
|
|
|
|
|
|
SenderKey []byte
|
|
|
|
|
2024-03-15 12:16:52 +00:00
|
|
|
ContainerOwner user.ID
|
|
|
|
|
2023-12-27 14:18:15 +00:00
|
|
|
Role acl.Role
|
2024-02-14 11:14:07 +00:00
|
|
|
|
|
|
|
SoftAPECheck bool
|
2023-12-27 14:18:15 +00:00
|
|
|
}
|