2020-08-17 12:08:00 +00:00
|
|
|
package container
|
|
|
|
|
|
|
|
import (
|
2020-08-17 16:00:10 +00:00
|
|
|
"github.com/nspcc-dev/neofs-api-go/v2/acl"
|
2020-08-17 12:08:00 +00:00
|
|
|
"github.com/nspcc-dev/neofs-api-go/v2/netmap"
|
|
|
|
"github.com/nspcc-dev/neofs-api-go/v2/refs"
|
2020-08-20 10:41:55 +00:00
|
|
|
"github.com/nspcc-dev/neofs-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
|
|
|
|
|
|
|
|
attr []*Attribute
|
|
|
|
|
|
|
|
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
|
|
|
}
|
|
|
|
|
|
|
|
type PutResponseBody struct {
|
|
|
|
cid *refs.ContainerID
|
|
|
|
}
|
|
|
|
|
|
|
|
type GetRequestBody struct {
|
|
|
|
cid *refs.ContainerID
|
|
|
|
}
|
|
|
|
|
|
|
|
type GetRequest struct {
|
|
|
|
body *GetRequestBody
|
|
|
|
|
2020-08-20 10:41:55 +00:00
|
|
|
metaHeader *session.RequestMetaHeader
|
2020-08-17 16:00:10 +00:00
|
|
|
|
2020-08-20 10:41:55 +00:00
|
|
|
verifyHeader *session.RequestVerificationHeader
|
2020-08-17 16:00:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
type GetResponseBody struct {
|
|
|
|
cnr *Container
|
|
|
|
}
|
|
|
|
|
|
|
|
type GetResponse struct {
|
|
|
|
body *GetResponseBody
|
|
|
|
|
2020-08-20 10:41:55 +00:00
|
|
|
metaHeader *session.ResponseMetaHeader
|
2020-08-17 16:00:10 +00:00
|
|
|
|
2020-08-20 10:41:55 +00:00
|
|
|
verifyHeader *session.ResponseVerificationHeader
|
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
|
|
|
}
|
|
|
|
|
|
|
|
type DeleteResponseBody struct{}
|
|
|
|
|
|
|
|
type ListRequestBody struct {
|
|
|
|
ownerID *refs.OwnerID
|
|
|
|
}
|
|
|
|
|
|
|
|
type ListResponseBody struct {
|
|
|
|
cidList []*refs.ContainerID
|
|
|
|
}
|
|
|
|
|
|
|
|
type SetExtendedACLRequestBody struct {
|
|
|
|
eacl *acl.Table
|
|
|
|
|
2020-08-20 09:43:47 +00:00
|
|
|
sig *refs.Signature
|
2020-08-17 16:00:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
type SetExtendedACLResponseBody struct{}
|
|
|
|
|
|
|
|
type GetExtendedACLRequestBody struct {
|
|
|
|
cid *refs.ContainerID
|
|
|
|
}
|
|
|
|
|
|
|
|
type GetExtendedACLResponseBody struct {
|
|
|
|
eacl *acl.Table
|
|
|
|
|
2020-08-20 09:43:47 +00:00
|
|
|
sig *refs.Signature
|
2020-08-17 16:00:10 +00:00
|
|
|
}
|
|
|
|
|
2021-01-21 14:57:04 +00:00
|
|
|
type UsedSpaceAnnouncement struct {
|
|
|
|
cid *refs.ContainerID
|
|
|
|
|
|
|
|
usedSpace uint64
|
|
|
|
}
|
|
|
|
|
|
|
|
type AnnounceUsedSpaceRequestBody struct {
|
|
|
|
announcements []*UsedSpaceAnnouncement
|
|
|
|
}
|
|
|
|
|
|
|
|
type AnnounceUsedSpaceResponseBody struct{}
|
|
|
|
|
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) {
|
|
|
|
if a != nil {
|
|
|
|
a.key = v
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (a *Attribute) GetValue() string {
|
|
|
|
if a != nil {
|
|
|
|
return a.val
|
|
|
|
}
|
|
|
|
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
func (a *Attribute) SetValue(v string) {
|
|
|
|
if a != nil {
|
|
|
|
a.val = v
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
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) {
|
2020-08-17 12:08:00 +00:00
|
|
|
if c != nil {
|
|
|
|
c.version = v
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *Container) GetOwnerID() *refs.OwnerID {
|
|
|
|
if c != nil {
|
|
|
|
return c.ownerID
|
|
|
|
}
|
|
|
|
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *Container) SetOwnerID(v *refs.OwnerID) {
|
|
|
|
if c != nil {
|
|
|
|
c.ownerID = v
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *Container) GetNonce() []byte {
|
|
|
|
if c != nil {
|
|
|
|
return c.nonce
|
|
|
|
}
|
|
|
|
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *Container) SetNonce(v []byte) {
|
|
|
|
if c != nil {
|
|
|
|
c.nonce = v
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *Container) GetBasicACL() uint32 {
|
|
|
|
if c != nil {
|
|
|
|
return c.basicACL
|
|
|
|
}
|
|
|
|
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *Container) SetBasicACL(v uint32) {
|
|
|
|
if c != nil {
|
|
|
|
c.basicACL = v
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *Container) GetAttributes() []*Attribute {
|
|
|
|
if c != nil {
|
|
|
|
return c.attr
|
|
|
|
}
|
|
|
|
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *Container) SetAttributes(v []*Attribute) {
|
|
|
|
if c != nil {
|
|
|
|
c.attr = v
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *Container) GetPlacementPolicy() *netmap.PlacementPolicy {
|
|
|
|
if c != nil {
|
|
|
|
return c.policy
|
|
|
|
}
|
|
|
|
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *Container) SetPlacementPolicy(v *netmap.PlacementPolicy) {
|
|
|
|
if c != nil {
|
|
|
|
c.policy = v
|
|
|
|
}
|
|
|
|
}
|
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) {
|
|
|
|
if r != nil {
|
|
|
|
r.cnr = v
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
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) {
|
2020-08-17 16:00:10 +00:00
|
|
|
if r != nil {
|
|
|
|
r.sig = v
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (r *PutRequest) GetBody() *PutRequestBody {
|
|
|
|
if r != nil {
|
|
|
|
return r.body
|
|
|
|
}
|
|
|
|
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (r *PutRequest) SetBody(v *PutRequestBody) {
|
|
|
|
if r != nil {
|
|
|
|
r.body = v
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-08-20 10:41:55 +00:00
|
|
|
func (r *PutRequest) GetMetaHeader() *session.RequestMetaHeader {
|
2020-08-17 16:00:10 +00:00
|
|
|
if r != nil {
|
|
|
|
return r.metaHeader
|
|
|
|
}
|
|
|
|
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2020-08-20 10:41:55 +00:00
|
|
|
func (r *PutRequest) SetMetaHeader(v *session.RequestMetaHeader) {
|
2020-08-17 16:00:10 +00:00
|
|
|
if r != nil {
|
|
|
|
r.metaHeader = v
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-08-20 10:41:55 +00:00
|
|
|
func (r *PutRequest) GetVerificationHeader() *session.RequestVerificationHeader {
|
2020-08-17 16:00:10 +00:00
|
|
|
if r != nil {
|
|
|
|
return r.verifyHeader
|
|
|
|
}
|
|
|
|
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2020-08-20 10:41:55 +00:00
|
|
|
func (r *PutRequest) SetVerificationHeader(v *session.RequestVerificationHeader) {
|
2020-08-17 16:00:10 +00:00
|
|
|
if r != nil {
|
|
|
|
r.verifyHeader = v
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (r *PutResponseBody) GetContainerID() *refs.ContainerID {
|
|
|
|
if r != nil {
|
|
|
|
return r.cid
|
|
|
|
}
|
|
|
|
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (r *PutResponseBody) SetContainerID(v *refs.ContainerID) {
|
|
|
|
if r != nil {
|
|
|
|
r.cid = v
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (r *PutResponse) GetBody() *PutResponseBody {
|
|
|
|
if r != nil {
|
|
|
|
return r.body
|
|
|
|
}
|
|
|
|
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (r *PutResponse) SetBody(v *PutResponseBody) {
|
|
|
|
if r != nil {
|
|
|
|
r.body = v
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-08-20 10:41:55 +00:00
|
|
|
func (r *PutResponse) GetMetaHeader() *session.ResponseMetaHeader {
|
2020-08-17 16:00:10 +00:00
|
|
|
if r != nil {
|
|
|
|
return r.metaHeader
|
|
|
|
}
|
|
|
|
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2020-08-20 10:41:55 +00:00
|
|
|
func (r *PutResponse) SetMetaHeader(v *session.ResponseMetaHeader) {
|
2020-08-17 16:00:10 +00:00
|
|
|
if r != nil {
|
|
|
|
r.metaHeader = v
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-08-20 10:41:55 +00:00
|
|
|
func (r *PutResponse) GetVerificationHeader() *session.ResponseVerificationHeader {
|
2020-08-17 16:00:10 +00:00
|
|
|
if r != nil {
|
|
|
|
return r.verifyHeader
|
|
|
|
}
|
|
|
|
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2020-08-20 10:41:55 +00:00
|
|
|
func (r *PutResponse) SetVerificationHeader(v *session.ResponseVerificationHeader) {
|
2020-08-17 16:00:10 +00:00
|
|
|
if r != nil {
|
|
|
|
r.verifyHeader = v
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (r *GetRequestBody) GetContainerID() *refs.ContainerID {
|
|
|
|
if r != nil {
|
|
|
|
return r.cid
|
|
|
|
}
|
|
|
|
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (r *GetRequestBody) SetContainerID(v *refs.ContainerID) {
|
|
|
|
if r != nil {
|
|
|
|
r.cid = v
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (r *GetRequest) GetBody() *GetRequestBody {
|
|
|
|
if r != nil {
|
|
|
|
return r.body
|
|
|
|
}
|
|
|
|
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (r *GetRequest) SetBody(v *GetRequestBody) {
|
|
|
|
if r != nil {
|
|
|
|
r.body = v
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-08-20 10:41:55 +00:00
|
|
|
func (r *GetRequest) GetMetaHeader() *session.RequestMetaHeader {
|
2020-08-17 16:00:10 +00:00
|
|
|
if r != nil {
|
|
|
|
return r.metaHeader
|
|
|
|
}
|
|
|
|
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2020-08-20 10:41:55 +00:00
|
|
|
func (r *GetRequest) SetMetaHeader(v *session.RequestMetaHeader) {
|
2020-08-17 16:00:10 +00:00
|
|
|
if r != nil {
|
|
|
|
r.metaHeader = v
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-08-20 10:41:55 +00:00
|
|
|
func (r *GetRequest) GetVerificationHeader() *session.RequestVerificationHeader {
|
2020-08-17 16:00:10 +00:00
|
|
|
if r != nil {
|
|
|
|
return r.verifyHeader
|
|
|
|
}
|
|
|
|
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2020-08-20 10:41:55 +00:00
|
|
|
func (r *GetRequest) SetVerificationHeader(v *session.RequestVerificationHeader) {
|
2020-08-17 16:00:10 +00:00
|
|
|
if r != nil {
|
|
|
|
r.verifyHeader = v
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (r *GetResponseBody) GetContainer() *Container {
|
|
|
|
if r != nil {
|
|
|
|
return r.cnr
|
|
|
|
}
|
|
|
|
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (r *GetResponseBody) SetContainer(v *Container) {
|
|
|
|
if r != nil {
|
|
|
|
r.cnr = v
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (r *GetResponse) GetBody() *GetResponseBody {
|
|
|
|
if r != nil {
|
|
|
|
return r.body
|
|
|
|
}
|
|
|
|
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (r *GetResponse) SetBody(v *GetResponseBody) {
|
|
|
|
if r != nil {
|
|
|
|
r.body = v
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-08-20 10:41:55 +00:00
|
|
|
func (r *GetResponse) GetMetaHeader() *session.ResponseMetaHeader {
|
2020-08-17 16:00:10 +00:00
|
|
|
if r != nil {
|
|
|
|
return r.metaHeader
|
|
|
|
}
|
|
|
|
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2020-08-20 10:41:55 +00:00
|
|
|
func (r *GetResponse) SetMetaHeader(v *session.ResponseMetaHeader) {
|
2020-08-17 16:00:10 +00:00
|
|
|
if r != nil {
|
|
|
|
r.metaHeader = v
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-08-20 10:41:55 +00:00
|
|
|
func (r *GetResponse) GetVerificationHeader() *session.ResponseVerificationHeader {
|
2020-08-17 16:00:10 +00:00
|
|
|
if r != nil {
|
|
|
|
return r.verifyHeader
|
|
|
|
}
|
|
|
|
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2020-08-20 10:41:55 +00:00
|
|
|
func (r *GetResponse) SetVerificationHeader(v *session.ResponseVerificationHeader) {
|
2020-08-17 16:00:10 +00:00
|
|
|
if r != nil {
|
|
|
|
r.verifyHeader = v
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (r *DeleteRequestBody) GetContainerID() *refs.ContainerID {
|
|
|
|
if r != nil {
|
|
|
|
return r.cid
|
|
|
|
}
|
|
|
|
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (r *DeleteRequestBody) SetContainerID(v *refs.ContainerID) {
|
|
|
|
if r != nil {
|
|
|
|
r.cid = v
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
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) {
|
2020-08-17 16:00:10 +00:00
|
|
|
if r != nil {
|
|
|
|
r.sig = v
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (r *DeleteRequest) GetBody() *DeleteRequestBody {
|
|
|
|
if r != nil {
|
|
|
|
return r.body
|
|
|
|
}
|
|
|
|
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (r *DeleteRequest) SetBody(v *DeleteRequestBody) {
|
|
|
|
if r != nil {
|
|
|
|
r.body = v
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-08-20 10:41:55 +00:00
|
|
|
func (r *DeleteRequest) GetMetaHeader() *session.RequestMetaHeader {
|
2020-08-17 16:00:10 +00:00
|
|
|
if r != nil {
|
|
|
|
return r.metaHeader
|
|
|
|
}
|
|
|
|
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2020-08-20 10:41:55 +00:00
|
|
|
func (r *DeleteRequest) SetMetaHeader(v *session.RequestMetaHeader) {
|
2020-08-17 16:00:10 +00:00
|
|
|
if r != nil {
|
|
|
|
r.metaHeader = v
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-08-20 10:41:55 +00:00
|
|
|
func (r *DeleteRequest) GetVerificationHeader() *session.RequestVerificationHeader {
|
2020-08-17 16:00:10 +00:00
|
|
|
if r != nil {
|
|
|
|
return r.verifyHeader
|
|
|
|
}
|
|
|
|
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2020-08-20 10:41:55 +00:00
|
|
|
func (r *DeleteRequest) SetVerificationHeader(v *session.RequestVerificationHeader) {
|
2020-08-17 16:00:10 +00:00
|
|
|
if r != nil {
|
|
|
|
r.verifyHeader = v
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (r *DeleteResponse) GetBody() *DeleteResponseBody {
|
|
|
|
if r != nil {
|
|
|
|
return r.body
|
|
|
|
}
|
|
|
|
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (r *DeleteResponse) SetBody(v *DeleteResponseBody) {
|
|
|
|
if r != nil {
|
|
|
|
r.body = v
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-08-20 10:41:55 +00:00
|
|
|
func (r *DeleteResponse) GetMetaHeader() *session.ResponseMetaHeader {
|
2020-08-17 16:00:10 +00:00
|
|
|
if r != nil {
|
|
|
|
return r.metaHeader
|
|
|
|
}
|
|
|
|
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2020-08-20 10:41:55 +00:00
|
|
|
func (r *DeleteResponse) SetMetaHeader(v *session.ResponseMetaHeader) {
|
2020-08-17 16:00:10 +00:00
|
|
|
if r != nil {
|
|
|
|
r.metaHeader = v
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-08-20 10:41:55 +00:00
|
|
|
func (r *DeleteResponse) GetVerificationHeader() *session.ResponseVerificationHeader {
|
2020-08-17 16:00:10 +00:00
|
|
|
if r != nil {
|
|
|
|
return r.verifyHeader
|
|
|
|
}
|
|
|
|
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2020-08-20 10:41:55 +00:00
|
|
|
func (r *DeleteResponse) SetVerificationHeader(v *session.ResponseVerificationHeader) {
|
2020-08-17 16:00:10 +00:00
|
|
|
if r != nil {
|
|
|
|
r.verifyHeader = v
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (r *ListRequestBody) GetOwnerID() *refs.OwnerID {
|
|
|
|
if r != nil {
|
|
|
|
return r.ownerID
|
|
|
|
}
|
|
|
|
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (r *ListRequestBody) SetOwnerID(v *refs.OwnerID) {
|
|
|
|
if r != nil {
|
|
|
|
r.ownerID = v
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (r *ListRequest) GetBody() *ListRequestBody {
|
|
|
|
if r != nil {
|
|
|
|
return r.body
|
|
|
|
}
|
|
|
|
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (r *ListRequest) SetBody(v *ListRequestBody) {
|
|
|
|
if r != nil {
|
|
|
|
r.body = v
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-08-20 10:41:55 +00:00
|
|
|
func (r *ListRequest) GetMetaHeader() *session.RequestMetaHeader {
|
2020-08-17 16:00:10 +00:00
|
|
|
if r != nil {
|
|
|
|
return r.metaHeader
|
|
|
|
}
|
|
|
|
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2020-08-20 10:41:55 +00:00
|
|
|
func (r *ListRequest) SetMetaHeader(v *session.RequestMetaHeader) {
|
2020-08-17 16:00:10 +00:00
|
|
|
if r != nil {
|
|
|
|
r.metaHeader = v
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-08-20 10:41:55 +00:00
|
|
|
func (r *ListRequest) GetVerificationHeader() *session.RequestVerificationHeader {
|
2020-08-17 16:00:10 +00:00
|
|
|
if r != nil {
|
|
|
|
return r.verifyHeader
|
|
|
|
}
|
|
|
|
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2020-08-20 10:41:55 +00:00
|
|
|
func (r *ListRequest) SetVerificationHeader(v *session.RequestVerificationHeader) {
|
2020-08-17 16:00:10 +00:00
|
|
|
if r != nil {
|
|
|
|
r.verifyHeader = v
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (r *ListResponseBody) GetContainerIDs() []*refs.ContainerID {
|
|
|
|
if r != nil {
|
|
|
|
return r.cidList
|
|
|
|
}
|
|
|
|
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (r *ListResponseBody) SetContainerIDs(v []*refs.ContainerID) {
|
|
|
|
if r != nil {
|
|
|
|
r.cidList = v
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (r *ListResponse) GetBody() *ListResponseBody {
|
|
|
|
if r != nil {
|
|
|
|
return r.body
|
|
|
|
}
|
|
|
|
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (r *ListResponse) SetBody(v *ListResponseBody) {
|
|
|
|
if r != nil {
|
|
|
|
r.body = v
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-08-20 10:41:55 +00:00
|
|
|
func (r *ListResponse) GetMetaHeader() *session.ResponseMetaHeader {
|
2020-08-17 16:00:10 +00:00
|
|
|
if r != nil {
|
|
|
|
return r.metaHeader
|
|
|
|
}
|
|
|
|
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2020-08-20 10:41:55 +00:00
|
|
|
func (r *ListResponse) SetMetaHeader(v *session.ResponseMetaHeader) {
|
2020-08-17 16:00:10 +00:00
|
|
|
if r != nil {
|
|
|
|
r.metaHeader = v
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-08-20 10:41:55 +00:00
|
|
|
func (r *ListResponse) GetVerificationHeader() *session.ResponseVerificationHeader {
|
2020-08-17 16:00:10 +00:00
|
|
|
if r != nil {
|
|
|
|
return r.verifyHeader
|
|
|
|
}
|
|
|
|
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2020-08-20 10:41:55 +00:00
|
|
|
func (r *ListResponse) SetVerificationHeader(v *session.ResponseVerificationHeader) {
|
2020-08-17 16:00:10 +00:00
|
|
|
if r != nil {
|
|
|
|
r.verifyHeader = v
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (r *SetExtendedACLRequestBody) GetEACL() *acl.Table {
|
|
|
|
if r != nil {
|
|
|
|
return r.eacl
|
|
|
|
}
|
|
|
|
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (r *SetExtendedACLRequestBody) SetEACL(v *acl.Table) {
|
|
|
|
if r != nil {
|
|
|
|
r.eacl = v
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-08-20 09:43:47 +00:00
|
|
|
func (r *SetExtendedACLRequestBody) 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 *SetExtendedACLRequestBody) SetSignature(v *refs.Signature) {
|
2020-08-17 16:00:10 +00:00
|
|
|
if r != nil {
|
|
|
|
r.sig = v
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (r *SetExtendedACLRequest) GetBody() *SetExtendedACLRequestBody {
|
|
|
|
if r != nil {
|
|
|
|
return r.body
|
|
|
|
}
|
|
|
|
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (r *SetExtendedACLRequest) SetBody(v *SetExtendedACLRequestBody) {
|
|
|
|
if r != nil {
|
|
|
|
r.body = v
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-08-20 10:41:55 +00:00
|
|
|
func (r *SetExtendedACLRequest) GetMetaHeader() *session.RequestMetaHeader {
|
2020-08-17 16:00:10 +00:00
|
|
|
if r != nil {
|
|
|
|
return r.metaHeader
|
|
|
|
}
|
|
|
|
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2020-08-20 10:41:55 +00:00
|
|
|
func (r *SetExtendedACLRequest) SetMetaHeader(v *session.RequestMetaHeader) {
|
2020-08-17 16:00:10 +00:00
|
|
|
if r != nil {
|
|
|
|
r.metaHeader = v
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-08-20 10:41:55 +00:00
|
|
|
func (r *SetExtendedACLRequest) GetVerificationHeader() *session.RequestVerificationHeader {
|
2020-08-17 16:00:10 +00:00
|
|
|
if r != nil {
|
|
|
|
return r.verifyHeader
|
|
|
|
}
|
|
|
|
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2020-08-20 10:41:55 +00:00
|
|
|
func (r *SetExtendedACLRequest) SetVerificationHeader(v *session.RequestVerificationHeader) {
|
2020-08-17 16:00:10 +00:00
|
|
|
if r != nil {
|
|
|
|
r.verifyHeader = v
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (r *SetExtendedACLResponse) GetBody() *SetExtendedACLResponseBody {
|
|
|
|
if r != nil {
|
|
|
|
return r.body
|
|
|
|
}
|
|
|
|
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (r *SetExtendedACLResponse) SetBody(v *SetExtendedACLResponseBody) {
|
|
|
|
if r != nil {
|
|
|
|
r.body = v
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-08-20 10:41:55 +00:00
|
|
|
func (r *SetExtendedACLResponse) GetMetaHeader() *session.ResponseMetaHeader {
|
2020-08-17 16:00:10 +00:00
|
|
|
if r != nil {
|
|
|
|
return r.metaHeader
|
|
|
|
}
|
|
|
|
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2020-08-20 10:41:55 +00:00
|
|
|
func (r *SetExtendedACLResponse) SetMetaHeader(v *session.ResponseMetaHeader) {
|
2020-08-17 16:00:10 +00:00
|
|
|
if r != nil {
|
|
|
|
r.metaHeader = v
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-08-20 10:41:55 +00:00
|
|
|
func (r *SetExtendedACLResponse) GetVerificationHeader() *session.ResponseVerificationHeader {
|
2020-08-17 16:00:10 +00:00
|
|
|
if r != nil {
|
|
|
|
return r.verifyHeader
|
|
|
|
}
|
|
|
|
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2020-08-20 10:41:55 +00:00
|
|
|
func (r *SetExtendedACLResponse) SetVerificationHeader(v *session.ResponseVerificationHeader) {
|
2020-08-17 16:00:10 +00:00
|
|
|
if r != nil {
|
|
|
|
r.verifyHeader = v
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (r *GetExtendedACLRequestBody) GetContainerID() *refs.ContainerID {
|
|
|
|
if r != nil {
|
|
|
|
return r.cid
|
|
|
|
}
|
|
|
|
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (r *GetExtendedACLRequestBody) SetContainerID(v *refs.ContainerID) {
|
|
|
|
if r != nil {
|
|
|
|
r.cid = v
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (r *GetExtendedACLRequest) GetBody() *GetExtendedACLRequestBody {
|
|
|
|
if r != nil {
|
|
|
|
return r.body
|
|
|
|
}
|
|
|
|
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (r *GetExtendedACLRequest) SetBody(v *GetExtendedACLRequestBody) {
|
|
|
|
if r != nil {
|
|
|
|
r.body = v
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-08-20 10:41:55 +00:00
|
|
|
func (r *GetExtendedACLRequest) GetMetaHeader() *session.RequestMetaHeader {
|
2020-08-17 16:00:10 +00:00
|
|
|
if r != nil {
|
|
|
|
return r.metaHeader
|
|
|
|
}
|
|
|
|
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2020-08-20 10:41:55 +00:00
|
|
|
func (r *GetExtendedACLRequest) SetMetaHeader(v *session.RequestMetaHeader) {
|
2020-08-17 16:00:10 +00:00
|
|
|
if r != nil {
|
|
|
|
r.metaHeader = v
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-08-20 10:41:55 +00:00
|
|
|
func (r *GetExtendedACLRequest) GetVerificationHeader() *session.RequestVerificationHeader {
|
2020-08-17 16:00:10 +00:00
|
|
|
if r != nil {
|
|
|
|
return r.verifyHeader
|
|
|
|
}
|
|
|
|
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2020-08-20 10:41:55 +00:00
|
|
|
func (r *GetExtendedACLRequest) SetVerificationHeader(v *session.RequestVerificationHeader) {
|
2020-08-17 16:00:10 +00:00
|
|
|
if r != nil {
|
|
|
|
r.verifyHeader = v
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (r *GetExtendedACLResponseBody) GetEACL() *acl.Table {
|
|
|
|
if r != nil {
|
|
|
|
return r.eacl
|
|
|
|
}
|
|
|
|
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (r *GetExtendedACLResponseBody) SetEACL(v *acl.Table) {
|
|
|
|
if r != nil {
|
|
|
|
r.eacl = v
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
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) {
|
2020-08-17 16:00:10 +00:00
|
|
|
if r != nil {
|
|
|
|
r.sig = v
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (r *GetExtendedACLResponse) GetBody() *GetExtendedACLResponseBody {
|
|
|
|
if r != nil {
|
|
|
|
return r.body
|
|
|
|
}
|
|
|
|
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (r *GetExtendedACLResponse) SetBody(v *GetExtendedACLResponseBody) {
|
|
|
|
if r != nil {
|
|
|
|
r.body = v
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-08-20 10:41:55 +00:00
|
|
|
func (r *GetExtendedACLResponse) GetMetaHeader() *session.ResponseMetaHeader {
|
2020-08-17 16:00:10 +00:00
|
|
|
if r != nil {
|
|
|
|
return r.metaHeader
|
|
|
|
}
|
|
|
|
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2020-08-20 10:41:55 +00:00
|
|
|
func (r *GetExtendedACLResponse) SetMetaHeader(v *session.ResponseMetaHeader) {
|
2020-08-17 16:00:10 +00:00
|
|
|
if r != nil {
|
|
|
|
r.metaHeader = v
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-08-20 10:41:55 +00:00
|
|
|
func (r *GetExtendedACLResponse) GetVerificationHeader() *session.ResponseVerificationHeader {
|
2020-08-17 16:00:10 +00:00
|
|
|
if r != nil {
|
|
|
|
return r.verifyHeader
|
|
|
|
}
|
|
|
|
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2020-08-20 10:41:55 +00:00
|
|
|
func (r *GetExtendedACLResponse) SetVerificationHeader(v *session.ResponseVerificationHeader) {
|
2020-08-17 16:00:10 +00:00
|
|
|
if r != nil {
|
|
|
|
r.verifyHeader = v
|
|
|
|
}
|
|
|
|
}
|
2021-01-21 14:57:04 +00:00
|
|
|
|
|
|
|
func (a *UsedSpaceAnnouncement) GetUsedSpace() uint64 {
|
|
|
|
if a != nil {
|
|
|
|
return a.usedSpace
|
|
|
|
}
|
|
|
|
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
func (a *UsedSpaceAnnouncement) SetUsedSpace(v uint64) {
|
|
|
|
if a != nil {
|
|
|
|
a.usedSpace = v
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (a *UsedSpaceAnnouncement) GetContainerID() *refs.ContainerID {
|
|
|
|
if a != nil {
|
|
|
|
return a.cid
|
|
|
|
}
|
|
|
|
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (a *UsedSpaceAnnouncement) SetContainerID(v *refs.ContainerID) {
|
|
|
|
if a != nil {
|
|
|
|
a.cid = v
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (r *AnnounceUsedSpaceRequestBody) GetAnnouncements() []*UsedSpaceAnnouncement {
|
|
|
|
if r != nil {
|
|
|
|
return r.announcements
|
|
|
|
}
|
|
|
|
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (r *AnnounceUsedSpaceRequestBody) SetAnnouncements(v []*UsedSpaceAnnouncement) {
|
|
|
|
if r != nil {
|
|
|
|
r.announcements = v
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (r *AnnounceUsedSpaceRequest) GetBody() *AnnounceUsedSpaceRequestBody {
|
|
|
|
if r != nil {
|
|
|
|
return r.body
|
|
|
|
}
|
|
|
|
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (r *AnnounceUsedSpaceRequest) SetBody(v *AnnounceUsedSpaceRequestBody) {
|
|
|
|
if r != nil {
|
|
|
|
r.body = v
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (r *AnnounceUsedSpaceRequest) GetMetaHeader() *session.RequestMetaHeader {
|
|
|
|
if r != nil {
|
|
|
|
return r.metaHeader
|
|
|
|
}
|
|
|
|
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (r *AnnounceUsedSpaceRequest) SetMetaHeader(v *session.RequestMetaHeader) {
|
|
|
|
if r != nil {
|
|
|
|
r.metaHeader = v
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (r *AnnounceUsedSpaceRequest) GetVerificationHeader() *session.RequestVerificationHeader {
|
|
|
|
if r != nil {
|
|
|
|
return r.verifyHeader
|
|
|
|
}
|
|
|
|
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (r *AnnounceUsedSpaceRequest) SetVerificationHeader(v *session.RequestVerificationHeader) {
|
|
|
|
if r != nil {
|
|
|
|
r.verifyHeader = v
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (r *AnnounceUsedSpaceResponse) GetBody() *AnnounceUsedSpaceResponseBody {
|
|
|
|
if r != nil {
|
|
|
|
return r.body
|
|
|
|
}
|
|
|
|
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (r *AnnounceUsedSpaceResponse) SetBody(v *AnnounceUsedSpaceResponseBody) {
|
|
|
|
if r != nil {
|
|
|
|
r.body = v
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (r *AnnounceUsedSpaceResponse) GetMetaHeader() *session.ResponseMetaHeader {
|
|
|
|
if r != nil {
|
|
|
|
return r.metaHeader
|
|
|
|
}
|
|
|
|
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (r *AnnounceUsedSpaceResponse) SetMetaHeader(v *session.ResponseMetaHeader) {
|
|
|
|
if r != nil {
|
|
|
|
r.metaHeader = v
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (r *AnnounceUsedSpaceResponse) GetVerificationHeader() *session.ResponseVerificationHeader {
|
|
|
|
if r != nil {
|
|
|
|
return r.verifyHeader
|
|
|
|
}
|
|
|
|
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (r *AnnounceUsedSpaceResponse) SetVerificationHeader(v *session.ResponseVerificationHeader) {
|
|
|
|
if r != nil {
|
|
|
|
r.verifyHeader = v
|
|
|
|
}
|
|
|
|
}
|