2023-12-27 14:18:15 +00:00
|
|
|
package object
|
|
|
|
|
2024-03-15 12:16:52 +00:00
|
|
|
import (
|
2024-05-29 08:11:45 +00:00
|
|
|
"git.frostfs.info/TrueCloudLab/frostfs-sdk-go/bearer"
|
2024-03-15 12:16:52 +00:00
|
|
|
"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
|
|
|
|
2024-05-29 08:11:45 +00:00
|
|
|
BearerToken *bearer.Token
|
2023-12-27 14:18:15 +00:00
|
|
|
}
|