v2/container: Implement remaining uni-structures

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
Leonard Lyubich 2020-08-17 19:00:10 +03:00 committed by Stanislav Bogatyrev
parent d7c4dc333c
commit 7b93298263
2 changed files with 1597 additions and 0 deletions

View file

@ -1,9 +1,11 @@
package container
import (
"github.com/nspcc-dev/neofs-api-go/v2/acl"
container "github.com/nspcc-dev/neofs-api-go/v2/container/grpc"
"github.com/nspcc-dev/neofs-api-go/v2/netmap"
"github.com/nspcc-dev/neofs-api-go/v2/refs"
refsGRPC "github.com/nspcc-dev/neofs-api-go/v2/refs/grpc"
"github.com/nspcc-dev/neofs-api-go/v2/service"
)
@ -102,3 +104,733 @@ func ContainerFromGRPCMessage(m *container.Container) *Container {
return c
}
func PutRequestBodyToGRPCMessage(r *PutRequestBody) *container.PutRequest_Body {
if r == nil {
return nil
}
m := new(container.PutRequest_Body)
m.SetContainer(
ContainerToGRPCMessage(r.GetContainer()),
)
m.SetPublicKey(r.GetPublicKey())
m.SetSignature(r.GetSignature())
return m
}
func PutRequestBodyFromGRPCMessage(m *container.PutRequest_Body) *PutRequestBody {
if m == nil {
return nil
}
r := new(PutRequestBody)
r.SetContainer(
ContainerFromGRPCMessage(m.GetContainer()),
)
r.SetPublicKey(m.GetPublicKey())
r.SetSignature(m.GetSignature())
return r
}
func PutRequestToGRPCMessage(r *PutRequest) *container.PutRequest {
if r == nil {
return nil
}
m := new(container.PutRequest)
m.SetBody(
PutRequestBodyToGRPCMessage(r.GetBody()),
)
service.RequestHeadersToGRPC(r, m)
return m
}
func PutRequestFromGRPCMessage(m *container.PutRequest) *PutRequest {
if m == nil {
return nil
}
r := new(PutRequest)
r.SetBody(
PutRequestBodyFromGRPCMessage(m.GetBody()),
)
service.RequestHeadersFromGRPC(m, r)
return r
}
func PutResponseBodyToGRPCMessage(r *PutResponseBody) *container.PutResponse_Body {
if r == nil {
return nil
}
m := new(container.PutResponse_Body)
m.SetContainerId(
refs.ContainerIDToGRPCMessage(r.GetContainerID()),
)
return m
}
func PutResponseBodyFromGRPCMessage(m *container.PutResponse_Body) *PutResponseBody {
if m == nil {
return nil
}
r := new(PutResponseBody)
r.SetContainerID(
refs.ContainerIDFromGRPCMessage(m.GetContainerId()),
)
return r
}
func PutResponseToGRPCMessage(r *PutResponse) *container.PutResponse {
if r == nil {
return nil
}
m := new(container.PutResponse)
m.SetBody(
PutResponseBodyToGRPCMessage(r.GetBody()),
)
service.ResponseHeadersToGRPC(r, m)
return m
}
func PutResponseFromGRPCMessage(m *container.PutResponse) *PutResponse {
if m == nil {
return nil
}
r := new(PutResponse)
r.SetBody(
PutResponseBodyFromGRPCMessage(m.GetBody()),
)
service.ResponseHeadersFromGRPC(m, r)
return r
}
func GetRequestBodyToGRPCMessage(r *GetRequestBody) *container.GetRequest_Body {
if r == nil {
return nil
}
m := new(container.GetRequest_Body)
m.SetContainerId(
refs.ContainerIDToGRPCMessage(r.GetContainerID()),
)
return m
}
func GetRequestBodyFromGRPCMessage(m *container.GetRequest_Body) *GetRequestBody {
if m == nil {
return nil
}
r := new(GetRequestBody)
r.SetContainerID(
refs.ContainerIDFromGRPCMessage(m.GetContainerId()),
)
return r
}
func GetRequestToGRPCMessage(r *GetRequest) *container.GetRequest {
if r == nil {
return nil
}
m := new(container.GetRequest)
m.SetBody(
GetRequestBodyToGRPCMessage(r.GetBody()),
)
service.RequestHeadersToGRPC(r, m)
return m
}
func GetRequestFromGRPCMessage(m *container.GetRequest) *GetRequest {
if m == nil {
return nil
}
r := new(GetRequest)
r.SetBody(
GetRequestBodyFromGRPCMessage(m.GetBody()),
)
service.RequestHeadersFromGRPC(m, r)
return r
}
func GetResponseBodyToGRPCMessage(r *GetResponseBody) *container.GetResponse_Body {
if r == nil {
return nil
}
m := new(container.GetResponse_Body)
m.SetContainer(
ContainerToGRPCMessage(r.GetContainer()),
)
return m
}
func GetResponseBodyFromGRPCMessage(m *container.GetResponse_Body) *GetResponseBody {
if m == nil {
return nil
}
r := new(GetResponseBody)
r.SetContainer(
ContainerFromGRPCMessage(m.GetContainer()),
)
return r
}
func GetResponseToGRPCMessage(r *GetResponse) *container.GetResponse {
if r == nil {
return nil
}
m := new(container.GetResponse)
m.SetBody(
GetResponseBodyToGRPCMessage(r.GetBody()),
)
service.ResponseHeadersToGRPC(r, m)
return m
}
func GetResponseFromGRPCMessage(m *container.GetResponse) *GetResponse {
if m == nil {
return nil
}
r := new(GetResponse)
r.SetBody(
GetResponseBodyFromGRPCMessage(m.GetBody()),
)
service.ResponseHeadersFromGRPC(m, r)
return r
}
func DeleteRequestBodyToGRPCMessage(r *DeleteRequestBody) *container.DeleteRequest_Body {
if r == nil {
return nil
}
m := new(container.DeleteRequest_Body)
m.SetContainerId(
refs.ContainerIDToGRPCMessage(r.GetContainerID()),
)
m.SetSignature(r.GetSignature())
return m
}
func DeleteRequestBodyFromGRPCMessage(m *container.DeleteRequest_Body) *DeleteRequestBody {
if m == nil {
return nil
}
r := new(DeleteRequestBody)
r.SetContainerID(
refs.ContainerIDFromGRPCMessage(m.GetContainerId()),
)
r.SetSignature(m.GetSignature())
return r
}
func DeleteRequestToGRPCMessage(r *DeleteRequest) *container.DeleteRequest {
if r == nil {
return nil
}
m := new(container.DeleteRequest)
m.SetBody(
DeleteRequestBodyToGRPCMessage(r.GetBody()),
)
service.RequestHeadersToGRPC(r, m)
return m
}
func DeleteRequestFromGRPCMessage(m *container.DeleteRequest) *DeleteRequest {
if m == nil {
return nil
}
r := new(DeleteRequest)
r.SetBody(
DeleteRequestBodyFromGRPCMessage(m.GetBody()),
)
service.RequestHeadersFromGRPC(m, r)
return r
}
func DeleteResponseBodyToGRPCMessage(r *DeleteResponseBody) *container.DeleteResponse_Body {
if r == nil {
return nil
}
m := new(container.DeleteResponse_Body)
return m
}
func DeleteResponseBodyFromGRPCMessage(m *container.DeleteResponse_Body) *DeleteResponseBody {
if m == nil {
return nil
}
r := new(DeleteResponseBody)
return r
}
func DeleteResponseToGRPCMessage(r *DeleteResponse) *container.DeleteResponse {
if r == nil {
return nil
}
m := new(container.DeleteResponse)
m.SetBody(
DeleteResponseBodyToGRPCMessage(r.GetBody()),
)
service.ResponseHeadersToGRPC(r, m)
return m
}
func DeleteResponseFromGRPCMessage(m *container.DeleteResponse) *DeleteResponse {
if m == nil {
return nil
}
r := new(DeleteResponse)
r.SetBody(
DeleteResponseBodyFromGRPCMessage(m.GetBody()),
)
service.ResponseHeadersFromGRPC(m, r)
return r
}
func ListRequestBodyToGRPCMessage(r *ListRequestBody) *container.ListRequest_Body {
if r == nil {
return nil
}
m := new(container.ListRequest_Body)
m.SetOwnerId(
refs.OwnerIDToGRPCMessage(r.GetOwnerID()),
)
return m
}
func ListRequestBodyFromGRPCMessage(m *container.ListRequest_Body) *ListRequestBody {
if m == nil {
return nil
}
r := new(ListRequestBody)
r.SetOwnerID(
refs.OwnerIDFromGRPCMessage(m.GetOwnerId()),
)
return r
}
func ListRequestToGRPCMessage(r *ListRequest) *container.ListRequest {
if r == nil {
return nil
}
m := new(container.ListRequest)
m.SetBody(
ListRequestBodyToGRPCMessage(r.GetBody()),
)
service.RequestHeadersToGRPC(r, m)
return m
}
func ListRequestFromGRPCMessage(m *container.ListRequest) *ListRequest {
if m == nil {
return nil
}
r := new(ListRequest)
r.SetBody(
ListRequestBodyFromGRPCMessage(m.GetBody()),
)
service.RequestHeadersFromGRPC(m, r)
return r
}
func ListResponseBodyToGRPCMessage(r *ListResponseBody) *container.ListResponse_Body {
if r == nil {
return nil
}
m := new(container.ListResponse_Body)
cids := r.GetContainerIDs()
cidMsg := make([]*refsGRPC.ContainerID, 0, len(cids))
for i := range cids {
cidMsg = append(cidMsg, refs.ContainerIDToGRPCMessage(cids[i]))
}
m.SetContainerIds(cidMsg)
return m
}
func ListResponseBodyFromGRPCMessage(m *container.ListResponse_Body) *ListResponseBody {
if m == nil {
return nil
}
r := new(ListResponseBody)
cidMsg := m.GetContainerIds()
cids := make([]*refs.ContainerID, 0, len(cidMsg))
for i := range cidMsg {
cids = append(cids, refs.ContainerIDFromGRPCMessage(cidMsg[i]))
}
r.SetContainerIDs(cids)
return r
}
func ListResponseToGRPCMessage(r *ListResponse) *container.ListResponse {
if r == nil {
return nil
}
m := new(container.ListResponse)
m.SetBody(
ListResponseBodyToGRPCMessage(r.GetBody()),
)
service.ResponseHeadersToGRPC(r, m)
return m
}
func ListResponseFromGRPCMessage(m *container.ListResponse) *ListResponse {
if m == nil {
return nil
}
r := new(ListResponse)
r.SetBody(
ListResponseBodyFromGRPCMessage(m.GetBody()),
)
service.ResponseHeadersFromGRPC(m, r)
return r
}
func SetExtendedACLRequestBodyToGRPCMessage(r *SetExtendedACLRequestBody) *container.SetExtendedACLRequest_Body {
if r == nil {
return nil
}
m := new(container.SetExtendedACLRequest_Body)
m.SetEacl(
acl.TableToGRPCMessage(r.GetEACL()),
)
m.SetSignature(r.GetSignature())
return m
}
func SetExtendedACLRequestBodyFromGRPCMessage(m *container.SetExtendedACLRequest_Body) *SetExtendedACLRequestBody {
if m == nil {
return nil
}
r := new(SetExtendedACLRequestBody)
r.SetEACL(
acl.TableFromGRPCMessage(m.GetEacl()),
)
return r
}
func SetExtendedACLRequestToGRPCMessage(r *SetExtendedACLRequest) *container.SetExtendedACLRequest {
if r == nil {
return nil
}
m := new(container.SetExtendedACLRequest)
m.SetBody(
SetExtendedACLRequestBodyToGRPCMessage(r.GetBody()),
)
service.RequestHeadersToGRPC(r, m)
return m
}
func SetExtendedACLRequestFromGRPCMessage(m *container.SetExtendedACLRequest) *SetExtendedACLRequest {
if m == nil {
return nil
}
r := new(SetExtendedACLRequest)
r.SetBody(
SetExtendedACLRequestBodyFromGRPCMessage(m.GetBody()),
)
service.RequestHeadersFromGRPC(m, r)
return r
}
func SetExtendedACLResponseBodyToGRPCMessage(r *SetExtendedACLResponseBody) *container.SetExtendedACLResponse_Body {
if r == nil {
return nil
}
m := new(container.SetExtendedACLResponse_Body)
return m
}
func SetExtendedACLResponseBodyFromGRPCMessage(m *container.SetExtendedACLResponse_Body) *SetExtendedACLResponseBody {
if m == nil {
return nil
}
r := new(SetExtendedACLResponseBody)
return r
}
func SetExtendedACLResponseToGRPCMessage(r *SetExtendedACLResponse) *container.SetExtendedACLResponse {
if r == nil {
return nil
}
m := new(container.SetExtendedACLResponse)
m.SetBody(
SetExtendedACLResponseBodyToGRPCMessage(r.GetBody()),
)
service.ResponseHeadersToGRPC(r, m)
return m
}
func SetExtendedACLResponseFromGRPCMessage(m *container.SetExtendedACLResponse) *SetExtendedACLResponse {
if m == nil {
return nil
}
r := new(SetExtendedACLResponse)
r.SetBody(
SetExtendedACLResponseBodyFromGRPCMessage(m.GetBody()),
)
service.ResponseHeadersFromGRPC(m, r)
return r
}
func GetExtendedACLRequestBodyToGRPCMessage(r *GetExtendedACLRequestBody) *container.GetExtendedACLRequest_Body {
if r == nil {
return nil
}
m := new(container.GetExtendedACLRequest_Body)
m.SetContainerId(
refs.ContainerIDToGRPCMessage(r.GetContainerID()),
)
return m
}
func GetExtendedACLRequestBodyFromGRPCMessage(m *container.GetExtendedACLRequest_Body) *GetExtendedACLRequestBody {
if m == nil {
return nil
}
r := new(GetExtendedACLRequestBody)
r.SetContainerID(
refs.ContainerIDFromGRPCMessage(m.GetContainerId()),
)
return r
}
func GetExtendedACLRequestToGRPCMessage(r *GetExtendedACLRequest) *container.GetExtendedACLRequest {
if r == nil {
return nil
}
m := new(container.GetExtendedACLRequest)
m.SetBody(
GetExtendedACLRequestBodyToGRPCMessage(r.GetBody()),
)
service.RequestHeadersToGRPC(r, m)
return m
}
func GetExtendedACLRequestFromGRPCMessage(m *container.GetExtendedACLRequest) *GetExtendedACLRequest {
if m == nil {
return nil
}
r := new(GetExtendedACLRequest)
r.SetBody(
GetExtendedACLRequestBodyFromGRPCMessage(m.GetBody()),
)
service.RequestHeadersFromGRPC(m, r)
return r
}
func GetExtendedACLResponseBodyToGRPCMessage(r *GetExtendedACLResponseBody) *container.GetExtendedACLResponse_Body {
if r == nil {
return nil
}
m := new(container.GetExtendedACLResponse_Body)
m.SetEacl(
acl.TableToGRPCMessage(r.GetEACL()),
)
m.SetSignature(r.GetSignature())
return m
}
func GetExtendedACLResponseBodyFromGRPCMessage(m *container.GetExtendedACLResponse_Body) *GetExtendedACLResponseBody {
if m == nil {
return nil
}
r := new(GetExtendedACLResponseBody)
r.SetEACL(
acl.TableFromGRPCMessage(m.GetEacl()),
)
r.SetSignature(m.GetSignature())
return r
}
func GetExtendedACLResponseToGRPCMessage(r *GetExtendedACLResponse) *container.GetExtendedACLResponse {
if r == nil {
return nil
}
m := new(container.GetExtendedACLResponse)
m.SetBody(
GetExtendedACLResponseBodyToGRPCMessage(r.GetBody()),
)
service.ResponseHeadersToGRPC(r, m)
return m
}
func GetExtendedACLResponseFromGRPCMessage(m *container.GetExtendedACLResponse) *GetExtendedACLResponse {
if m == nil {
return nil
}
r := new(GetExtendedACLResponse)
r.SetBody(
GetExtendedACLResponseBodyFromGRPCMessage(m.GetBody()),
)
service.ResponseHeadersFromGRPC(m, r)
return r
}

View file

@ -1,6 +1,7 @@
package container
import (
"github.com/nspcc-dev/neofs-api-go/v2/acl"
"github.com/nspcc-dev/neofs-api-go/v2/netmap"
"github.com/nspcc-dev/neofs-api-go/v2/refs"
"github.com/nspcc-dev/neofs-api-go/v2/service"
@ -24,6 +25,156 @@ type Container struct {
policy *netmap.PlacementPolicy
}
type PutRequestBody struct {
cnr *Container
pubKey []byte
sig []byte
}
type PutRequest struct {
body *PutRequestBody
metaHeader *service.RequestMetaHeader
verifyHeader *service.RequestVerificationHeader
}
type PutResponseBody struct {
cid *refs.ContainerID
}
type PutResponse struct {
body *PutResponseBody
metaHeader *service.ResponseMetaHeader
verifyHeader *service.ResponseVerificationHeader
}
type GetRequestBody struct {
cid *refs.ContainerID
}
type GetRequest struct {
body *GetRequestBody
metaHeader *service.RequestMetaHeader
verifyHeader *service.RequestVerificationHeader
}
type GetResponseBody struct {
cnr *Container
}
type GetResponse struct {
body *GetResponseBody
metaHeader *service.ResponseMetaHeader
verifyHeader *service.ResponseVerificationHeader
}
type DeleteRequestBody struct {
cid *refs.ContainerID
sig []byte
}
type DeleteRequest struct {
body *DeleteRequestBody
metaHeader *service.RequestMetaHeader
verifyHeader *service.RequestVerificationHeader
}
type DeleteResponseBody struct{}
type DeleteResponse struct {
body *DeleteResponseBody
metaHeader *service.ResponseMetaHeader
verifyHeader *service.ResponseVerificationHeader
}
type ListRequestBody struct {
ownerID *refs.OwnerID
}
type ListRequest struct {
body *ListRequestBody
metaHeader *service.RequestMetaHeader
verifyHeader *service.RequestVerificationHeader
}
type ListResponseBody struct {
cidList []*refs.ContainerID
}
type ListResponse struct {
body *ListResponseBody
metaHeader *service.ResponseMetaHeader
verifyHeader *service.ResponseVerificationHeader
}
type SetExtendedACLRequestBody struct {
eacl *acl.Table
sig []byte
}
type SetExtendedACLRequest struct {
body *SetExtendedACLRequestBody
metaHeader *service.RequestMetaHeader
verifyHeader *service.RequestVerificationHeader
}
type SetExtendedACLResponseBody struct{}
type SetExtendedACLResponse struct {
body *SetExtendedACLResponseBody
metaHeader *service.ResponseMetaHeader
verifyHeader *service.ResponseVerificationHeader
}
type GetExtendedACLRequestBody struct {
cid *refs.ContainerID
}
type GetExtendedACLRequest struct {
body *GetExtendedACLRequestBody
metaHeader *service.RequestMetaHeader
verifyHeader *service.RequestVerificationHeader
}
type GetExtendedACLResponseBody struct {
eacl *acl.Table
sig []byte
}
type GetExtendedACLResponse struct {
body *GetExtendedACLResponseBody
metaHeader *service.ResponseMetaHeader
verifyHeader *service.ResponseVerificationHeader
}
func (a *Attribute) GetKey() string {
if a != nil {
return a.key
@ -135,3 +286,717 @@ func (c *Container) SetPlacementPolicy(v *netmap.PlacementPolicy) {
c.policy = v
}
}
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
}
}
func (r *PutRequestBody) GetPublicKey() []byte {
if r != nil {
return r.pubKey
}
return nil
}
func (r *PutRequestBody) SetPublicKey(v []byte) {
if r != nil {
r.pubKey = v
}
}
func (r *PutRequestBody) GetSignature() []byte {
if r != nil {
return r.sig
}
return nil
}
func (r *PutRequestBody) SetSignature(v []byte) {
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
}
}
func (r *PutRequest) GetMetaHeader() *service.RequestMetaHeader {
if r != nil {
return r.metaHeader
}
return nil
}
func (r *PutRequest) SetMetaHeader(v *service.RequestMetaHeader) {
if r != nil {
r.metaHeader = v
}
}
func (r *PutRequest) GetVerificationHeader() *service.RequestVerificationHeader {
if r != nil {
return r.verifyHeader
}
return nil
}
func (r *PutRequest) SetVerificationHeader(v *service.RequestVerificationHeader) {
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
}
}
func (r *PutResponse) GetMetaHeader() *service.ResponseMetaHeader {
if r != nil {
return r.metaHeader
}
return nil
}
func (r *PutResponse) SetMetaHeader(v *service.ResponseMetaHeader) {
if r != nil {
r.metaHeader = v
}
}
func (r *PutResponse) GetVerificationHeader() *service.ResponseVerificationHeader {
if r != nil {
return r.verifyHeader
}
return nil
}
func (r *PutResponse) SetVerificationHeader(v *service.ResponseVerificationHeader) {
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
}
}
func (r *GetRequest) GetMetaHeader() *service.RequestMetaHeader {
if r != nil {
return r.metaHeader
}
return nil
}
func (r *GetRequest) SetMetaHeader(v *service.RequestMetaHeader) {
if r != nil {
r.metaHeader = v
}
}
func (r *GetRequest) GetVerificationHeader() *service.RequestVerificationHeader {
if r != nil {
return r.verifyHeader
}
return nil
}
func (r *GetRequest) SetVerificationHeader(v *service.RequestVerificationHeader) {
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
}
}
func (r *GetResponse) GetMetaHeader() *service.ResponseMetaHeader {
if r != nil {
return r.metaHeader
}
return nil
}
func (r *GetResponse) SetMetaHeader(v *service.ResponseMetaHeader) {
if r != nil {
r.metaHeader = v
}
}
func (r *GetResponse) GetVerificationHeader() *service.ResponseVerificationHeader {
if r != nil {
return r.verifyHeader
}
return nil
}
func (r *GetResponse) SetVerificationHeader(v *service.ResponseVerificationHeader) {
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
}
}
func (r *DeleteRequestBody) GetSignature() []byte {
if r != nil {
return r.sig
}
return nil
}
func (r *DeleteRequestBody) SetSignature(v []byte) {
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
}
}
func (r *DeleteRequest) GetMetaHeader() *service.RequestMetaHeader {
if r != nil {
return r.metaHeader
}
return nil
}
func (r *DeleteRequest) SetMetaHeader(v *service.RequestMetaHeader) {
if r != nil {
r.metaHeader = v
}
}
func (r *DeleteRequest) GetVerificationHeader() *service.RequestVerificationHeader {
if r != nil {
return r.verifyHeader
}
return nil
}
func (r *DeleteRequest) SetVerificationHeader(v *service.RequestVerificationHeader) {
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
}
}
func (r *DeleteResponse) GetMetaHeader() *service.ResponseMetaHeader {
if r != nil {
return r.metaHeader
}
return nil
}
func (r *DeleteResponse) SetMetaHeader(v *service.ResponseMetaHeader) {
if r != nil {
r.metaHeader = v
}
}
func (r *DeleteResponse) GetVerificationHeader() *service.ResponseVerificationHeader {
if r != nil {
return r.verifyHeader
}
return nil
}
func (r *DeleteResponse) SetVerificationHeader(v *service.ResponseVerificationHeader) {
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
}
}
func (r *ListRequest) GetMetaHeader() *service.RequestMetaHeader {
if r != nil {
return r.metaHeader
}
return nil
}
func (r *ListRequest) SetMetaHeader(v *service.RequestMetaHeader) {
if r != nil {
r.metaHeader = v
}
}
func (r *ListRequest) GetVerificationHeader() *service.RequestVerificationHeader {
if r != nil {
return r.verifyHeader
}
return nil
}
func (r *ListRequest) SetVerificationHeader(v *service.RequestVerificationHeader) {
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
}
}
func (r *ListResponse) GetMetaHeader() *service.ResponseMetaHeader {
if r != nil {
return r.metaHeader
}
return nil
}
func (r *ListResponse) SetMetaHeader(v *service.ResponseMetaHeader) {
if r != nil {
r.metaHeader = v
}
}
func (r *ListResponse) GetVerificationHeader() *service.ResponseVerificationHeader {
if r != nil {
return r.verifyHeader
}
return nil
}
func (r *ListResponse) SetVerificationHeader(v *service.ResponseVerificationHeader) {
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
}
}
func (r *SetExtendedACLRequestBody) GetSignature() []byte {
if r != nil {
return r.sig
}
return nil
}
func (r *SetExtendedACLRequestBody) SetSignature(v []byte) {
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
}
}
func (r *SetExtendedACLRequest) GetMetaHeader() *service.RequestMetaHeader {
if r != nil {
return r.metaHeader
}
return nil
}
func (r *SetExtendedACLRequest) SetMetaHeader(v *service.RequestMetaHeader) {
if r != nil {
r.metaHeader = v
}
}
func (r *SetExtendedACLRequest) GetVerificationHeader() *service.RequestVerificationHeader {
if r != nil {
return r.verifyHeader
}
return nil
}
func (r *SetExtendedACLRequest) SetVerificationHeader(v *service.RequestVerificationHeader) {
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
}
}
func (r *SetExtendedACLResponse) GetMetaHeader() *service.ResponseMetaHeader {
if r != nil {
return r.metaHeader
}
return nil
}
func (r *SetExtendedACLResponse) SetMetaHeader(v *service.ResponseMetaHeader) {
if r != nil {
r.metaHeader = v
}
}
func (r *SetExtendedACLResponse) GetVerificationHeader() *service.ResponseVerificationHeader {
if r != nil {
return r.verifyHeader
}
return nil
}
func (r *SetExtendedACLResponse) SetVerificationHeader(v *service.ResponseVerificationHeader) {
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
}
}
func (r *GetExtendedACLRequest) GetMetaHeader() *service.RequestMetaHeader {
if r != nil {
return r.metaHeader
}
return nil
}
func (r *GetExtendedACLRequest) SetMetaHeader(v *service.RequestMetaHeader) {
if r != nil {
r.metaHeader = v
}
}
func (r *GetExtendedACLRequest) GetVerificationHeader() *service.RequestVerificationHeader {
if r != nil {
return r.verifyHeader
}
return nil
}
func (r *GetExtendedACLRequest) SetVerificationHeader(v *service.RequestVerificationHeader) {
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
}
}
func (r *GetExtendedACLResponseBody) GetSignature() []byte {
if r != nil {
return r.sig
}
return nil
}
func (r *GetExtendedACLResponseBody) SetSignature(v []byte) {
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
}
}
func (r *GetExtendedACLResponse) GetMetaHeader() *service.ResponseMetaHeader {
if r != nil {
return r.metaHeader
}
return nil
}
func (r *GetExtendedACLResponse) SetMetaHeader(v *service.ResponseMetaHeader) {
if r != nil {
r.metaHeader = v
}
}
func (r *GetExtendedACLResponse) GetVerificationHeader() *service.ResponseVerificationHeader {
if r != nil {
return r.verifyHeader
}
return nil
}
func (r *GetExtendedACLResponse) SetVerificationHeader(v *service.ResponseVerificationHeader) {
if r != nil {
r.verifyHeader = v
}
}