2020-08-17 12:08:00 +00:00
|
|
|
package container
|
|
|
|
|
|
|
|
import (
|
2023-03-07 10:38:56 +00:00
|
|
|
"git.frostfs.info/TrueCloudLab/frostfs-api-go/v2/acl"
|
|
|
|
"git.frostfs.info/TrueCloudLab/frostfs-api-go/v2/netmap"
|
|
|
|
"git.frostfs.info/TrueCloudLab/frostfs-api-go/v2/refs"
|
|
|
|
"git.frostfs.info/TrueCloudLab/frostfs-api-go/v2/session"
|
2020-08-17 12:08:00 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
type Attribute struct {
|
|
|
|
key, val string
|
|
|
|
}
|
|
|
|
|
|
|
|
type Container struct {
|
2020-08-20 09:43:47 +00:00
|
|
|
version *refs.Version
|
2020-08-17 12:08:00 +00:00
|
|
|
|
|
|
|
ownerID *refs.OwnerID
|
|
|
|
|
|
|
|
nonce []byte
|
|
|
|
|
|
|
|
basicACL uint32
|
|
|
|
|
2022-03-02 08:18:59 +00:00
|
|
|
attr []Attribute
|
2020-08-17 12:08:00 +00:00
|
|
|
|
|
|
|
policy *netmap.PlacementPolicy
|
|
|
|
}
|
|
|
|
|
2020-08-17 16:00:10 +00:00
|
|
|
type PutRequestBody struct {
|
|
|
|
cnr *Container
|
|
|
|
|
2020-08-20 09:43:47 +00:00
|
|
|
sig *refs.Signature
|
2020-08-17 16:00:10 +00:00
|
|
|
}
|
2021-03-12 12:57:23 +00:00
|
|
|
type PutRequest struct {
|
|
|
|
body *PutRequestBody
|
|
|
|
|
|
|
|
session.RequestHeaders
|
|
|
|
}
|
2020-08-17 16:00:10 +00:00
|
|
|
|
|
|
|
type PutResponseBody struct {
|
|
|
|
cid *refs.ContainerID
|
|
|
|
}
|
|
|
|
|
2021-03-12 12:57:23 +00:00
|
|
|
type PutResponse struct {
|
|
|
|
body *PutResponseBody
|
|
|
|
|
|
|
|
session.ResponseHeaders
|
|
|
|
}
|
|
|
|
|
2020-08-17 16:00:10 +00:00
|
|
|
type GetRequestBody struct {
|
|
|
|
cid *refs.ContainerID
|
|
|
|
}
|
|
|
|
|
|
|
|
type GetRequest struct {
|
|
|
|
body *GetRequestBody
|
|
|
|
|
2021-03-12 12:57:23 +00:00
|
|
|
session.RequestHeaders
|
2020-08-17 16:00:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
type GetResponseBody struct {
|
|
|
|
cnr *Container
|
2021-05-24 18:18:56 +00:00
|
|
|
|
2022-02-25 07:36:46 +00:00
|
|
|
token *session.Token
|
2021-05-24 18:18:56 +00:00
|
|
|
|
|
|
|
sig *refs.Signature
|
2020-08-17 16:00:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
type GetResponse struct {
|
|
|
|
body *GetResponseBody
|
|
|
|
|
2021-03-12 12:57:23 +00:00
|
|
|
session.ResponseHeaders
|
2020-08-17 16:00:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
type DeleteRequestBody struct {
|
|
|
|
cid *refs.ContainerID
|
|
|
|
|
2020-08-20 09:43:47 +00:00
|
|
|
sig *refs.Signature
|
2020-08-17 16:00:10 +00:00
|
|
|
}
|
|
|
|
|
2021-03-12 12:57:23 +00:00
|
|
|
type DeleteRequest struct {
|
|
|
|
body *DeleteRequestBody
|
|
|
|
|
|
|
|
session.RequestHeaders
|
|
|
|
}
|
|
|
|
|
2020-08-17 16:00:10 +00:00
|
|
|
type DeleteResponseBody struct{}
|
|
|
|
|
2021-03-12 12:57:23 +00:00
|
|
|
type DeleteResponse struct {
|
|
|
|
body *DeleteResponseBody
|
|
|
|
|
|
|
|
session.ResponseHeaders
|
|
|
|
}
|
|
|
|
|
2020-08-17 16:00:10 +00:00
|
|
|
type ListRequestBody struct {
|
|
|
|
ownerID *refs.OwnerID
|
|
|
|
}
|
|
|
|
|
2021-03-12 12:57:23 +00:00
|
|
|
type ListRequest struct {
|
|
|
|
body *ListRequestBody
|
|
|
|
|
|
|
|
session.RequestHeaders
|
|
|
|
}
|
|
|
|
|
2020-08-17 16:00:10 +00:00
|
|
|
type ListResponseBody struct {
|
2022-03-02 08:18:59 +00:00
|
|
|
cidList []refs.ContainerID
|
2020-08-17 16:00:10 +00:00
|
|
|
}
|
|
|
|
|
2021-03-12 12:57:23 +00:00
|
|
|
type ListResponse struct {
|
|
|
|
body *ListResponseBody
|
|
|
|
|
|
|
|
session.ResponseHeaders
|
|
|
|
}
|
|
|
|
|
2020-08-17 16:00:10 +00:00
|
|
|
type GetExtendedACLRequestBody struct {
|
|
|
|
cid *refs.ContainerID
|
|
|
|
}
|
|
|
|
|
2021-03-12 12:57:23 +00:00
|
|
|
type GetExtendedACLRequest struct {
|
|
|
|
body *GetExtendedACLRequestBody
|
|
|
|
|
|
|
|
session.RequestHeaders
|
|
|
|
}
|
|
|
|
|
2020-08-17 16:00:10 +00:00
|
|
|
type GetExtendedACLResponseBody struct {
|
|
|
|
eacl *acl.Table
|
|
|
|
|
2020-08-20 09:43:47 +00:00
|
|
|
sig *refs.Signature
|
2021-05-24 18:18:56 +00:00
|
|
|
|
2022-02-25 07:36:46 +00:00
|
|
|
token *session.Token
|
2020-08-17 16:00:10 +00:00
|
|
|
}
|
|
|
|
|
2021-03-12 12:57:23 +00:00
|
|
|
type GetExtendedACLResponse struct {
|
|
|
|
body *GetExtendedACLResponseBody
|
|
|
|
|
|
|
|
session.ResponseHeaders
|
|
|
|
}
|
|
|
|
|
2020-08-17 12:08:00 +00:00
|
|
|
func (a *Attribute) GetKey() string {
|
|
|
|
if a != nil {
|
|
|
|
return a.key
|
|
|
|
}
|
|
|
|
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
func (a *Attribute) SetKey(v string) {
|
2022-03-23 11:42:57 +00:00
|
|
|
a.key = v
|
2020-08-17 12:08:00 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (a *Attribute) GetValue() string {
|
|
|
|
if a != nil {
|
|
|
|
return a.val
|
|
|
|
}
|
|
|
|
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
func (a *Attribute) SetValue(v string) {
|
2022-03-23 11:42:57 +00:00
|
|
|
a.val = v
|
2020-08-17 12:08:00 +00:00
|
|
|
}
|
|
|
|
|
2020-08-20 09:43:47 +00:00
|
|
|
func (c *Container) GetVersion() *refs.Version {
|
2020-08-17 12:08:00 +00:00
|
|
|
if c != nil {
|
|
|
|
return c.version
|
|
|
|
}
|
|
|
|
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2020-08-20 09:43:47 +00:00
|
|
|
func (c *Container) SetVersion(v *refs.Version) {
|
2022-03-23 11:42:57 +00:00
|
|
|
c.version = v
|
2020-08-17 12:08:00 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (c *Container) GetOwnerID() *refs.OwnerID {
|
|
|
|
if c != nil {
|
|
|
|
return c.ownerID
|
|
|
|
}
|
|
|
|
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *Container) SetOwnerID(v *refs.OwnerID) {
|
2022-03-23 11:42:57 +00:00
|
|
|
c.ownerID = v
|
2020-08-17 12:08:00 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (c *Container) GetNonce() []byte {
|
|
|
|
if c != nil {
|
|
|
|
return c.nonce
|
|
|
|
}
|
|
|
|
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *Container) SetNonce(v []byte) {
|
2022-03-23 11:42:57 +00:00
|
|
|
c.nonce = v
|
2020-08-17 12:08:00 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (c *Container) GetBasicACL() uint32 {
|
|
|
|
if c != nil {
|
|
|
|
return c.basicACL
|
|
|
|
}
|
|
|
|
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *Container) SetBasicACL(v uint32) {
|
2022-03-23 11:42:57 +00:00
|
|
|
c.basicACL = v
|
2020-08-17 12:08:00 +00:00
|
|
|
}
|
|
|
|
|
2022-03-02 08:18:59 +00:00
|
|
|
func (c *Container) GetAttributes() []Attribute {
|
2020-08-17 12:08:00 +00:00
|
|
|
if c != nil {
|
|
|
|
return c.attr
|
|
|
|
}
|
|
|
|
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2022-03-02 08:18:59 +00:00
|
|
|
func (c *Container) SetAttributes(v []Attribute) {
|
2022-03-23 11:42:57 +00:00
|
|
|
c.attr = v
|
2020-08-17 12:08:00 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (c *Container) GetPlacementPolicy() *netmap.PlacementPolicy {
|
|
|
|
if c != nil {
|
|
|
|
return c.policy
|
|
|
|
}
|
|
|
|
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *Container) SetPlacementPolicy(v *netmap.PlacementPolicy) {
|
2022-03-23 11:42:57 +00:00
|
|
|
c.policy = v
|
2020-08-17 12:08:00 +00:00
|
|
|
}
|
2020-08-17 16:00:10 +00:00
|
|
|
|
|
|
|
func (r *PutRequestBody) GetContainer() *Container {
|
|
|
|
if r != nil {
|
|
|
|
return r.cnr
|
|
|
|
}
|
|
|
|
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (r *PutRequestBody) SetContainer(v *Container) {
|
2022-03-23 11:42:57 +00:00
|
|
|
r.cnr = v
|
2020-08-17 16:00:10 +00:00
|
|
|
}
|
|
|
|
|
2020-08-20 09:43:47 +00:00
|
|
|
func (r *PutRequestBody) GetSignature() *refs.Signature {
|
2020-08-17 16:00:10 +00:00
|
|
|
if r != nil {
|
|
|
|
return r.sig
|
|
|
|
}
|
|
|
|
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2020-08-20 09:43:47 +00:00
|
|
|
func (r *PutRequestBody) SetSignature(v *refs.Signature) {
|
2022-03-23 11:42:57 +00:00
|
|
|
// TODO: (neofs-api-go#381) avoid this hack (e.g. create refs.SignatureRFC6979 type)
|
|
|
|
v.SetScheme(0)
|
|
|
|
r.sig = v
|
2020-08-17 16:00:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (r *PutRequest) GetBody() *PutRequestBody {
|
|
|
|
if r != nil {
|
|
|
|
return r.body
|
|
|
|
}
|
|
|
|
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (r *PutRequest) SetBody(v *PutRequestBody) {
|
2022-03-23 11:42:57 +00:00
|
|
|
r.body = v
|
2020-08-17 16:00:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (r *PutResponseBody) GetContainerID() *refs.ContainerID {
|
|
|
|
if r != nil {
|
|
|
|
return r.cid
|
|
|
|
}
|
|
|
|
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (r *PutResponseBody) SetContainerID(v *refs.ContainerID) {
|
2022-03-23 11:42:57 +00:00
|
|
|
r.cid = v
|
2020-08-17 16:00:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (r *PutResponse) GetBody() *PutResponseBody {
|
|
|
|
if r != nil {
|
|
|
|
return r.body
|
|
|
|
}
|
|
|
|
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (r *PutResponse) SetBody(v *PutResponseBody) {
|
2022-03-23 11:42:57 +00:00
|
|
|
r.body = v
|
2020-08-17 16:00:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (r *GetRequestBody) GetContainerID() *refs.ContainerID {
|
|
|
|
if r != nil {
|
|
|
|
return r.cid
|
|
|
|
}
|
|
|
|
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (r *GetRequestBody) SetContainerID(v *refs.ContainerID) {
|
2022-03-23 11:42:57 +00:00
|
|
|
r.cid = v
|
2020-08-17 16:00:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (r *GetRequest) GetBody() *GetRequestBody {
|
|
|
|
if r != nil {
|
|
|
|
return r.body
|
|
|
|
}
|
|
|
|
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (r *GetRequest) SetBody(v *GetRequestBody) {
|
2022-03-23 11:42:57 +00:00
|
|
|
r.body = v
|
2020-08-17 16:00:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (r *GetResponseBody) GetContainer() *Container {
|
|
|
|
if r != nil {
|
|
|
|
return r.cnr
|
|
|
|
}
|
|
|
|
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (r *GetResponseBody) SetContainer(v *Container) {
|
2022-03-23 11:42:57 +00:00
|
|
|
r.cnr = v
|
2020-08-17 16:00:10 +00:00
|
|
|
}
|
|
|
|
|
2021-05-24 18:18:56 +00:00
|
|
|
// GetSessionToken returns token of the session within which requested
|
|
|
|
// container was created.
|
2022-02-25 07:36:46 +00:00
|
|
|
func (r *GetResponseBody) GetSessionToken() *session.Token {
|
2021-05-24 18:18:56 +00:00
|
|
|
if r != nil {
|
|
|
|
return r.token
|
|
|
|
}
|
|
|
|
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
// SetSessionToken sets token of the session within which requested
|
|
|
|
// container was created.
|
2022-02-25 07:36:46 +00:00
|
|
|
func (r *GetResponseBody) SetSessionToken(v *session.Token) {
|
2022-03-23 11:42:57 +00:00
|
|
|
r.token = v
|
2021-05-24 18:18:56 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// GetSignature returns signature of the requested container.
|
|
|
|
func (r *GetResponseBody) GetSignature() *refs.Signature {
|
|
|
|
if r != nil {
|
|
|
|
return r.sig
|
|
|
|
}
|
|
|
|
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
// SetSignature sets signature of the requested container.
|
|
|
|
func (r *GetResponseBody) SetSignature(v *refs.Signature) {
|
2022-03-23 11:42:57 +00:00
|
|
|
// TODO: (neofs-api-go#381) avoid this hack (e.g. create refs.SignatureRFC6979 type)
|
|
|
|
v.SetScheme(0)
|
|
|
|
r.sig = v
|
2021-05-24 18:18:56 +00:00
|
|
|
}
|
|
|
|
|
2020-08-17 16:00:10 +00:00
|
|
|
func (r *GetResponse) GetBody() *GetResponseBody {
|
|
|
|
if r != nil {
|
|
|
|
return r.body
|
|
|
|
}
|
|
|
|
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (r *GetResponse) SetBody(v *GetResponseBody) {
|
2022-03-23 11:42:57 +00:00
|
|
|
r.body = v
|
2020-08-17 16:00:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (r *DeleteRequestBody) GetContainerID() *refs.ContainerID {
|
|
|
|
if r != nil {
|
|
|
|
return r.cid
|
|
|
|
}
|
|
|
|
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (r *DeleteRequestBody) SetContainerID(v *refs.ContainerID) {
|
2022-03-23 11:42:57 +00:00
|
|
|
r.cid = v
|
2020-08-17 16:00:10 +00:00
|
|
|
}
|
|
|
|
|
2020-08-20 09:43:47 +00:00
|
|
|
func (r *DeleteRequestBody) GetSignature() *refs.Signature {
|
2020-08-17 16:00:10 +00:00
|
|
|
if r != nil {
|
|
|
|
return r.sig
|
|
|
|
}
|
|
|
|
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2020-08-20 09:43:47 +00:00
|
|
|
func (r *DeleteRequestBody) SetSignature(v *refs.Signature) {
|
2022-03-23 11:42:57 +00:00
|
|
|
// TODO: (neofs-api-go#381) avoid this hack (e.g. create refs.SignatureRFC6979 type)
|
|
|
|
v.SetScheme(0)
|
|
|
|
r.sig = v
|
2020-08-17 16:00:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (r *DeleteRequest) GetBody() *DeleteRequestBody {
|
|
|
|
if r != nil {
|
|
|
|
return r.body
|
|
|
|
}
|
|
|
|
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (r *DeleteRequest) SetBody(v *DeleteRequestBody) {
|
2022-03-23 11:42:57 +00:00
|
|
|
r.body = v
|
2020-08-17 16:00:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (r *DeleteResponse) GetBody() *DeleteResponseBody {
|
|
|
|
if r != nil {
|
|
|
|
return r.body
|
|
|
|
}
|
|
|
|
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (r *DeleteResponse) SetBody(v *DeleteResponseBody) {
|
2022-03-23 11:42:57 +00:00
|
|
|
r.body = v
|
2020-08-17 16:00:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (r *ListRequestBody) GetOwnerID() *refs.OwnerID {
|
|
|
|
if r != nil {
|
|
|
|
return r.ownerID
|
|
|
|
}
|
|
|
|
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (r *ListRequestBody) SetOwnerID(v *refs.OwnerID) {
|
2022-03-23 11:42:57 +00:00
|
|
|
r.ownerID = v
|
2020-08-17 16:00:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (r *ListRequest) GetBody() *ListRequestBody {
|
|
|
|
if r != nil {
|
|
|
|
return r.body
|
|
|
|
}
|
|
|
|
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (r *ListRequest) SetBody(v *ListRequestBody) {
|
2022-03-23 11:42:57 +00:00
|
|
|
r.body = v
|
2020-08-17 16:00:10 +00:00
|
|
|
}
|
|
|
|
|
2022-03-02 08:18:59 +00:00
|
|
|
func (r *ListResponseBody) GetContainerIDs() []refs.ContainerID {
|
2020-08-17 16:00:10 +00:00
|
|
|
if r != nil {
|
|
|
|
return r.cidList
|
|
|
|
}
|
|
|
|
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2022-03-02 08:18:59 +00:00
|
|
|
func (r *ListResponseBody) SetContainerIDs(v []refs.ContainerID) {
|
2022-03-23 11:42:57 +00:00
|
|
|
r.cidList = v
|
2020-08-17 16:00:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (r *ListResponse) GetBody() *ListResponseBody {
|
|
|
|
if r != nil {
|
|
|
|
return r.body
|
|
|
|
}
|
|
|
|
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (r *ListResponse) SetBody(v *ListResponseBody) {
|
2022-03-23 11:42:57 +00:00
|
|
|
r.body = v
|
2020-08-17 16:00:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (r *GetExtendedACLRequestBody) GetContainerID() *refs.ContainerID {
|
|
|
|
if r != nil {
|
|
|
|
return r.cid
|
|
|
|
}
|
|
|
|
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (r *GetExtendedACLRequestBody) SetContainerID(v *refs.ContainerID) {
|
2022-03-23 11:42:57 +00:00
|
|
|
r.cid = v
|
2020-08-17 16:00:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (r *GetExtendedACLRequest) GetBody() *GetExtendedACLRequestBody {
|
|
|
|
if r != nil {
|
|
|
|
return r.body
|
|
|
|
}
|
|
|
|
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (r *GetExtendedACLRequest) SetBody(v *GetExtendedACLRequestBody) {
|
2022-03-23 11:42:57 +00:00
|
|
|
r.body = v
|
2020-08-17 16:00:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (r *GetExtendedACLResponseBody) GetEACL() *acl.Table {
|
|
|
|
if r != nil {
|
|
|
|
return r.eacl
|
|
|
|
}
|
|
|
|
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (r *GetExtendedACLResponseBody) SetEACL(v *acl.Table) {
|
2022-03-23 11:42:57 +00:00
|
|
|
r.eacl = v
|
2020-08-17 16:00:10 +00:00
|
|
|
}
|
|
|
|
|
2020-08-20 09:43:47 +00:00
|
|
|
func (r *GetExtendedACLResponseBody) GetSignature() *refs.Signature {
|
2020-08-17 16:00:10 +00:00
|
|
|
if r != nil {
|
|
|
|
return r.sig
|
|
|
|
}
|
|
|
|
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2020-08-20 09:43:47 +00:00
|
|
|
func (r *GetExtendedACLResponseBody) SetSignature(v *refs.Signature) {
|
2022-03-23 11:42:57 +00:00
|
|
|
// TODO: (neofs-api-go#381) avoid this hack (e.g. create refs.SignatureRFC6979 type)
|
|
|
|
v.SetScheme(0)
|
|
|
|
r.sig = v
|
2020-08-17 16:00:10 +00:00
|
|
|
}
|
|
|
|
|
2021-05-24 18:18:56 +00:00
|
|
|
// GetSessionToken returns token of the session within which requested
|
|
|
|
// eACL table was set.
|
2022-02-25 07:36:46 +00:00
|
|
|
func (r *GetExtendedACLResponseBody) GetSessionToken() *session.Token {
|
2021-05-24 18:18:56 +00:00
|
|
|
if r != nil {
|
|
|
|
return r.token
|
|
|
|
}
|
|
|
|
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
// SetSessionToken sets token of the session within which requested
|
|
|
|
// eACL table was set.
|
2022-02-25 07:36:46 +00:00
|
|
|
func (r *GetExtendedACLResponseBody) SetSessionToken(v *session.Token) {
|
2022-03-23 11:42:57 +00:00
|
|
|
r.token = v
|
2021-05-24 18:18:56 +00:00
|
|
|
}
|
|
|
|
|
2020-08-17 16:00:10 +00:00
|
|
|
func (r *GetExtendedACLResponse) GetBody() *GetExtendedACLResponseBody {
|
|
|
|
if r != nil {
|
|
|
|
return r.body
|
|
|
|
}
|
|
|
|
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (r *GetExtendedACLResponse) SetBody(v *GetExtendedACLResponseBody) {
|
2022-03-23 11:42:57 +00:00
|
|
|
r.body = v
|
2020-08-17 16:00:10 +00:00
|
|
|
}
|