forked from TrueCloudLab/frostfs-api-go
Compare commits
2 commits
feat/strea
...
master
Author | SHA1 | Date | |
---|---|---|---|
557267a07b | |||
2bdee4c9e6 |
34 changed files with 3590 additions and 5198 deletions
70
.forgejo/logo.svg
Normal file
70
.forgejo/logo.svg
Normal file
|
@ -0,0 +1,70 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Generator: Adobe Illustrator 25.0.1, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
||||
<svg version="1.1" id="Слой_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
||||
viewBox="0 0 184.2 51.8" style="enable-background:new 0 0 184.2 51.8;" xml:space="preserve">
|
||||
<style type="text/css">
|
||||
.st0{display:none;}
|
||||
.st1{display:inline;}
|
||||
.st2{fill:#01E397;}
|
||||
.st3{display:inline;fill:#010032;}
|
||||
.st4{display:inline;fill:#00E599;}
|
||||
.st5{display:inline;fill:#00AF92;}
|
||||
.st6{fill:#00C3E5;}
|
||||
</style>
|
||||
<g id="Layer_2">
|
||||
<g id="Layer_1-2" class="st0">
|
||||
<g class="st1">
|
||||
<path class="st2" d="M146.6,18.3v7.2h10.9V29h-10.9v10.7h-4V14.8h18v3.5H146.6z"/>
|
||||
<path class="st2" d="M180,15.7c1.7,0.9,3,2.2,4,3.8l-3,2.7c-0.6-1.3-1.5-2.4-2.6-3.3c-1.3-0.7-2.8-1-4.3-1
|
||||
c-1.4-0.1-2.8,0.3-4,1.1c-0.9,0.5-1.5,1.5-1.4,2.6c0,1,0.5,1.9,1.4,2.4c1.5,0.8,3.2,1.3,4.9,1.5c1.9,0.3,3.7,0.8,5.4,1.6
|
||||
c1.2,0.5,2.2,1.3,2.9,2.3c0.6,1,1,2.2,0.9,3.4c0,1.4-0.5,2.7-1.3,3.8c-0.9,1.2-2.1,2.1-3.5,2.6c-1.7,0.6-3.4,0.9-5.2,0.8
|
||||
c-5,0-8.6-1.6-10.7-5l2.9-2.8c0.7,1.4,1.8,2.5,3.1,3.3c1.5,0.7,3.1,1.1,4.7,1c1.5,0.1,2.9-0.2,4.2-0.9c0.9-0.5,1.5-1.5,1.5-2.6
|
||||
c0-0.9-0.5-1.8-1.3-2.2c-1.5-0.7-3.1-1.2-4.8-1.5c-1.9-0.3-3.7-0.8-5.5-1.5c-1.2-0.5-2.2-1.4-3-2.4c-0.6-1-1-2.2-0.9-3.4
|
||||
c0-1.4,0.4-2.7,1.2-3.8c0.8-1.2,2-2.2,3.3-2.8c1.6-0.7,3.4-1.1,5.2-1C176.1,14.3,178.2,14.8,180,15.7z"/>
|
||||
</g>
|
||||
<path class="st3" d="M73.3,16.3c1.9,1.9,2.9,4.5,2.7,7.1v15.9h-4V24.8c0-2.6-0.5-4.5-1.6-5.7c-1.2-1.2-2.8-1.8-4.5-1.7
|
||||
c-1.3,0-2.5,0.3-3.7,0.8c-1.2,0.7-2.2,1.7-2.9,2.9c-0.8,1.5-1.1,3.2-1.1,4.9v13.3h-4V15.1l3.6,1.5v1.7c0.8-1.5,2.1-2.6,3.6-3.3
|
||||
c1.5-0.8,3.2-1.2,4.9-1.1C68.9,13.8,71.3,14.7,73.3,16.3z"/>
|
||||
<path class="st3" d="M104.4,28.3H85.6c0.1,2.2,1,4.3,2.5,5.9c1.5,1.4,3.5,2.2,5.6,2.1c1.6,0.1,3.2-0.2,4.6-0.9
|
||||
c1.1-0.6,2-1.6,2.5-2.8l3.3,1.8c-0.9,1.7-2.3,3.1-4,4c-2,1-4.2,1.5-6.4,1.4c-3.7,0-6.7-1.1-8.8-3.4s-3.2-5.5-3.2-9.6s1-7.2,3-9.5
|
||||
s5-3.4,8.7-3.4c2.1-0.1,4.2,0.5,6.1,1.5c1.6,1,3,2.5,3.8,4.2c0.9,1.8,1.3,3.9,1.3,5.9C104.6,26.4,104.6,27.4,104.4,28.3z
|
||||
M88.1,19.3c-1.4,1.5-2.2,3.4-2.4,5.5h15.1c-0.2-2-1-3.9-2.3-5.5c-1.4-1.3-3.2-2-5.1-1.9C91.5,17.3,89.6,18,88.1,19.3z"/>
|
||||
<path class="st3" d="M131,17.3c2.2,2.3,3.2,5.5,3.2,9.5s-1,7.3-3.2,9.6s-5.1,3.4-8.8,3.4s-6.7-1.1-8.9-3.4s-3.2-5.5-3.2-9.6
|
||||
s1.1-7.2,3.2-9.5s5.1-3.4,8.9-3.4S128.9,15,131,17.3z M116.2,19.9c-1.5,2-2.2,4.4-2.1,6.9c-0.2,2.5,0.6,5,2.1,7
|
||||
c1.5,1.7,3.7,2.7,6,2.6c2.3,0.1,4.4-0.9,5.9-2.6c1.5-2,2.3-4.5,2.1-7c0.1-2.5-0.6-4.9-2.1-6.9c-1.5-1.7-3.6-2.7-5.9-2.6
|
||||
C119.9,17.2,117.7,18.2,116.2,19.9z"/>
|
||||
<polygon class="st4" points="0,9.1 0,43.7 22.5,51.8 22.5,16.9 46.8,7.9 24.8,0 "/>
|
||||
<polygon class="st5" points="24.3,17.9 24.3,36.8 46.8,44.9 46.8,9.6 "/>
|
||||
</g>
|
||||
<g>
|
||||
<g>
|
||||
<path class="st6" d="M41.6,17.5H28.2v6.9h10.4v3.3H28.2v10.2h-3.9V14.2h17.2V17.5z"/>
|
||||
<path class="st6" d="M45.8,37.9v-18h3.3l0.4,3.2c0.5-1.2,1.2-2.1,2.1-2.7c0.9-0.6,2.1-0.9,3.5-0.9c0.4,0,0.7,0,1.1,0.1
|
||||
c0.4,0.1,0.7,0.2,0.9,0.3l-0.5,3.4c-0.3-0.1-0.6-0.2-0.9-0.2C55.4,23,54.9,23,54.4,23c-0.7,0-1.5,0.2-2.2,0.6
|
||||
c-0.7,0.4-1.3,1-1.8,1.8s-0.7,1.8-0.7,3v9.5H45.8z"/>
|
||||
<path class="st6" d="M68.6,19.6c1.8,0,3.3,0.4,4.6,1.1c1.3,0.7,2.4,1.8,3.1,3.2s1.1,3.1,1.1,5c0,1.9-0.4,3.6-1.1,5
|
||||
c-0.8,1.4-1.8,2.5-3.1,3.2c-1.3,0.7-2.9,1.1-4.6,1.1s-3.3-0.4-4.6-1.1c-1.3-0.7-2.4-1.8-3.2-3.2c-0.8-1.4-1.2-3.1-1.2-5
|
||||
c0-1.9,0.4-3.6,1.2-5s1.8-2.5,3.2-3.2C65.3,19.9,66.8,19.6,68.6,19.6z M68.6,22.6c-1.1,0-2,0.2-2.8,0.7c-0.8,0.5-1.3,1.2-1.7,2.1
|
||||
s-0.6,2.1-0.6,3.5c0,1.3,0.2,2.5,0.6,3.4s1,1.7,1.7,2.2s1.7,0.7,2.8,0.7c1.1,0,2-0.2,2.7-0.7c0.7-0.5,1.3-1.2,1.7-2.2
|
||||
s0.6-2.1,0.6-3.4c0-1.4-0.2-2.5-0.6-3.5s-1-1.6-1.7-2.1C70.6,22.8,69.6,22.6,68.6,22.6z"/>
|
||||
<path class="st6" d="M89.2,38.3c-1.8,0-3.4-0.3-4.9-1c-1.5-0.7-2.7-1.7-3.5-3l2.7-2.3c0.5,1,1.3,1.8,2.3,2.4
|
||||
c1,0.6,2.2,0.9,3.6,0.9c1.1,0,2-0.2,2.6-0.6c0.6-0.4,1-0.9,1-1.6c0-0.5-0.2-0.9-0.5-1.2s-0.9-0.6-1.7-0.8l-3.8-0.8
|
||||
c-1.9-0.4-3.3-1-4.1-1.9c-0.8-0.9-1.2-1.9-1.2-3.3c0-1,0.3-1.9,0.9-2.7c0.6-0.8,1.4-1.5,2.5-2s2.5-0.8,4-0.8c1.8,0,3.3,0.3,4.6,1
|
||||
c1.3,0.6,2.2,1.5,2.9,2.7l-2.7,2.2c-0.5-1-1.1-1.7-2-2.1c-0.9-0.5-1.8-0.7-2.8-0.7c-0.8,0-1.4,0.1-2,0.3c-0.6,0.2-1,0.5-1.3,0.8
|
||||
c-0.3,0.3-0.4,0.7-0.4,1.2c0,0.5,0.2,0.9,0.5,1.3s1,0.6,1.9,0.8l4.1,0.9c1.7,0.3,2.9,0.9,3.7,1.7c0.7,0.8,1.1,1.8,1.1,2.9
|
||||
c0,1.2-0.3,2.2-0.9,3c-0.6,0.9-1.5,1.6-2.6,2C92.1,38.1,90.7,38.3,89.2,38.3z"/>
|
||||
<path class="st6" d="M112.8,19.9v3H99.3v-3H112.8z M106.6,14.6v17.9c0,0.9,0.2,1.5,0.7,1.9c0.5,0.4,1.1,0.6,1.9,0.6
|
||||
c0.6,0,1.2-0.1,1.7-0.3c0.5-0.2,0.9-0.5,1.3-0.8l0.9,2.8c-0.6,0.5-1.2,0.9-2,1.1c-0.8,0.3-1.7,0.4-2.7,0.4c-1,0-2-0.2-2.8-0.5
|
||||
s-1.5-0.9-2-1.6c-0.5-0.8-0.7-1.7-0.8-3V15.7L106.6,14.6z"/>
|
||||
<path d="M137.9,17.5h-13.3v6.9h10.4v3.3h-10.4v10.2h-3.9V14.2h17.2V17.5z"/>
|
||||
<path d="M150.9,13.8c2.1,0,4,0.4,5.5,1.2c1.6,0.8,2.9,2,4,3.5l-2.6,2.5c-0.9-1.4-1.9-2.4-3.1-3c-1.1-0.6-2.5-0.9-4-0.9
|
||||
c-1.2,0-2.1,0.2-2.8,0.5c-0.7,0.3-1.3,0.7-1.6,1.2c-0.3,0.5-0.5,1.1-0.5,1.7c0,0.7,0.3,1.4,0.8,1.9c0.5,0.6,1.5,1,2.9,1.3
|
||||
l4.8,1.1c2.3,0.5,3.9,1.3,4.9,2.3c1,1,1.4,2.3,1.4,3.9c0,1.5-0.4,2.7-1.2,3.8c-0.8,1.1-1.9,1.9-3.3,2.5s-3.1,0.9-5,0.9
|
||||
c-1.7,0-3.2-0.2-4.5-0.6c-1.3-0.4-2.5-1-3.5-1.8c-1-0.7-1.8-1.6-2.5-2.6l2.7-2.7c0.5,0.8,1.1,1.6,1.9,2.2
|
||||
c0.8,0.7,1.7,1.2,2.7,1.5c1,0.4,2.2,0.5,3.4,0.5c1.1,0,2.1-0.1,2.9-0.4c0.8-0.3,1.4-0.7,1.8-1.2c0.4-0.5,0.6-1.1,0.6-1.9
|
||||
c0-0.7-0.2-1.3-0.7-1.8c-0.5-0.5-1.3-0.9-2.6-1.2l-5.2-1.2c-1.4-0.3-2.6-0.8-3.6-1.3c-0.9-0.6-1.6-1.3-2.1-2.1s-0.7-1.8-0.7-2.8
|
||||
c0-1.3,0.4-2.6,1.1-3.7c0.7-1.1,1.8-2,3.2-2.6C147.3,14.1,148.9,13.8,150.9,13.8z"/>
|
||||
</g>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
After Width: | Height: | Size: 5.5 KiB |
1
.github/CODEOWNERS
vendored
1
.github/CODEOWNERS
vendored
|
@ -1 +0,0 @@
|
|||
* @TrueCloudLab/storage-core @TrueCloudLab/storage-services @TrueCloudLab/committers
|
2
CODEOWNERS
Normal file
2
CODEOWNERS
Normal file
|
@ -0,0 +1,2 @@
|
|||
.* @TrueCloudLab/storage-core-committers @TrueCloudLab/storage-core-developers @TrueCloudLab/storage-services-committers @TrueCloudLab/storage-services-developers
|
||||
.forgejo/.* @potyarkin
|
|
@ -25,7 +25,8 @@ Start by forking the `frostfs-api-go` repository, make changes in a branch and t
|
|||
send a pull request. We encourage pull requests to discuss code changes. Here
|
||||
are the steps in details:
|
||||
|
||||
### Set up your GitHub Repository
|
||||
### Set up your repository
|
||||
|
||||
Fork [FrostFS node upstream](https://git.frostfs.info/TrueCloudLab/frostfs-api-go/fork) source
|
||||
repository to your own personal repository. Copy the URL of your fork (you will
|
||||
need it for the `git clone` command below).
|
||||
|
@ -86,7 +87,7 @@ $ git push origin feature/123-something_awesome
|
|||
```
|
||||
|
||||
### Create a Pull Request
|
||||
Pull requests can be created via GitHub. Refer to [this
|
||||
Pull requests can be created via git.frostfs.info. Refer to [this
|
||||
document](https://help.github.com/articles/creating-a-pull-request/) for
|
||||
detailed steps on how to create a pull request. After a Pull Request gets peer
|
||||
reviewed and approved, it will be merged.
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<p align="center">
|
||||
<img src="./.github/logo.svg" width="500px" alt="FrostFS">
|
||||
<img src="./.forgejo/logo.svg" width="500px" alt="FrostFS">
|
||||
</p>
|
||||
<p align="center">
|
||||
Low-level Golang API for <a href="https://frostfs.info">FrostFS</a>
|
||||
|
|
16
accounting/grpc/service_frostfs.pb.go
generated
16
accounting/grpc/service_frostfs.pb.go
generated
|
@ -101,7 +101,6 @@ func (x *BalanceRequest_Body) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
first := true
|
||||
out.RawByte('{')
|
||||
{
|
||||
if x.OwnerId != nil {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -111,7 +110,6 @@ func (x *BalanceRequest_Body) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
out.RawString(prefix)
|
||||
x.OwnerId.MarshalEasyJSON(out)
|
||||
}
|
||||
}
|
||||
out.RawByte('}')
|
||||
}
|
||||
|
||||
|
@ -306,7 +304,6 @@ func (x *BalanceRequest) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
first := true
|
||||
out.RawByte('{')
|
||||
{
|
||||
if x.Body != nil {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -316,9 +313,7 @@ func (x *BalanceRequest) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
out.RawString(prefix)
|
||||
x.Body.MarshalEasyJSON(out)
|
||||
}
|
||||
}
|
||||
{
|
||||
if x.MetaHeader != nil {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -328,9 +323,7 @@ func (x *BalanceRequest) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
out.RawString(prefix)
|
||||
x.MetaHeader.MarshalEasyJSON(out)
|
||||
}
|
||||
}
|
||||
{
|
||||
if x.VerifyHeader != nil {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -340,7 +333,6 @@ func (x *BalanceRequest) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
out.RawString(prefix)
|
||||
x.VerifyHeader.MarshalEasyJSON(out)
|
||||
}
|
||||
}
|
||||
out.RawByte('}')
|
||||
}
|
||||
|
||||
|
@ -485,7 +477,6 @@ func (x *BalanceResponse_Body) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
first := true
|
||||
out.RawByte('{')
|
||||
{
|
||||
if x.Balance != nil {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -495,7 +486,6 @@ func (x *BalanceResponse_Body) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
out.RawString(prefix)
|
||||
x.Balance.MarshalEasyJSON(out)
|
||||
}
|
||||
}
|
||||
out.RawByte('}')
|
||||
}
|
||||
|
||||
|
@ -690,7 +680,6 @@ func (x *BalanceResponse) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
first := true
|
||||
out.RawByte('{')
|
||||
{
|
||||
if x.Body != nil {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -700,9 +689,7 @@ func (x *BalanceResponse) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
out.RawString(prefix)
|
||||
x.Body.MarshalEasyJSON(out)
|
||||
}
|
||||
}
|
||||
{
|
||||
if x.MetaHeader != nil {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -712,9 +699,7 @@ func (x *BalanceResponse) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
out.RawString(prefix)
|
||||
x.MetaHeader.MarshalEasyJSON(out)
|
||||
}
|
||||
}
|
||||
{
|
||||
if x.VerifyHeader != nil {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -724,7 +709,6 @@ func (x *BalanceResponse) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
out.RawString(prefix)
|
||||
x.VerifyHeader.MarshalEasyJSON(out)
|
||||
}
|
||||
}
|
||||
out.RawByte('}')
|
||||
}
|
||||
|
||||
|
|
4
accounting/grpc/types_frostfs.pb.go
generated
4
accounting/grpc/types_frostfs.pb.go
generated
|
@ -117,7 +117,6 @@ func (x *Decimal) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
first := true
|
||||
out.RawByte('{')
|
||||
{
|
||||
if x.Value != 0 {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -129,9 +128,7 @@ func (x *Decimal) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
out.Buffer.Buf = strconv.AppendInt(out.Buffer.Buf, x.Value, 10)
|
||||
out.RawByte('"')
|
||||
}
|
||||
}
|
||||
{
|
||||
if x.Precision != 0 {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -141,7 +138,6 @@ func (x *Decimal) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
out.RawString(prefix)
|
||||
out.Uint32(x.Precision)
|
||||
}
|
||||
}
|
||||
out.RawByte('}')
|
||||
}
|
||||
|
||||
|
|
62
acl/grpc/types_frostfs.pb.go
generated
62
acl/grpc/types_frostfs.pb.go
generated
|
@ -355,7 +355,6 @@ func (x *EACLRecord_Filter) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
first := true
|
||||
out.RawByte('{')
|
||||
{
|
||||
if x.HeaderType != 0 {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -370,9 +369,7 @@ func (x *EACLRecord_Filter) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
out.Int32(v)
|
||||
}
|
||||
}
|
||||
}
|
||||
{
|
||||
if x.MatchType != 0 {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -387,9 +384,7 @@ func (x *EACLRecord_Filter) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
out.Int32(v)
|
||||
}
|
||||
}
|
||||
}
|
||||
{
|
||||
if len(x.Key) != 0 {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -399,9 +394,7 @@ func (x *EACLRecord_Filter) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
out.RawString(prefix)
|
||||
out.String(x.Key)
|
||||
}
|
||||
}
|
||||
{
|
||||
if len(x.Value) != 0 {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -411,7 +404,6 @@ func (x *EACLRecord_Filter) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
out.RawString(prefix)
|
||||
out.String(x.Value)
|
||||
}
|
||||
}
|
||||
out.RawByte('}')
|
||||
}
|
||||
|
||||
|
@ -608,7 +600,6 @@ func (x *EACLRecord_Target) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
first := true
|
||||
out.RawByte('{')
|
||||
{
|
||||
if x.Role != 0 {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -623,9 +614,7 @@ func (x *EACLRecord_Target) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
out.Int32(v)
|
||||
}
|
||||
}
|
||||
}
|
||||
{
|
||||
if len(x.Keys) != 0 {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -638,11 +627,14 @@ func (x *EACLRecord_Target) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
if i != 0 {
|
||||
out.RawByte(',')
|
||||
}
|
||||
if x.Keys[i] != nil {
|
||||
out.Base64Bytes(x.Keys[i])
|
||||
} else {
|
||||
out.String("")
|
||||
}
|
||||
}
|
||||
out.RawByte(']')
|
||||
}
|
||||
}
|
||||
out.RawByte('}')
|
||||
}
|
||||
|
||||
|
@ -699,7 +691,13 @@ func (x *EACLRecord_Target) UnmarshalEasyJSON(in *jlexer.Lexer) {
|
|||
var list [][]byte
|
||||
in.Delim('[')
|
||||
for !in.IsDelim(']') {
|
||||
f = in.Bytes()
|
||||
{
|
||||
tmp := in.Bytes()
|
||||
if len(tmp) == 0 {
|
||||
tmp = nil
|
||||
}
|
||||
f = tmp
|
||||
}
|
||||
list = append(list, f)
|
||||
in.WantComma()
|
||||
}
|
||||
|
@ -870,7 +868,6 @@ func (x *EACLRecord) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
first := true
|
||||
out.RawByte('{')
|
||||
{
|
||||
if x.Operation != 0 {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -885,9 +882,7 @@ func (x *EACLRecord) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
out.Int32(v)
|
||||
}
|
||||
}
|
||||
}
|
||||
{
|
||||
if x.Action != 0 {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -902,9 +897,7 @@ func (x *EACLRecord) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
out.Int32(v)
|
||||
}
|
||||
}
|
||||
}
|
||||
{
|
||||
if len(x.Filters) != 0 {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -921,9 +914,7 @@ func (x *EACLRecord) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
}
|
||||
out.RawByte(']')
|
||||
}
|
||||
}
|
||||
{
|
||||
if len(x.Targets) != 0 {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -940,7 +931,6 @@ func (x *EACLRecord) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
}
|
||||
out.RawByte(']')
|
||||
}
|
||||
}
|
||||
out.RawByte('}')
|
||||
}
|
||||
|
||||
|
@ -1185,7 +1175,6 @@ func (x *EACLTable) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
first := true
|
||||
out.RawByte('{')
|
||||
{
|
||||
if x.Version != nil {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -1195,9 +1184,7 @@ func (x *EACLTable) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
out.RawString(prefix)
|
||||
x.Version.MarshalEasyJSON(out)
|
||||
}
|
||||
}
|
||||
{
|
||||
if x.ContainerId != nil {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -1207,9 +1194,7 @@ func (x *EACLTable) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
out.RawString(prefix)
|
||||
x.ContainerId.MarshalEasyJSON(out)
|
||||
}
|
||||
}
|
||||
{
|
||||
if len(x.Records) != 0 {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -1226,7 +1211,6 @@ func (x *EACLTable) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
}
|
||||
out.RawByte(']')
|
||||
}
|
||||
}
|
||||
out.RawByte('}')
|
||||
}
|
||||
|
||||
|
@ -1415,7 +1399,6 @@ func (x *BearerToken_Body_TokenLifetime) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
first := true
|
||||
out.RawByte('{')
|
||||
{
|
||||
if x.Exp != 0 {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -1427,9 +1410,7 @@ func (x *BearerToken_Body_TokenLifetime) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
out.Buffer.Buf = strconv.AppendUint(out.Buffer.Buf, x.Exp, 10)
|
||||
out.RawByte('"')
|
||||
}
|
||||
}
|
||||
{
|
||||
if x.Nbf != 0 {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -1441,9 +1422,7 @@ func (x *BearerToken_Body_TokenLifetime) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
out.Buffer.Buf = strconv.AppendUint(out.Buffer.Buf, x.Nbf, 10)
|
||||
out.RawByte('"')
|
||||
}
|
||||
}
|
||||
{
|
||||
if x.Iat != 0 {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -1455,7 +1434,6 @@ func (x *BearerToken_Body_TokenLifetime) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
out.Buffer.Buf = strconv.AppendUint(out.Buffer.Buf, x.Iat, 10)
|
||||
out.RawByte('"')
|
||||
}
|
||||
}
|
||||
out.RawByte('}')
|
||||
}
|
||||
|
||||
|
@ -1647,7 +1625,6 @@ func (x *BearerToken_Body_APEOverride) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
first := true
|
||||
out.RawByte('{')
|
||||
{
|
||||
if x.Target != nil {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -1657,9 +1634,7 @@ func (x *BearerToken_Body_APEOverride) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
out.RawString(prefix)
|
||||
x.Target.MarshalEasyJSON(out)
|
||||
}
|
||||
}
|
||||
{
|
||||
if len(x.Chains) != 0 {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -1676,7 +1651,6 @@ func (x *BearerToken_Body_APEOverride) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
}
|
||||
out.RawByte(']')
|
||||
}
|
||||
}
|
||||
out.RawByte('}')
|
||||
}
|
||||
|
||||
|
@ -1910,7 +1884,6 @@ func (x *BearerToken_Body) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
first := true
|
||||
out.RawByte('{')
|
||||
{
|
||||
if x.EaclTable != nil {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -1920,9 +1893,7 @@ func (x *BearerToken_Body) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
out.RawString(prefix)
|
||||
x.EaclTable.MarshalEasyJSON(out)
|
||||
}
|
||||
}
|
||||
{
|
||||
if x.OwnerId != nil {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -1932,9 +1903,7 @@ func (x *BearerToken_Body) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
out.RawString(prefix)
|
||||
x.OwnerId.MarshalEasyJSON(out)
|
||||
}
|
||||
}
|
||||
{
|
||||
if x.Lifetime != nil {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -1944,9 +1913,7 @@ func (x *BearerToken_Body) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
out.RawString(prefix)
|
||||
x.Lifetime.MarshalEasyJSON(out)
|
||||
}
|
||||
}
|
||||
{
|
||||
if x.AllowImpersonate {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -1956,9 +1923,7 @@ func (x *BearerToken_Body) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
out.RawString(prefix)
|
||||
out.Bool(x.AllowImpersonate)
|
||||
}
|
||||
}
|
||||
{
|
||||
if x.ApeOverride != nil {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -1968,7 +1933,6 @@ func (x *BearerToken_Body) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
out.RawString(prefix)
|
||||
x.ApeOverride.MarshalEasyJSON(out)
|
||||
}
|
||||
}
|
||||
out.RawByte('}')
|
||||
}
|
||||
|
||||
|
@ -2149,7 +2113,6 @@ func (x *BearerToken) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
first := true
|
||||
out.RawByte('{')
|
||||
{
|
||||
if x.Body != nil {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -2159,9 +2122,7 @@ func (x *BearerToken) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
out.RawString(prefix)
|
||||
x.Body.MarshalEasyJSON(out)
|
||||
}
|
||||
}
|
||||
{
|
||||
if x.Signature != nil {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -2171,7 +2132,6 @@ func (x *BearerToken) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
out.RawString(prefix)
|
||||
x.Signature.MarshalEasyJSON(out)
|
||||
}
|
||||
}
|
||||
out.RawByte('}')
|
||||
}
|
||||
|
||||
|
|
16
ape/grpc/types_frostfs.pb.go
generated
16
ape/grpc/types_frostfs.pb.go
generated
|
@ -158,7 +158,6 @@ func (x *ChainTarget) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
first := true
|
||||
out.RawByte('{')
|
||||
{
|
||||
if x.Type != 0 {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -173,9 +172,7 @@ func (x *ChainTarget) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
out.Int32(v)
|
||||
}
|
||||
}
|
||||
}
|
||||
{
|
||||
if len(x.Name) != 0 {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -185,7 +182,6 @@ func (x *ChainTarget) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
out.RawString(prefix)
|
||||
out.String(x.Name)
|
||||
}
|
||||
}
|
||||
out.RawByte('}')
|
||||
}
|
||||
|
||||
|
@ -358,7 +354,6 @@ func (x *Chain) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
switch xx := x.Kind.(type) {
|
||||
case *Chain_Raw:
|
||||
{
|
||||
if len(xx.Raw) != 0 {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -366,7 +361,10 @@ func (x *Chain) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
}
|
||||
const prefix string = "\"raw\":"
|
||||
out.RawString(prefix)
|
||||
if xx.Raw != nil {
|
||||
out.Base64Bytes(xx.Raw)
|
||||
} else {
|
||||
out.String("")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -403,7 +401,13 @@ func (x *Chain) UnmarshalEasyJSON(in *jlexer.Lexer) {
|
|||
x.Kind = xx
|
||||
{
|
||||
var f []byte
|
||||
f = in.Bytes()
|
||||
{
|
||||
tmp := in.Bytes()
|
||||
if len(tmp) == 0 {
|
||||
tmp = nil
|
||||
}
|
||||
f = tmp
|
||||
}
|
||||
xx.Raw = f
|
||||
}
|
||||
}
|
||||
|
|
70
apemanager/grpc/service_frostfs.pb.go
generated
70
apemanager/grpc/service_frostfs.pb.go
generated
|
@ -124,7 +124,6 @@ func (x *AddChainRequest_Body) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
first := true
|
||||
out.RawByte('{')
|
||||
{
|
||||
if x.Target != nil {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -134,9 +133,7 @@ func (x *AddChainRequest_Body) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
out.RawString(prefix)
|
||||
x.Target.MarshalEasyJSON(out)
|
||||
}
|
||||
}
|
||||
{
|
||||
if x.Chain != nil {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -146,7 +143,6 @@ func (x *AddChainRequest_Body) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
out.RawString(prefix)
|
||||
x.Chain.MarshalEasyJSON(out)
|
||||
}
|
||||
}
|
||||
out.RawByte('}')
|
||||
}
|
||||
|
||||
|
@ -348,7 +344,6 @@ func (x *AddChainRequest) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
first := true
|
||||
out.RawByte('{')
|
||||
{
|
||||
if x.Body != nil {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -358,9 +353,7 @@ func (x *AddChainRequest) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
out.RawString(prefix)
|
||||
x.Body.MarshalEasyJSON(out)
|
||||
}
|
||||
}
|
||||
{
|
||||
if x.MetaHeader != nil {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -370,9 +363,7 @@ func (x *AddChainRequest) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
out.RawString(prefix)
|
||||
x.MetaHeader.MarshalEasyJSON(out)
|
||||
}
|
||||
}
|
||||
{
|
||||
if x.VerifyHeader != nil {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -382,7 +373,6 @@ func (x *AddChainRequest) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
out.RawString(prefix)
|
||||
x.VerifyHeader.MarshalEasyJSON(out)
|
||||
}
|
||||
}
|
||||
out.RawByte('}')
|
||||
}
|
||||
|
||||
|
@ -524,7 +514,6 @@ func (x *AddChainResponse_Body) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
first := true
|
||||
out.RawByte('{')
|
||||
{
|
||||
if len(x.ChainId) != 0 {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -532,7 +521,10 @@ func (x *AddChainResponse_Body) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
}
|
||||
const prefix string = "\"chainId\":"
|
||||
out.RawString(prefix)
|
||||
if x.ChainId != nil {
|
||||
out.Base64Bytes(x.ChainId)
|
||||
} else {
|
||||
out.String("")
|
||||
}
|
||||
}
|
||||
out.RawByte('}')
|
||||
|
@ -566,7 +558,13 @@ func (x *AddChainResponse_Body) UnmarshalEasyJSON(in *jlexer.Lexer) {
|
|||
case "chainId":
|
||||
{
|
||||
var f []byte
|
||||
f = in.Bytes()
|
||||
{
|
||||
tmp := in.Bytes()
|
||||
if len(tmp) == 0 {
|
||||
tmp = nil
|
||||
}
|
||||
f = tmp
|
||||
}
|
||||
x.ChainId = f
|
||||
}
|
||||
}
|
||||
|
@ -728,7 +726,6 @@ func (x *AddChainResponse) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
first := true
|
||||
out.RawByte('{')
|
||||
{
|
||||
if x.Body != nil {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -738,9 +735,7 @@ func (x *AddChainResponse) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
out.RawString(prefix)
|
||||
x.Body.MarshalEasyJSON(out)
|
||||
}
|
||||
}
|
||||
{
|
||||
if x.MetaHeader != nil {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -750,9 +745,7 @@ func (x *AddChainResponse) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
out.RawString(prefix)
|
||||
x.MetaHeader.MarshalEasyJSON(out)
|
||||
}
|
||||
}
|
||||
{
|
||||
if x.VerifyHeader != nil {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -762,7 +755,6 @@ func (x *AddChainResponse) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
out.RawString(prefix)
|
||||
x.VerifyHeader.MarshalEasyJSON(out)
|
||||
}
|
||||
}
|
||||
out.RawByte('}')
|
||||
}
|
||||
|
||||
|
@ -927,7 +919,6 @@ func (x *RemoveChainRequest_Body) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
first := true
|
||||
out.RawByte('{')
|
||||
{
|
||||
if x.Target != nil {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -937,9 +928,7 @@ func (x *RemoveChainRequest_Body) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
out.RawString(prefix)
|
||||
x.Target.MarshalEasyJSON(out)
|
||||
}
|
||||
}
|
||||
{
|
||||
if len(x.ChainId) != 0 {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -947,7 +936,10 @@ func (x *RemoveChainRequest_Body) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
}
|
||||
const prefix string = "\"chainId\":"
|
||||
out.RawString(prefix)
|
||||
if x.ChainId != nil {
|
||||
out.Base64Bytes(x.ChainId)
|
||||
} else {
|
||||
out.String("")
|
||||
}
|
||||
}
|
||||
out.RawByte('}')
|
||||
|
@ -988,7 +980,13 @@ func (x *RemoveChainRequest_Body) UnmarshalEasyJSON(in *jlexer.Lexer) {
|
|||
case "chainId":
|
||||
{
|
||||
var f []byte
|
||||
f = in.Bytes()
|
||||
{
|
||||
tmp := in.Bytes()
|
||||
if len(tmp) == 0 {
|
||||
tmp = nil
|
||||
}
|
||||
f = tmp
|
||||
}
|
||||
x.ChainId = f
|
||||
}
|
||||
}
|
||||
|
@ -1150,7 +1148,6 @@ func (x *RemoveChainRequest) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
first := true
|
||||
out.RawByte('{')
|
||||
{
|
||||
if x.Body != nil {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -1160,9 +1157,7 @@ func (x *RemoveChainRequest) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
out.RawString(prefix)
|
||||
x.Body.MarshalEasyJSON(out)
|
||||
}
|
||||
}
|
||||
{
|
||||
if x.MetaHeader != nil {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -1172,9 +1167,7 @@ func (x *RemoveChainRequest) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
out.RawString(prefix)
|
||||
x.MetaHeader.MarshalEasyJSON(out)
|
||||
}
|
||||
}
|
||||
{
|
||||
if x.VerifyHeader != nil {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -1184,7 +1177,6 @@ func (x *RemoveChainRequest) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
out.RawString(prefix)
|
||||
x.VerifyHeader.MarshalEasyJSON(out)
|
||||
}
|
||||
}
|
||||
out.RawByte('}')
|
||||
}
|
||||
|
||||
|
@ -1488,7 +1480,6 @@ func (x *RemoveChainResponse) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
first := true
|
||||
out.RawByte('{')
|
||||
{
|
||||
if x.Body != nil {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -1498,9 +1489,7 @@ func (x *RemoveChainResponse) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
out.RawString(prefix)
|
||||
x.Body.MarshalEasyJSON(out)
|
||||
}
|
||||
}
|
||||
{
|
||||
if x.MetaHeader != nil {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -1510,9 +1499,7 @@ func (x *RemoveChainResponse) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
out.RawString(prefix)
|
||||
x.MetaHeader.MarshalEasyJSON(out)
|
||||
}
|
||||
}
|
||||
{
|
||||
if x.VerifyHeader != nil {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -1522,7 +1509,6 @@ func (x *RemoveChainResponse) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
out.RawString(prefix)
|
||||
x.VerifyHeader.MarshalEasyJSON(out)
|
||||
}
|
||||
}
|
||||
out.RawByte('}')
|
||||
}
|
||||
|
||||
|
@ -1667,7 +1653,6 @@ func (x *ListChainsRequest_Body) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
first := true
|
||||
out.RawByte('{')
|
||||
{
|
||||
if x.Target != nil {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -1677,7 +1662,6 @@ func (x *ListChainsRequest_Body) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
out.RawString(prefix)
|
||||
x.Target.MarshalEasyJSON(out)
|
||||
}
|
||||
}
|
||||
out.RawByte('}')
|
||||
}
|
||||
|
||||
|
@ -1872,7 +1856,6 @@ func (x *ListChainsRequest) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
first := true
|
||||
out.RawByte('{')
|
||||
{
|
||||
if x.Body != nil {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -1882,9 +1865,7 @@ func (x *ListChainsRequest) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
out.RawString(prefix)
|
||||
x.Body.MarshalEasyJSON(out)
|
||||
}
|
||||
}
|
||||
{
|
||||
if x.MetaHeader != nil {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -1894,9 +1875,7 @@ func (x *ListChainsRequest) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
out.RawString(prefix)
|
||||
x.MetaHeader.MarshalEasyJSON(out)
|
||||
}
|
||||
}
|
||||
{
|
||||
if x.VerifyHeader != nil {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -1906,7 +1885,6 @@ func (x *ListChainsRequest) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
out.RawString(prefix)
|
||||
x.VerifyHeader.MarshalEasyJSON(out)
|
||||
}
|
||||
}
|
||||
out.RawByte('}')
|
||||
}
|
||||
|
||||
|
@ -2054,7 +2032,6 @@ func (x *ListChainsResponse_Body) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
first := true
|
||||
out.RawByte('{')
|
||||
{
|
||||
if len(x.Chains) != 0 {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -2071,7 +2048,6 @@ func (x *ListChainsResponse_Body) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
}
|
||||
out.RawByte(']')
|
||||
}
|
||||
}
|
||||
out.RawByte('}')
|
||||
}
|
||||
|
||||
|
@ -2273,7 +2249,6 @@ func (x *ListChainsResponse) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
first := true
|
||||
out.RawByte('{')
|
||||
{
|
||||
if x.Body != nil {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -2283,9 +2258,7 @@ func (x *ListChainsResponse) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
out.RawString(prefix)
|
||||
x.Body.MarshalEasyJSON(out)
|
||||
}
|
||||
}
|
||||
{
|
||||
if x.MetaHeader != nil {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -2295,9 +2268,7 @@ func (x *ListChainsResponse) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
out.RawString(prefix)
|
||||
x.MetaHeader.MarshalEasyJSON(out)
|
||||
}
|
||||
}
|
||||
{
|
||||
if x.VerifyHeader != nil {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -2307,7 +2278,6 @@ func (x *ListChainsResponse) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
out.RawString(prefix)
|
||||
x.VerifyHeader.MarshalEasyJSON(out)
|
||||
}
|
||||
}
|
||||
out.RawByte('}')
|
||||
}
|
||||
|
||||
|
|
|
@ -762,138 +762,3 @@ func (r *ListResponse) FromGRPCMessage(m grpc.Message) error {
|
|||
|
||||
return r.ResponseHeaders.FromMessage(v)
|
||||
}
|
||||
|
||||
func (r *ListStreamRequestBody) ToGRPCMessage() grpc.Message {
|
||||
var m *container.ListStreamRequest_Body
|
||||
|
||||
if r != nil {
|
||||
m = new(container.ListStreamRequest_Body)
|
||||
|
||||
m.SetOwnerId(r.ownerID.ToGRPCMessage().(*refsGRPC.OwnerID))
|
||||
}
|
||||
|
||||
return m
|
||||
}
|
||||
|
||||
func (r *ListStreamRequestBody) FromGRPCMessage(m grpc.Message) error {
|
||||
v, ok := m.(*container.ListStreamRequest_Body)
|
||||
if !ok {
|
||||
return message.NewUnexpectedMessageType(m, v)
|
||||
}
|
||||
|
||||
var err error
|
||||
|
||||
ownerID := v.GetOwnerId()
|
||||
if ownerID == nil {
|
||||
r.ownerID = nil
|
||||
} else {
|
||||
if r.ownerID == nil {
|
||||
r.ownerID = new(refs.OwnerID)
|
||||
}
|
||||
|
||||
err = r.ownerID.FromGRPCMessage(ownerID)
|
||||
}
|
||||
|
||||
return err
|
||||
}
|
||||
|
||||
func (r *ListStreamRequest) ToGRPCMessage() grpc.Message {
|
||||
var m *container.ListStreamRequest
|
||||
|
||||
if r != nil {
|
||||
m = new(container.ListStreamRequest)
|
||||
|
||||
m.SetBody(r.body.ToGRPCMessage().(*container.ListStreamRequest_Body))
|
||||
r.RequestHeaders.ToMessage(m)
|
||||
}
|
||||
|
||||
return m
|
||||
}
|
||||
|
||||
func (r *ListStreamRequest) FromGRPCMessage(m grpc.Message) error {
|
||||
v, ok := m.(*container.ListStreamRequest)
|
||||
if !ok {
|
||||
return message.NewUnexpectedMessageType(m, v)
|
||||
}
|
||||
|
||||
var err error
|
||||
|
||||
body := v.GetBody()
|
||||
if body == nil {
|
||||
r.body = nil
|
||||
} else {
|
||||
if r.body == nil {
|
||||
r.body = new(ListStreamRequestBody)
|
||||
}
|
||||
|
||||
err = r.body.FromGRPCMessage(body)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
|
||||
return r.RequestHeaders.FromMessage(v)
|
||||
}
|
||||
|
||||
func (r *ListStreamResponseBody) ToGRPCMessage() grpc.Message {
|
||||
var m *container.ListStreamResponse_Body
|
||||
|
||||
if r != nil {
|
||||
m = new(container.ListStreamResponse_Body)
|
||||
|
||||
m.SetContainerIds(refs.ContainerIDsToGRPCMessage(r.cidList))
|
||||
}
|
||||
|
||||
return m
|
||||
}
|
||||
|
||||
func (r *ListStreamResponseBody) FromGRPCMessage(m grpc.Message) error {
|
||||
v, ok := m.(*container.ListStreamResponse_Body)
|
||||
if !ok {
|
||||
return message.NewUnexpectedMessageType(m, v)
|
||||
}
|
||||
|
||||
var err error
|
||||
|
||||
r.cidList, err = refs.ContainerIDsFromGRPCMessage(v.GetContainerIds())
|
||||
|
||||
return err
|
||||
}
|
||||
|
||||
func (r *ListStreamResponse) ToGRPCMessage() grpc.Message {
|
||||
var m *container.ListStreamResponse
|
||||
|
||||
if r != nil {
|
||||
m = new(container.ListStreamResponse)
|
||||
|
||||
m.SetBody(r.body.ToGRPCMessage().(*container.ListStreamResponse_Body))
|
||||
r.ResponseHeaders.ToMessage(m)
|
||||
}
|
||||
|
||||
return m
|
||||
}
|
||||
|
||||
func (r *ListStreamResponse) FromGRPCMessage(m grpc.Message) error {
|
||||
v, ok := m.(*container.ListStreamResponse)
|
||||
if !ok {
|
||||
return message.NewUnexpectedMessageType(m, v)
|
||||
}
|
||||
|
||||
var err error
|
||||
|
||||
body := v.GetBody()
|
||||
if body == nil {
|
||||
r.body = nil
|
||||
} else {
|
||||
if r.body == nil {
|
||||
r.body = new(ListStreamResponseBody)
|
||||
}
|
||||
|
||||
err = r.body.FromGRPCMessage(body)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
|
||||
return r.ResponseHeaders.FromMessage(v)
|
||||
}
|
||||
|
|
855
container/grpc/service_frostfs.pb.go
generated
855
container/grpc/service_frostfs.pb.go
generated
File diff suppressed because it is too large
Load diff
|
@ -157,41 +157,3 @@ func DoFuzzJSONListResponse(data []byte) int {
|
|||
}
|
||||
return 1
|
||||
}
|
||||
func DoFuzzProtoListStreamRequest(data []byte) int {
|
||||
msg := new(ListStreamRequest)
|
||||
if err := msg.UnmarshalProtobuf(data); err != nil {
|
||||
return 0
|
||||
}
|
||||
_ = msg.MarshalProtobuf(nil)
|
||||
return 1
|
||||
}
|
||||
func DoFuzzJSONListStreamRequest(data []byte) int {
|
||||
msg := new(ListStreamRequest)
|
||||
if err := msg.UnmarshalJSON(data); err != nil {
|
||||
return 0
|
||||
}
|
||||
_, err := msg.MarshalJSON()
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
return 1
|
||||
}
|
||||
func DoFuzzProtoListStreamResponse(data []byte) int {
|
||||
msg := new(ListStreamResponse)
|
||||
if err := msg.UnmarshalProtobuf(data); err != nil {
|
||||
return 0
|
||||
}
|
||||
_ = msg.MarshalProtobuf(nil)
|
||||
return 1
|
||||
}
|
||||
func DoFuzzJSONListStreamResponse(data []byte) int {
|
||||
msg := new(ListStreamResponse)
|
||||
if err := msg.UnmarshalJSON(data); err != nil {
|
||||
return 0
|
||||
}
|
||||
_, err := msg.MarshalJSON()
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
return 1
|
||||
}
|
||||
|
|
|
@ -89,23 +89,3 @@ func FuzzJSONListResponse(f *testing.F) {
|
|||
DoFuzzJSONListResponse(data)
|
||||
})
|
||||
}
|
||||
func FuzzProtoListStreamRequest(f *testing.F) {
|
||||
f.Fuzz(func(t *testing.T, data []byte) {
|
||||
DoFuzzProtoListStreamRequest(data)
|
||||
})
|
||||
}
|
||||
func FuzzJSONListStreamRequest(f *testing.F) {
|
||||
f.Fuzz(func(t *testing.T, data []byte) {
|
||||
DoFuzzJSONListStreamRequest(data)
|
||||
})
|
||||
}
|
||||
func FuzzProtoListStreamResponse(f *testing.F) {
|
||||
f.Fuzz(func(t *testing.T, data []byte) {
|
||||
DoFuzzProtoListStreamResponse(data)
|
||||
})
|
||||
}
|
||||
func FuzzJSONListStreamResponse(f *testing.F) {
|
||||
f.Fuzz(func(t *testing.T, data []byte) {
|
||||
DoFuzzJSONListStreamResponse(data)
|
||||
})
|
||||
}
|
||||
|
|
85
container/grpc/service_grpc.pb.go
generated
85
container/grpc/service_grpc.pb.go
generated
|
@ -23,7 +23,6 @@ const (
|
|||
ContainerService_Delete_FullMethodName = "/neo.fs.v2.container.ContainerService/Delete"
|
||||
ContainerService_Get_FullMethodName = "/neo.fs.v2.container.ContainerService/Get"
|
||||
ContainerService_List_FullMethodName = "/neo.fs.v2.container.ContainerService/List"
|
||||
ContainerService_ListStream_FullMethodName = "/neo.fs.v2.container.ContainerService/ListStream"
|
||||
)
|
||||
|
||||
// ContainerServiceClient is the client API for ContainerService service.
|
||||
|
@ -74,16 +73,6 @@ type ContainerServiceClient interface {
|
|||
// - **CONTAINER_ACCESS_DENIED** (3074, SECTION_CONTAINER): \
|
||||
// container list access denied.
|
||||
List(ctx context.Context, in *ListRequest, opts ...grpc.CallOption) (*ListResponse, error)
|
||||
// Returns all owner's containers from 'Container` smart contract' storage
|
||||
// via stream.
|
||||
//
|
||||
// Statuses:
|
||||
// - **OK** (0, SECTION_SUCCESS): \
|
||||
// container list has been successfully read;
|
||||
// - Common failures (SECTION_FAILURE_COMMON);
|
||||
// - **CONTAINER_ACCESS_DENIED** (3074, SECTION_CONTAINER): \
|
||||
// container list access denied.
|
||||
ListStream(ctx context.Context, in *ListStreamRequest, opts ...grpc.CallOption) (ContainerService_ListStreamClient, error)
|
||||
}
|
||||
|
||||
type containerServiceClient struct {
|
||||
|
@ -130,38 +119,6 @@ func (c *containerServiceClient) List(ctx context.Context, in *ListRequest, opts
|
|||
return out, nil
|
||||
}
|
||||
|
||||
func (c *containerServiceClient) ListStream(ctx context.Context, in *ListStreamRequest, opts ...grpc.CallOption) (ContainerService_ListStreamClient, error) {
|
||||
stream, err := c.cc.NewStream(ctx, &ContainerService_ServiceDesc.Streams[0], ContainerService_ListStream_FullMethodName, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
x := &containerServiceListStreamClient{stream}
|
||||
if err := x.ClientStream.SendMsg(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if err := x.ClientStream.CloseSend(); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return x, nil
|
||||
}
|
||||
|
||||
type ContainerService_ListStreamClient interface {
|
||||
Recv() (*ListStreamResponse, error)
|
||||
grpc.ClientStream
|
||||
}
|
||||
|
||||
type containerServiceListStreamClient struct {
|
||||
grpc.ClientStream
|
||||
}
|
||||
|
||||
func (x *containerServiceListStreamClient) Recv() (*ListStreamResponse, error) {
|
||||
m := new(ListStreamResponse)
|
||||
if err := x.ClientStream.RecvMsg(m); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return m, nil
|
||||
}
|
||||
|
||||
// ContainerServiceServer is the server API for ContainerService service.
|
||||
// All implementations should embed UnimplementedContainerServiceServer
|
||||
// for forward compatibility
|
||||
|
@ -210,16 +167,6 @@ type ContainerServiceServer interface {
|
|||
// - **CONTAINER_ACCESS_DENIED** (3074, SECTION_CONTAINER): \
|
||||
// container list access denied.
|
||||
List(context.Context, *ListRequest) (*ListResponse, error)
|
||||
// Returns all owner's containers from 'Container` smart contract' storage
|
||||
// via stream.
|
||||
//
|
||||
// Statuses:
|
||||
// - **OK** (0, SECTION_SUCCESS): \
|
||||
// container list has been successfully read;
|
||||
// - Common failures (SECTION_FAILURE_COMMON);
|
||||
// - **CONTAINER_ACCESS_DENIED** (3074, SECTION_CONTAINER): \
|
||||
// container list access denied.
|
||||
ListStream(*ListStreamRequest, ContainerService_ListStreamServer) error
|
||||
}
|
||||
|
||||
// UnimplementedContainerServiceServer should be embedded to have forward compatible implementations.
|
||||
|
@ -238,9 +185,6 @@ func (UnimplementedContainerServiceServer) Get(context.Context, *GetRequest) (*G
|
|||
func (UnimplementedContainerServiceServer) List(context.Context, *ListRequest) (*ListResponse, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method List not implemented")
|
||||
}
|
||||
func (UnimplementedContainerServiceServer) ListStream(*ListStreamRequest, ContainerService_ListStreamServer) error {
|
||||
return status.Errorf(codes.Unimplemented, "method ListStream not implemented")
|
||||
}
|
||||
|
||||
// UnsafeContainerServiceServer may be embedded to opt out of forward compatibility for this service.
|
||||
// Use of this interface is not recommended, as added methods to ContainerServiceServer will
|
||||
|
@ -325,27 +269,6 @@ func _ContainerService_List_Handler(srv interface{}, ctx context.Context, dec fu
|
|||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _ContainerService_ListStream_Handler(srv interface{}, stream grpc.ServerStream) error {
|
||||
m := new(ListStreamRequest)
|
||||
if err := stream.RecvMsg(m); err != nil {
|
||||
return err
|
||||
}
|
||||
return srv.(ContainerServiceServer).ListStream(m, &containerServiceListStreamServer{stream})
|
||||
}
|
||||
|
||||
type ContainerService_ListStreamServer interface {
|
||||
Send(*ListStreamResponse) error
|
||||
grpc.ServerStream
|
||||
}
|
||||
|
||||
type containerServiceListStreamServer struct {
|
||||
grpc.ServerStream
|
||||
}
|
||||
|
||||
func (x *containerServiceListStreamServer) Send(m *ListStreamResponse) error {
|
||||
return x.ServerStream.SendMsg(m)
|
||||
}
|
||||
|
||||
// ContainerService_ServiceDesc is the grpc.ServiceDesc for ContainerService service.
|
||||
// It's only intended for direct use with grpc.RegisterService,
|
||||
// and not to be introspected or modified (even as a copy)
|
||||
|
@ -370,12 +293,6 @@ var ContainerService_ServiceDesc = grpc.ServiceDesc{
|
|||
Handler: _ContainerService_List_Handler,
|
||||
},
|
||||
},
|
||||
Streams: []grpc.StreamDesc{
|
||||
{
|
||||
StreamName: "ListStream",
|
||||
Handler: _ContainerService_ListStream_Handler,
|
||||
ServerStreams: true,
|
||||
},
|
||||
},
|
||||
Streams: []grpc.StreamDesc{},
|
||||
Metadata: "container/grpc/service.proto",
|
||||
}
|
||||
|
|
26
container/grpc/types_frostfs.pb.go
generated
26
container/grpc/types_frostfs.pb.go
generated
|
@ -119,7 +119,6 @@ func (x *Container_Attribute) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
first := true
|
||||
out.RawByte('{')
|
||||
{
|
||||
if len(x.Key) != 0 {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -129,9 +128,7 @@ func (x *Container_Attribute) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
out.RawString(prefix)
|
||||
out.String(x.Key)
|
||||
}
|
||||
}
|
||||
{
|
||||
if len(x.Value) != 0 {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -141,7 +138,6 @@ func (x *Container_Attribute) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
out.RawString(prefix)
|
||||
out.String(x.Value)
|
||||
}
|
||||
}
|
||||
out.RawByte('}')
|
||||
}
|
||||
|
||||
|
@ -389,7 +385,6 @@ func (x *Container) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
first := true
|
||||
out.RawByte('{')
|
||||
{
|
||||
if x.Version != nil {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -399,9 +394,7 @@ func (x *Container) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
out.RawString(prefix)
|
||||
x.Version.MarshalEasyJSON(out)
|
||||
}
|
||||
}
|
||||
{
|
||||
if x.OwnerId != nil {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -411,9 +404,7 @@ func (x *Container) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
out.RawString(prefix)
|
||||
x.OwnerId.MarshalEasyJSON(out)
|
||||
}
|
||||
}
|
||||
{
|
||||
if len(x.Nonce) != 0 {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -421,11 +412,13 @@ func (x *Container) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
}
|
||||
const prefix string = "\"nonce\":"
|
||||
out.RawString(prefix)
|
||||
if x.Nonce != nil {
|
||||
out.Base64Bytes(x.Nonce)
|
||||
} else {
|
||||
out.String("")
|
||||
}
|
||||
}
|
||||
{
|
||||
if x.BasicAcl != 0 {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -435,9 +428,7 @@ func (x *Container) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
out.RawString(prefix)
|
||||
out.Uint32(x.BasicAcl)
|
||||
}
|
||||
}
|
||||
{
|
||||
if len(x.Attributes) != 0 {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -454,9 +445,7 @@ func (x *Container) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
}
|
||||
out.RawByte(']')
|
||||
}
|
||||
}
|
||||
{
|
||||
if x.PlacementPolicy != nil {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -466,7 +455,6 @@ func (x *Container) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
out.RawString(prefix)
|
||||
x.PlacementPolicy.MarshalEasyJSON(out)
|
||||
}
|
||||
}
|
||||
out.RawByte('}')
|
||||
}
|
||||
|
||||
|
@ -512,7 +500,13 @@ func (x *Container) UnmarshalEasyJSON(in *jlexer.Lexer) {
|
|||
case "nonce":
|
||||
{
|
||||
var f []byte
|
||||
f = in.Bytes()
|
||||
{
|
||||
tmp := in.Bytes()
|
||||
if len(tmp) == 0 {
|
||||
tmp = nil
|
||||
}
|
||||
f = tmp
|
||||
}
|
||||
x.Nonce = f
|
||||
}
|
||||
case "basicACL":
|
||||
|
|
|
@ -343,65 +343,3 @@ func (r *ListResponseBody) StableSize() (size int) {
|
|||
func (r *ListResponseBody) Unmarshal(data []byte) error {
|
||||
return message.Unmarshal(r, data, new(container.ListResponse_Body))
|
||||
}
|
||||
|
||||
func (r *ListStreamRequestBody) StableMarshal(buf []byte) []byte {
|
||||
if r == nil {
|
||||
return []byte{}
|
||||
}
|
||||
|
||||
if buf == nil {
|
||||
buf = make([]byte, r.StableSize())
|
||||
}
|
||||
|
||||
protoutil.NestedStructureMarshal(listReqBodyOwnerField, buf, r.ownerID)
|
||||
|
||||
return buf
|
||||
}
|
||||
|
||||
func (r *ListStreamRequestBody) StableSize() (size int) {
|
||||
if r == nil {
|
||||
return 0
|
||||
}
|
||||
|
||||
size += protoutil.NestedStructureSize(listReqBodyOwnerField, r.ownerID)
|
||||
|
||||
return size
|
||||
}
|
||||
|
||||
func (r *ListStreamRequestBody) Unmarshal(data []byte) error {
|
||||
return message.Unmarshal(r, data, new(container.ListStreamRequest_Body))
|
||||
}
|
||||
|
||||
func (r *ListStreamResponseBody) StableMarshal(buf []byte) []byte {
|
||||
if r == nil {
|
||||
return []byte{}
|
||||
}
|
||||
|
||||
if buf == nil {
|
||||
buf = make([]byte, r.StableSize())
|
||||
}
|
||||
|
||||
var offset int
|
||||
|
||||
for i := range r.cidList {
|
||||
offset += protoutil.NestedStructureMarshal(listRespBodyIDsField, buf[offset:], &r.cidList[i])
|
||||
}
|
||||
|
||||
return buf
|
||||
}
|
||||
|
||||
func (r *ListStreamResponseBody) StableSize() (size int) {
|
||||
if r == nil {
|
||||
return 0
|
||||
}
|
||||
|
||||
for i := range r.cidList {
|
||||
size += protoutil.NestedStructureSize(listRespBodyIDsField, &r.cidList[i])
|
||||
}
|
||||
|
||||
return size
|
||||
}
|
||||
|
||||
func (r *ListStreamResponseBody) Unmarshal(data []byte) error {
|
||||
return message.Unmarshal(r, data, new(container.ListStreamResponse_Body))
|
||||
}
|
||||
|
|
|
@ -109,26 +109,6 @@ type ListResponse struct {
|
|||
session.ResponseHeaders
|
||||
}
|
||||
|
||||
type ListStreamRequestBody struct {
|
||||
ownerID *refs.OwnerID
|
||||
}
|
||||
|
||||
type ListStreamRequest struct {
|
||||
body *ListStreamRequestBody
|
||||
|
||||
session.RequestHeaders
|
||||
}
|
||||
|
||||
type ListStreamResponseBody struct {
|
||||
cidList []refs.ContainerID
|
||||
}
|
||||
|
||||
type ListStreamResponse struct {
|
||||
body *ListStreamResponseBody
|
||||
|
||||
session.ResponseHeaders
|
||||
}
|
||||
|
||||
func (a *Attribute) GetKey() string {
|
||||
if a != nil {
|
||||
return a.key
|
||||
|
@ -464,51 +444,3 @@ func (r *ListResponse) GetBody() *ListResponseBody {
|
|||
func (r *ListResponse) SetBody(v *ListResponseBody) {
|
||||
r.body = v
|
||||
}
|
||||
|
||||
func (r *ListStreamRequestBody) GetOwnerID() *refs.OwnerID {
|
||||
if r != nil {
|
||||
return r.ownerID
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
func (r *ListStreamRequestBody) SetOwnerID(v *refs.OwnerID) {
|
||||
r.ownerID = v
|
||||
}
|
||||
|
||||
func (r *ListStreamRequest) GetBody() *ListStreamRequestBody {
|
||||
if r != nil {
|
||||
return r.body
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
func (r *ListStreamRequest) SetBody(v *ListStreamRequestBody) {
|
||||
r.body = v
|
||||
}
|
||||
|
||||
func (r *ListStreamResponseBody) GetContainerIDs() []refs.ContainerID {
|
||||
if r != nil {
|
||||
return r.cidList
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
func (r *ListStreamResponseBody) SetContainerIDs(v []refs.ContainerID) {
|
||||
r.cidList = v
|
||||
}
|
||||
|
||||
func (r *ListStreamResponse) GetBody() *ListStreamResponseBody {
|
||||
if r != nil {
|
||||
return r.body
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
func (r *ListStreamResponse) SetBody(v *ListStreamResponseBody) {
|
||||
r.body = v
|
||||
}
|
||||
|
|
|
@ -35,11 +35,11 @@ Tag a release (must be signed) and push it:
|
|||
$ git tag -s vX.Y.Z[-rc.N] && git push origin vX.Y.Z[-rc.N]
|
||||
```
|
||||
|
||||
## Make a Github release
|
||||
## Make a proper release
|
||||
|
||||
Using Github's web interface create a new release based on just created tag
|
||||
Using git.frostfs.info web interface create a new release based on just created tag
|
||||
with the same changes from changelog and publish it.
|
||||
|
||||
## Close github milestone
|
||||
## Close milestone
|
||||
|
||||
Close corresponding vX.Y.Z github milestone.
|
||||
Close corresponding vX.Y.Z milestone.
|
||||
|
|
2
lock/grpc/types_frostfs.pb.go
generated
2
lock/grpc/types_frostfs.pb.go
generated
|
@ -103,7 +103,6 @@ func (x *Lock) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
first := true
|
||||
out.RawByte('{')
|
||||
{
|
||||
if len(x.Members) != 0 {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -120,7 +119,6 @@ func (x *Lock) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
}
|
||||
out.RawByte(']')
|
||||
}
|
||||
}
|
||||
out.RawByte('}')
|
||||
}
|
||||
|
||||
|
|
44
netmap/grpc/service_frostfs.pb.go
generated
44
netmap/grpc/service_frostfs.pb.go
generated
|
@ -260,7 +260,6 @@ func (x *LocalNodeInfoRequest) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
first := true
|
||||
out.RawByte('{')
|
||||
{
|
||||
if x.Body != nil {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -270,9 +269,7 @@ func (x *LocalNodeInfoRequest) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
out.RawString(prefix)
|
||||
x.Body.MarshalEasyJSON(out)
|
||||
}
|
||||
}
|
||||
{
|
||||
if x.MetaHeader != nil {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -282,9 +279,7 @@ func (x *LocalNodeInfoRequest) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
out.RawString(prefix)
|
||||
x.MetaHeader.MarshalEasyJSON(out)
|
||||
}
|
||||
}
|
||||
{
|
||||
if x.VerifyHeader != nil {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -294,7 +289,6 @@ func (x *LocalNodeInfoRequest) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
out.RawString(prefix)
|
||||
x.VerifyHeader.MarshalEasyJSON(out)
|
||||
}
|
||||
}
|
||||
out.RawByte('}')
|
||||
}
|
||||
|
||||
|
@ -462,7 +456,6 @@ func (x *LocalNodeInfoResponse_Body) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
first := true
|
||||
out.RawByte('{')
|
||||
{
|
||||
if x.Version != nil {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -472,9 +465,7 @@ func (x *LocalNodeInfoResponse_Body) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
out.RawString(prefix)
|
||||
x.Version.MarshalEasyJSON(out)
|
||||
}
|
||||
}
|
||||
{
|
||||
if x.NodeInfo != nil {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -484,7 +475,6 @@ func (x *LocalNodeInfoResponse_Body) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
out.RawString(prefix)
|
||||
x.NodeInfo.MarshalEasyJSON(out)
|
||||
}
|
||||
}
|
||||
out.RawByte('}')
|
||||
}
|
||||
|
||||
|
@ -686,7 +676,6 @@ func (x *LocalNodeInfoResponse) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
first := true
|
||||
out.RawByte('{')
|
||||
{
|
||||
if x.Body != nil {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -696,9 +685,7 @@ func (x *LocalNodeInfoResponse) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
out.RawString(prefix)
|
||||
x.Body.MarshalEasyJSON(out)
|
||||
}
|
||||
}
|
||||
{
|
||||
if x.MetaHeader != nil {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -708,9 +695,7 @@ func (x *LocalNodeInfoResponse) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
out.RawString(prefix)
|
||||
x.MetaHeader.MarshalEasyJSON(out)
|
||||
}
|
||||
}
|
||||
{
|
||||
if x.VerifyHeader != nil {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -720,7 +705,6 @@ func (x *LocalNodeInfoResponse) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
out.RawString(prefix)
|
||||
x.VerifyHeader.MarshalEasyJSON(out)
|
||||
}
|
||||
}
|
||||
out.RawByte('}')
|
||||
}
|
||||
|
||||
|
@ -1024,7 +1008,6 @@ func (x *NetworkInfoRequest) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
first := true
|
||||
out.RawByte('{')
|
||||
{
|
||||
if x.Body != nil {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -1034,9 +1017,7 @@ func (x *NetworkInfoRequest) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
out.RawString(prefix)
|
||||
x.Body.MarshalEasyJSON(out)
|
||||
}
|
||||
}
|
||||
{
|
||||
if x.MetaHeader != nil {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -1046,9 +1027,7 @@ func (x *NetworkInfoRequest) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
out.RawString(prefix)
|
||||
x.MetaHeader.MarshalEasyJSON(out)
|
||||
}
|
||||
}
|
||||
{
|
||||
if x.VerifyHeader != nil {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -1058,7 +1037,6 @@ func (x *NetworkInfoRequest) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
out.RawString(prefix)
|
||||
x.VerifyHeader.MarshalEasyJSON(out)
|
||||
}
|
||||
}
|
||||
out.RawByte('}')
|
||||
}
|
||||
|
||||
|
@ -1203,7 +1181,6 @@ func (x *NetworkInfoResponse_Body) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
first := true
|
||||
out.RawByte('{')
|
||||
{
|
||||
if x.NetworkInfo != nil {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -1213,7 +1190,6 @@ func (x *NetworkInfoResponse_Body) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
out.RawString(prefix)
|
||||
x.NetworkInfo.MarshalEasyJSON(out)
|
||||
}
|
||||
}
|
||||
out.RawByte('}')
|
||||
}
|
||||
|
||||
|
@ -1408,7 +1384,6 @@ func (x *NetworkInfoResponse) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
first := true
|
||||
out.RawByte('{')
|
||||
{
|
||||
if x.Body != nil {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -1418,9 +1393,7 @@ func (x *NetworkInfoResponse) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
out.RawString(prefix)
|
||||
x.Body.MarshalEasyJSON(out)
|
||||
}
|
||||
}
|
||||
{
|
||||
if x.MetaHeader != nil {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -1430,9 +1403,7 @@ func (x *NetworkInfoResponse) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
out.RawString(prefix)
|
||||
x.MetaHeader.MarshalEasyJSON(out)
|
||||
}
|
||||
}
|
||||
{
|
||||
if x.VerifyHeader != nil {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -1442,7 +1413,6 @@ func (x *NetworkInfoResponse) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
out.RawString(prefix)
|
||||
x.VerifyHeader.MarshalEasyJSON(out)
|
||||
}
|
||||
}
|
||||
out.RawByte('}')
|
||||
}
|
||||
|
||||
|
@ -1746,7 +1716,6 @@ func (x *NetmapSnapshotRequest) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
first := true
|
||||
out.RawByte('{')
|
||||
{
|
||||
if x.Body != nil {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -1756,9 +1725,7 @@ func (x *NetmapSnapshotRequest) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
out.RawString(prefix)
|
||||
x.Body.MarshalEasyJSON(out)
|
||||
}
|
||||
}
|
||||
{
|
||||
if x.MetaHeader != nil {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -1768,9 +1735,7 @@ func (x *NetmapSnapshotRequest) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
out.RawString(prefix)
|
||||
x.MetaHeader.MarshalEasyJSON(out)
|
||||
}
|
||||
}
|
||||
{
|
||||
if x.VerifyHeader != nil {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -1780,7 +1745,6 @@ func (x *NetmapSnapshotRequest) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
out.RawString(prefix)
|
||||
x.VerifyHeader.MarshalEasyJSON(out)
|
||||
}
|
||||
}
|
||||
out.RawByte('}')
|
||||
}
|
||||
|
||||
|
@ -1925,7 +1889,6 @@ func (x *NetmapSnapshotResponse_Body) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
first := true
|
||||
out.RawByte('{')
|
||||
{
|
||||
if x.Netmap != nil {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -1935,7 +1898,6 @@ func (x *NetmapSnapshotResponse_Body) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
out.RawString(prefix)
|
||||
x.Netmap.MarshalEasyJSON(out)
|
||||
}
|
||||
}
|
||||
out.RawByte('}')
|
||||
}
|
||||
|
||||
|
@ -2130,7 +2092,6 @@ func (x *NetmapSnapshotResponse) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
first := true
|
||||
out.RawByte('{')
|
||||
{
|
||||
if x.Body != nil {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -2140,9 +2101,7 @@ func (x *NetmapSnapshotResponse) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
out.RawString(prefix)
|
||||
x.Body.MarshalEasyJSON(out)
|
||||
}
|
||||
}
|
||||
{
|
||||
if x.MetaHeader != nil {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -2152,9 +2111,7 @@ func (x *NetmapSnapshotResponse) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
out.RawString(prefix)
|
||||
x.MetaHeader.MarshalEasyJSON(out)
|
||||
}
|
||||
}
|
||||
{
|
||||
if x.VerifyHeader != nil {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -2164,7 +2121,6 @@ func (x *NetmapSnapshotResponse) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
out.RawString(prefix)
|
||||
x.VerifyHeader.MarshalEasyJSON(out)
|
||||
}
|
||||
}
|
||||
out.RawByte('}')
|
||||
}
|
||||
|
||||
|
|
100
netmap/grpc/types_frostfs.pb.go
generated
100
netmap/grpc/types_frostfs.pb.go
generated
|
@ -277,7 +277,6 @@ func (x *Filter) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
first := true
|
||||
out.RawByte('{')
|
||||
{
|
||||
if len(x.Name) != 0 {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -287,9 +286,7 @@ func (x *Filter) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
out.RawString(prefix)
|
||||
out.String(x.Name)
|
||||
}
|
||||
}
|
||||
{
|
||||
if len(x.Key) != 0 {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -299,9 +296,7 @@ func (x *Filter) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
out.RawString(prefix)
|
||||
out.String(x.Key)
|
||||
}
|
||||
}
|
||||
{
|
||||
if x.Op != 0 {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -316,9 +311,7 @@ func (x *Filter) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
out.Int32(v)
|
||||
}
|
||||
}
|
||||
}
|
||||
{
|
||||
if len(x.Value) != 0 {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -328,9 +321,7 @@ func (x *Filter) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
out.RawString(prefix)
|
||||
out.String(x.Value)
|
||||
}
|
||||
}
|
||||
{
|
||||
if len(x.Filters) != 0 {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -347,7 +338,6 @@ func (x *Filter) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
}
|
||||
out.RawByte(']')
|
||||
}
|
||||
}
|
||||
out.RawByte('}')
|
||||
}
|
||||
|
||||
|
@ -602,7 +592,6 @@ func (x *Selector) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
first := true
|
||||
out.RawByte('{')
|
||||
{
|
||||
if len(x.Name) != 0 {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -612,9 +601,7 @@ func (x *Selector) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
out.RawString(prefix)
|
||||
out.String(x.Name)
|
||||
}
|
||||
}
|
||||
{
|
||||
if x.Count != 0 {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -624,9 +611,7 @@ func (x *Selector) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
out.RawString(prefix)
|
||||
out.Uint32(x.Count)
|
||||
}
|
||||
}
|
||||
{
|
||||
if x.Clause != 0 {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -641,9 +626,7 @@ func (x *Selector) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
out.Int32(v)
|
||||
}
|
||||
}
|
||||
}
|
||||
{
|
||||
if len(x.Attribute) != 0 {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -653,9 +636,7 @@ func (x *Selector) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
out.RawString(prefix)
|
||||
out.String(x.Attribute)
|
||||
}
|
||||
}
|
||||
{
|
||||
if len(x.Filter) != 0 {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -665,7 +646,6 @@ func (x *Selector) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
out.RawString(prefix)
|
||||
out.String(x.Filter)
|
||||
}
|
||||
}
|
||||
out.RawByte('}')
|
||||
}
|
||||
|
||||
|
@ -900,7 +880,6 @@ func (x *Replica) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
first := true
|
||||
out.RawByte('{')
|
||||
{
|
||||
if x.Count != 0 {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -910,9 +889,7 @@ func (x *Replica) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
out.RawString(prefix)
|
||||
out.Uint32(x.Count)
|
||||
}
|
||||
}
|
||||
{
|
||||
if len(x.Selector) != 0 {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -922,9 +899,7 @@ func (x *Replica) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
out.RawString(prefix)
|
||||
out.String(x.Selector)
|
||||
}
|
||||
}
|
||||
{
|
||||
if x.EcDataCount != 0 {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -934,9 +909,7 @@ func (x *Replica) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
out.RawString(prefix)
|
||||
out.Uint32(x.EcDataCount)
|
||||
}
|
||||
}
|
||||
{
|
||||
if x.EcParityCount != 0 {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -946,7 +919,6 @@ func (x *Replica) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
out.RawString(prefix)
|
||||
out.Uint32(x.EcParityCount)
|
||||
}
|
||||
}
|
||||
out.RawByte('}')
|
||||
}
|
||||
|
||||
|
@ -1213,7 +1185,6 @@ func (x *PlacementPolicy) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
first := true
|
||||
out.RawByte('{')
|
||||
{
|
||||
if len(x.Replicas) != 0 {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -1230,9 +1201,7 @@ func (x *PlacementPolicy) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
}
|
||||
out.RawByte(']')
|
||||
}
|
||||
}
|
||||
{
|
||||
if x.ContainerBackupFactor != 0 {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -1242,9 +1211,7 @@ func (x *PlacementPolicy) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
out.RawString(prefix)
|
||||
out.Uint32(x.ContainerBackupFactor)
|
||||
}
|
||||
}
|
||||
{
|
||||
if len(x.Selectors) != 0 {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -1261,9 +1228,7 @@ func (x *PlacementPolicy) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
}
|
||||
out.RawByte(']')
|
||||
}
|
||||
}
|
||||
{
|
||||
if len(x.Filters) != 0 {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -1280,9 +1245,7 @@ func (x *PlacementPolicy) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
}
|
||||
out.RawByte(']')
|
||||
}
|
||||
}
|
||||
{
|
||||
if x.Unique {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -1292,7 +1255,6 @@ func (x *PlacementPolicy) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
out.RawString(prefix)
|
||||
out.Bool(x.Unique)
|
||||
}
|
||||
}
|
||||
out.RawByte('}')
|
||||
}
|
||||
|
||||
|
@ -1553,7 +1515,6 @@ func (x *NodeInfo_Attribute) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
first := true
|
||||
out.RawByte('{')
|
||||
{
|
||||
if len(x.Key) != 0 {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -1563,9 +1524,7 @@ func (x *NodeInfo_Attribute) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
out.RawString(prefix)
|
||||
out.String(x.Key)
|
||||
}
|
||||
}
|
||||
{
|
||||
if len(x.Value) != 0 {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -1575,9 +1534,7 @@ func (x *NodeInfo_Attribute) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
out.RawString(prefix)
|
||||
out.String(x.Value)
|
||||
}
|
||||
}
|
||||
{
|
||||
if len(x.Parents) != 0 {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -1594,7 +1551,6 @@ func (x *NodeInfo_Attribute) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
}
|
||||
out.RawByte(']')
|
||||
}
|
||||
}
|
||||
out.RawByte('}')
|
||||
}
|
||||
|
||||
|
@ -1806,7 +1762,6 @@ func (x *NodeInfo) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
first := true
|
||||
out.RawByte('{')
|
||||
{
|
||||
if len(x.PublicKey) != 0 {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -1814,11 +1769,13 @@ func (x *NodeInfo) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
}
|
||||
const prefix string = "\"publicKey\":"
|
||||
out.RawString(prefix)
|
||||
if x.PublicKey != nil {
|
||||
out.Base64Bytes(x.PublicKey)
|
||||
} else {
|
||||
out.String("")
|
||||
}
|
||||
}
|
||||
{
|
||||
if len(x.Addresses) != 0 {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -1835,9 +1792,7 @@ func (x *NodeInfo) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
}
|
||||
out.RawByte(']')
|
||||
}
|
||||
}
|
||||
{
|
||||
if len(x.Attributes) != 0 {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -1854,9 +1809,7 @@ func (x *NodeInfo) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
}
|
||||
out.RawByte(']')
|
||||
}
|
||||
}
|
||||
{
|
||||
if x.State != 0 {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -1871,7 +1824,6 @@ func (x *NodeInfo) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
out.Int32(v)
|
||||
}
|
||||
}
|
||||
}
|
||||
out.RawByte('}')
|
||||
}
|
||||
|
||||
|
@ -1903,7 +1855,13 @@ func (x *NodeInfo) UnmarshalEasyJSON(in *jlexer.Lexer) {
|
|||
case "publicKey":
|
||||
{
|
||||
var f []byte
|
||||
f = in.Bytes()
|
||||
{
|
||||
tmp := in.Bytes()
|
||||
if len(tmp) == 0 {
|
||||
tmp = nil
|
||||
}
|
||||
f = tmp
|
||||
}
|
||||
x.PublicKey = f
|
||||
}
|
||||
case "addresses":
|
||||
|
@ -2073,7 +2031,6 @@ func (x *Netmap) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
first := true
|
||||
out.RawByte('{')
|
||||
{
|
||||
if x.Epoch != 0 {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -2085,9 +2042,7 @@ func (x *Netmap) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
out.Buffer.Buf = strconv.AppendUint(out.Buffer.Buf, x.Epoch, 10)
|
||||
out.RawByte('"')
|
||||
}
|
||||
}
|
||||
{
|
||||
if len(x.Nodes) != 0 {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -2104,7 +2059,6 @@ func (x *Netmap) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
}
|
||||
out.RawByte(']')
|
||||
}
|
||||
}
|
||||
out.RawByte('}')
|
||||
}
|
||||
|
||||
|
@ -2273,7 +2227,6 @@ func (x *NetworkConfig_Parameter) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
first := true
|
||||
out.RawByte('{')
|
||||
{
|
||||
if len(x.Key) != 0 {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -2281,11 +2234,13 @@ func (x *NetworkConfig_Parameter) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
}
|
||||
const prefix string = "\"key\":"
|
||||
out.RawString(prefix)
|
||||
if x.Key != nil {
|
||||
out.Base64Bytes(x.Key)
|
||||
} else {
|
||||
out.String("")
|
||||
}
|
||||
}
|
||||
{
|
||||
if len(x.Value) != 0 {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -2293,7 +2248,10 @@ func (x *NetworkConfig_Parameter) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
}
|
||||
const prefix string = "\"value\":"
|
||||
out.RawString(prefix)
|
||||
if x.Value != nil {
|
||||
out.Base64Bytes(x.Value)
|
||||
} else {
|
||||
out.String("")
|
||||
}
|
||||
}
|
||||
out.RawByte('}')
|
||||
|
@ -2327,13 +2285,25 @@ func (x *NetworkConfig_Parameter) UnmarshalEasyJSON(in *jlexer.Lexer) {
|
|||
case "key":
|
||||
{
|
||||
var f []byte
|
||||
f = in.Bytes()
|
||||
{
|
||||
tmp := in.Bytes()
|
||||
if len(tmp) == 0 {
|
||||
tmp = nil
|
||||
}
|
||||
f = tmp
|
||||
}
|
||||
x.Key = f
|
||||
}
|
||||
case "value":
|
||||
{
|
||||
var f []byte
|
||||
f = in.Bytes()
|
||||
{
|
||||
tmp := in.Bytes()
|
||||
if len(tmp) == 0 {
|
||||
tmp = nil
|
||||
}
|
||||
f = tmp
|
||||
}
|
||||
x.Value = f
|
||||
}
|
||||
}
|
||||
|
@ -2434,7 +2404,6 @@ func (x *NetworkConfig) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
first := true
|
||||
out.RawByte('{')
|
||||
{
|
||||
if len(x.Parameters) != 0 {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -2451,7 +2420,6 @@ func (x *NetworkConfig) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
}
|
||||
out.RawByte(']')
|
||||
}
|
||||
}
|
||||
out.RawByte('}')
|
||||
}
|
||||
|
||||
|
@ -2649,7 +2617,6 @@ func (x *NetworkInfo) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
first := true
|
||||
out.RawByte('{')
|
||||
{
|
||||
if x.CurrentEpoch != 0 {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -2661,9 +2628,7 @@ func (x *NetworkInfo) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
out.Buffer.Buf = strconv.AppendUint(out.Buffer.Buf, x.CurrentEpoch, 10)
|
||||
out.RawByte('"')
|
||||
}
|
||||
}
|
||||
{
|
||||
if x.MagicNumber != 0 {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -2675,9 +2640,7 @@ func (x *NetworkInfo) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
out.Buffer.Buf = strconv.AppendUint(out.Buffer.Buf, x.MagicNumber, 10)
|
||||
out.RawByte('"')
|
||||
}
|
||||
}
|
||||
{
|
||||
if x.MsPerBlock != 0 {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -2689,9 +2652,7 @@ func (x *NetworkInfo) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
out.Buffer.Buf = strconv.AppendInt(out.Buffer.Buf, x.MsPerBlock, 10)
|
||||
out.RawByte('"')
|
||||
}
|
||||
}
|
||||
{
|
||||
if x.NetworkConfig != nil {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -2701,7 +2662,6 @@ func (x *NetworkInfo) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
out.RawString(prefix)
|
||||
x.NetworkConfig.MarshalEasyJSON(out)
|
||||
}
|
||||
}
|
||||
out.RawByte('}')
|
||||
}
|
||||
|
||||
|
|
284
object/grpc/service_frostfs.pb.go
generated
284
object/grpc/service_frostfs.pb.go
generated
File diff suppressed because it is too large
Load diff
142
object/grpc/types_frostfs.pb.go
generated
142
object/grpc/types_frostfs.pb.go
generated
|
@ -307,7 +307,6 @@ func (x *ShortHeader) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
first := true
|
||||
out.RawByte('{')
|
||||
{
|
||||
if x.Version != nil {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -317,9 +316,7 @@ func (x *ShortHeader) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
out.RawString(prefix)
|
||||
x.Version.MarshalEasyJSON(out)
|
||||
}
|
||||
}
|
||||
{
|
||||
if x.CreationEpoch != 0 {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -331,9 +328,7 @@ func (x *ShortHeader) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
out.Buffer.Buf = strconv.AppendUint(out.Buffer.Buf, x.CreationEpoch, 10)
|
||||
out.RawByte('"')
|
||||
}
|
||||
}
|
||||
{
|
||||
if x.OwnerId != nil {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -343,9 +338,7 @@ func (x *ShortHeader) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
out.RawString(prefix)
|
||||
x.OwnerId.MarshalEasyJSON(out)
|
||||
}
|
||||
}
|
||||
{
|
||||
if x.ObjectType != 0 {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -360,9 +353,7 @@ func (x *ShortHeader) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
out.Int32(v)
|
||||
}
|
||||
}
|
||||
}
|
||||
{
|
||||
if x.PayloadLength != 0 {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -374,9 +365,7 @@ func (x *ShortHeader) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
out.Buffer.Buf = strconv.AppendUint(out.Buffer.Buf, x.PayloadLength, 10)
|
||||
out.RawByte('"')
|
||||
}
|
||||
}
|
||||
{
|
||||
if x.PayloadHash != nil {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -386,9 +375,7 @@ func (x *ShortHeader) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
out.RawString(prefix)
|
||||
x.PayloadHash.MarshalEasyJSON(out)
|
||||
}
|
||||
}
|
||||
{
|
||||
if x.HomomorphicHash != nil {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -398,7 +385,6 @@ func (x *ShortHeader) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
out.RawString(prefix)
|
||||
x.HomomorphicHash.MarshalEasyJSON(out)
|
||||
}
|
||||
}
|
||||
out.RawByte('}')
|
||||
}
|
||||
|
||||
|
@ -617,7 +603,6 @@ func (x *Header_Attribute) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
first := true
|
||||
out.RawByte('{')
|
||||
{
|
||||
if len(x.Key) != 0 {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -627,9 +612,7 @@ func (x *Header_Attribute) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
out.RawString(prefix)
|
||||
out.String(x.Key)
|
||||
}
|
||||
}
|
||||
{
|
||||
if len(x.Value) != 0 {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -639,7 +622,6 @@ func (x *Header_Attribute) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
out.RawString(prefix)
|
||||
out.String(x.Value)
|
||||
}
|
||||
}
|
||||
out.RawByte('}')
|
||||
}
|
||||
|
||||
|
@ -890,7 +872,6 @@ func (x *Header_Split) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
first := true
|
||||
out.RawByte('{')
|
||||
{
|
||||
if x.Parent != nil {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -900,9 +881,7 @@ func (x *Header_Split) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
out.RawString(prefix)
|
||||
x.Parent.MarshalEasyJSON(out)
|
||||
}
|
||||
}
|
||||
{
|
||||
if x.Previous != nil {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -912,9 +891,7 @@ func (x *Header_Split) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
out.RawString(prefix)
|
||||
x.Previous.MarshalEasyJSON(out)
|
||||
}
|
||||
}
|
||||
{
|
||||
if x.ParentSignature != nil {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -924,9 +901,7 @@ func (x *Header_Split) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
out.RawString(prefix)
|
||||
x.ParentSignature.MarshalEasyJSON(out)
|
||||
}
|
||||
}
|
||||
{
|
||||
if x.ParentHeader != nil {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -936,9 +911,7 @@ func (x *Header_Split) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
out.RawString(prefix)
|
||||
x.ParentHeader.MarshalEasyJSON(out)
|
||||
}
|
||||
}
|
||||
{
|
||||
if len(x.Children) != 0 {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -955,9 +928,7 @@ func (x *Header_Split) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
}
|
||||
out.RawByte(']')
|
||||
}
|
||||
}
|
||||
{
|
||||
if len(x.SplitId) != 0 {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -965,7 +936,10 @@ func (x *Header_Split) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
}
|
||||
const prefix string = "\"splitID\":"
|
||||
out.RawString(prefix)
|
||||
if x.SplitId != nil {
|
||||
out.Base64Bytes(x.SplitId)
|
||||
} else {
|
||||
out.String("")
|
||||
}
|
||||
}
|
||||
out.RawByte('}')
|
||||
|
@ -1041,7 +1015,13 @@ func (x *Header_Split) UnmarshalEasyJSON(in *jlexer.Lexer) {
|
|||
case "splitID":
|
||||
{
|
||||
var f []byte
|
||||
f = in.Bytes()
|
||||
{
|
||||
tmp := in.Bytes()
|
||||
if len(tmp) == 0 {
|
||||
tmp = nil
|
||||
}
|
||||
f = tmp
|
||||
}
|
||||
x.SplitId = f
|
||||
}
|
||||
}
|
||||
|
@ -1288,7 +1268,6 @@ func (x *Header_EC) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
first := true
|
||||
out.RawByte('{')
|
||||
{
|
||||
if x.Parent != nil {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -1298,9 +1277,7 @@ func (x *Header_EC) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
out.RawString(prefix)
|
||||
x.Parent.MarshalEasyJSON(out)
|
||||
}
|
||||
}
|
||||
{
|
||||
if x.Index != 0 {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -1310,9 +1287,7 @@ func (x *Header_EC) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
out.RawString(prefix)
|
||||
out.Uint32(x.Index)
|
||||
}
|
||||
}
|
||||
{
|
||||
if x.Total != 0 {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -1322,9 +1297,7 @@ func (x *Header_EC) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
out.RawString(prefix)
|
||||
out.Uint32(x.Total)
|
||||
}
|
||||
}
|
||||
{
|
||||
if x.HeaderLength != 0 {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -1334,9 +1307,7 @@ func (x *Header_EC) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
out.RawString(prefix)
|
||||
out.Uint32(x.HeaderLength)
|
||||
}
|
||||
}
|
||||
{
|
||||
if len(x.Header) != 0 {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -1344,11 +1315,13 @@ func (x *Header_EC) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
}
|
||||
const prefix string = "\"header\":"
|
||||
out.RawString(prefix)
|
||||
if x.Header != nil {
|
||||
out.Base64Bytes(x.Header)
|
||||
} else {
|
||||
out.String("")
|
||||
}
|
||||
}
|
||||
{
|
||||
if len(x.ParentSplitId) != 0 {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -1356,11 +1329,13 @@ func (x *Header_EC) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
}
|
||||
const prefix string = "\"parentSplitID\":"
|
||||
out.RawString(prefix)
|
||||
if x.ParentSplitId != nil {
|
||||
out.Base64Bytes(x.ParentSplitId)
|
||||
} else {
|
||||
out.String("")
|
||||
}
|
||||
}
|
||||
{
|
||||
if x.ParentSplitParentId != nil {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -1370,9 +1345,7 @@ func (x *Header_EC) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
out.RawString(prefix)
|
||||
x.ParentSplitParentId.MarshalEasyJSON(out)
|
||||
}
|
||||
}
|
||||
{
|
||||
if len(x.ParentAttributes) != 0 {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -1389,7 +1362,6 @@ func (x *Header_EC) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
}
|
||||
out.RawByte(']')
|
||||
}
|
||||
}
|
||||
out.RawByte('}')
|
||||
}
|
||||
|
||||
|
@ -1470,13 +1442,25 @@ func (x *Header_EC) UnmarshalEasyJSON(in *jlexer.Lexer) {
|
|||
case "header":
|
||||
{
|
||||
var f []byte
|
||||
f = in.Bytes()
|
||||
{
|
||||
tmp := in.Bytes()
|
||||
if len(tmp) == 0 {
|
||||
tmp = nil
|
||||
}
|
||||
f = tmp
|
||||
}
|
||||
x.Header = f
|
||||
}
|
||||
case "parentSplitID":
|
||||
{
|
||||
var f []byte
|
||||
f = in.Bytes()
|
||||
{
|
||||
tmp := in.Bytes()
|
||||
if len(tmp) == 0 {
|
||||
tmp = nil
|
||||
}
|
||||
f = tmp
|
||||
}
|
||||
x.ParentSplitId = f
|
||||
}
|
||||
case "parentSplitParentID":
|
||||
|
@ -1842,7 +1826,6 @@ func (x *Header) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
first := true
|
||||
out.RawByte('{')
|
||||
{
|
||||
if x.Version != nil {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -1852,9 +1835,7 @@ func (x *Header) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
out.RawString(prefix)
|
||||
x.Version.MarshalEasyJSON(out)
|
||||
}
|
||||
}
|
||||
{
|
||||
if x.ContainerId != nil {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -1864,9 +1845,7 @@ func (x *Header) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
out.RawString(prefix)
|
||||
x.ContainerId.MarshalEasyJSON(out)
|
||||
}
|
||||
}
|
||||
{
|
||||
if x.OwnerId != nil {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -1876,9 +1855,7 @@ func (x *Header) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
out.RawString(prefix)
|
||||
x.OwnerId.MarshalEasyJSON(out)
|
||||
}
|
||||
}
|
||||
{
|
||||
if x.CreationEpoch != 0 {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -1890,9 +1867,7 @@ func (x *Header) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
out.Buffer.Buf = strconv.AppendUint(out.Buffer.Buf, x.CreationEpoch, 10)
|
||||
out.RawByte('"')
|
||||
}
|
||||
}
|
||||
{
|
||||
if x.PayloadLength != 0 {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -1904,9 +1879,7 @@ func (x *Header) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
out.Buffer.Buf = strconv.AppendUint(out.Buffer.Buf, x.PayloadLength, 10)
|
||||
out.RawByte('"')
|
||||
}
|
||||
}
|
||||
{
|
||||
if x.PayloadHash != nil {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -1916,9 +1889,7 @@ func (x *Header) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
out.RawString(prefix)
|
||||
x.PayloadHash.MarshalEasyJSON(out)
|
||||
}
|
||||
}
|
||||
{
|
||||
if x.ObjectType != 0 {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -1933,9 +1904,7 @@ func (x *Header) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
out.Int32(v)
|
||||
}
|
||||
}
|
||||
}
|
||||
{
|
||||
if x.HomomorphicHash != nil {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -1945,9 +1914,7 @@ func (x *Header) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
out.RawString(prefix)
|
||||
x.HomomorphicHash.MarshalEasyJSON(out)
|
||||
}
|
||||
}
|
||||
{
|
||||
if x.SessionToken != nil {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -1957,9 +1924,7 @@ func (x *Header) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
out.RawString(prefix)
|
||||
x.SessionToken.MarshalEasyJSON(out)
|
||||
}
|
||||
}
|
||||
{
|
||||
if len(x.Attributes) != 0 {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -1976,9 +1941,7 @@ func (x *Header) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
}
|
||||
out.RawByte(']')
|
||||
}
|
||||
}
|
||||
{
|
||||
if x.Split != nil {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -1988,9 +1951,7 @@ func (x *Header) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
out.RawString(prefix)
|
||||
x.Split.MarshalEasyJSON(out)
|
||||
}
|
||||
}
|
||||
{
|
||||
if x.Ec != nil {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -2000,7 +1961,6 @@ func (x *Header) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
out.RawString(prefix)
|
||||
x.Ec.MarshalEasyJSON(out)
|
||||
}
|
||||
}
|
||||
out.RawByte('}')
|
||||
}
|
||||
|
||||
|
@ -2310,7 +2270,6 @@ func (x *Object) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
first := true
|
||||
out.RawByte('{')
|
||||
{
|
||||
if x.ObjectId != nil {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -2320,9 +2279,7 @@ func (x *Object) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
out.RawString(prefix)
|
||||
x.ObjectId.MarshalEasyJSON(out)
|
||||
}
|
||||
}
|
||||
{
|
||||
if x.Signature != nil {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -2332,9 +2289,7 @@ func (x *Object) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
out.RawString(prefix)
|
||||
x.Signature.MarshalEasyJSON(out)
|
||||
}
|
||||
}
|
||||
{
|
||||
if x.Header != nil {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -2344,9 +2299,7 @@ func (x *Object) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
out.RawString(prefix)
|
||||
x.Header.MarshalEasyJSON(out)
|
||||
}
|
||||
}
|
||||
{
|
||||
if len(x.Payload) != 0 {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -2354,7 +2307,10 @@ func (x *Object) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
}
|
||||
const prefix string = "\"payload\":"
|
||||
out.RawString(prefix)
|
||||
if x.Payload != nil {
|
||||
out.Base64Bytes(x.Payload)
|
||||
} else {
|
||||
out.String("")
|
||||
}
|
||||
}
|
||||
out.RawByte('}')
|
||||
|
@ -2409,7 +2365,13 @@ func (x *Object) UnmarshalEasyJSON(in *jlexer.Lexer) {
|
|||
case "payload":
|
||||
{
|
||||
var f []byte
|
||||
f = in.Bytes()
|
||||
{
|
||||
tmp := in.Bytes()
|
||||
if len(tmp) == 0 {
|
||||
tmp = nil
|
||||
}
|
||||
f = tmp
|
||||
}
|
||||
x.Payload = f
|
||||
}
|
||||
}
|
||||
|
@ -2550,7 +2512,6 @@ func (x *SplitInfo) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
first := true
|
||||
out.RawByte('{')
|
||||
{
|
||||
if len(x.SplitId) != 0 {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -2558,11 +2519,13 @@ func (x *SplitInfo) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
}
|
||||
const prefix string = "\"splitId\":"
|
||||
out.RawString(prefix)
|
||||
if x.SplitId != nil {
|
||||
out.Base64Bytes(x.SplitId)
|
||||
} else {
|
||||
out.String("")
|
||||
}
|
||||
}
|
||||
{
|
||||
if x.LastPart != nil {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -2572,9 +2535,7 @@ func (x *SplitInfo) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
out.RawString(prefix)
|
||||
x.LastPart.MarshalEasyJSON(out)
|
||||
}
|
||||
}
|
||||
{
|
||||
if x.Link != nil {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -2584,7 +2545,6 @@ func (x *SplitInfo) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
out.RawString(prefix)
|
||||
x.Link.MarshalEasyJSON(out)
|
||||
}
|
||||
}
|
||||
out.RawByte('}')
|
||||
}
|
||||
|
||||
|
@ -2616,7 +2576,13 @@ func (x *SplitInfo) UnmarshalEasyJSON(in *jlexer.Lexer) {
|
|||
case "splitId":
|
||||
{
|
||||
var f []byte
|
||||
f = in.Bytes()
|
||||
{
|
||||
tmp := in.Bytes()
|
||||
if len(tmp) == 0 {
|
||||
tmp = nil
|
||||
}
|
||||
f = tmp
|
||||
}
|
||||
x.SplitId = f
|
||||
}
|
||||
case "lastPart":
|
||||
|
@ -2768,7 +2734,6 @@ func (x *ECInfo_Chunk) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
first := true
|
||||
out.RawByte('{')
|
||||
{
|
||||
if x.Id != nil {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -2778,9 +2743,7 @@ func (x *ECInfo_Chunk) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
out.RawString(prefix)
|
||||
x.Id.MarshalEasyJSON(out)
|
||||
}
|
||||
}
|
||||
{
|
||||
if x.Index != 0 {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -2790,9 +2753,7 @@ func (x *ECInfo_Chunk) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
out.RawString(prefix)
|
||||
out.Uint32(x.Index)
|
||||
}
|
||||
}
|
||||
{
|
||||
if x.Total != 0 {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -2802,7 +2763,6 @@ func (x *ECInfo_Chunk) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
out.RawString(prefix)
|
||||
out.Uint32(x.Total)
|
||||
}
|
||||
}
|
||||
out.RawByte('}')
|
||||
}
|
||||
|
||||
|
@ -2964,7 +2924,6 @@ func (x *ECInfo) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
first := true
|
||||
out.RawByte('{')
|
||||
{
|
||||
if len(x.Chunks) != 0 {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -2981,7 +2940,6 @@ func (x *ECInfo) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
}
|
||||
out.RawByte(']')
|
||||
}
|
||||
}
|
||||
out.RawByte('}')
|
||||
}
|
||||
|
||||
|
|
108
refs/grpc/types_frostfs.pb.go
generated
108
refs/grpc/types_frostfs.pb.go
generated
|
@ -193,7 +193,6 @@ func (x *Address) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
first := true
|
||||
out.RawByte('{')
|
||||
{
|
||||
if x.ContainerId != nil {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -203,9 +202,7 @@ func (x *Address) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
out.RawString(prefix)
|
||||
x.ContainerId.MarshalEasyJSON(out)
|
||||
}
|
||||
}
|
||||
{
|
||||
if x.ObjectId != nil {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -215,7 +212,6 @@ func (x *Address) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
out.RawString(prefix)
|
||||
x.ObjectId.MarshalEasyJSON(out)
|
||||
}
|
||||
}
|
||||
out.RawByte('}')
|
||||
}
|
||||
|
||||
|
@ -350,7 +346,6 @@ func (x *ObjectID) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
first := true
|
||||
out.RawByte('{')
|
||||
{
|
||||
if len(x.Value) != 0 {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -358,7 +353,10 @@ func (x *ObjectID) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
}
|
||||
const prefix string = "\"value\":"
|
||||
out.RawString(prefix)
|
||||
if x.Value != nil {
|
||||
out.Base64Bytes(x.Value)
|
||||
} else {
|
||||
out.String("")
|
||||
}
|
||||
}
|
||||
out.RawByte('}')
|
||||
|
@ -392,7 +390,13 @@ func (x *ObjectID) UnmarshalEasyJSON(in *jlexer.Lexer) {
|
|||
case "value":
|
||||
{
|
||||
var f []byte
|
||||
f = in.Bytes()
|
||||
{
|
||||
tmp := in.Bytes()
|
||||
if len(tmp) == 0 {
|
||||
tmp = nil
|
||||
}
|
||||
f = tmp
|
||||
}
|
||||
x.Value = f
|
||||
}
|
||||
}
|
||||
|
@ -487,7 +491,6 @@ func (x *ContainerID) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
first := true
|
||||
out.RawByte('{')
|
||||
{
|
||||
if len(x.Value) != 0 {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -495,7 +498,10 @@ func (x *ContainerID) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
}
|
||||
const prefix string = "\"value\":"
|
||||
out.RawString(prefix)
|
||||
if x.Value != nil {
|
||||
out.Base64Bytes(x.Value)
|
||||
} else {
|
||||
out.String("")
|
||||
}
|
||||
}
|
||||
out.RawByte('}')
|
||||
|
@ -529,7 +535,13 @@ func (x *ContainerID) UnmarshalEasyJSON(in *jlexer.Lexer) {
|
|||
case "value":
|
||||
{
|
||||
var f []byte
|
||||
f = in.Bytes()
|
||||
{
|
||||
tmp := in.Bytes()
|
||||
if len(tmp) == 0 {
|
||||
tmp = nil
|
||||
}
|
||||
f = tmp
|
||||
}
|
||||
x.Value = f
|
||||
}
|
||||
}
|
||||
|
@ -624,7 +636,6 @@ func (x *OwnerID) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
first := true
|
||||
out.RawByte('{')
|
||||
{
|
||||
if len(x.Value) != 0 {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -632,7 +643,10 @@ func (x *OwnerID) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
}
|
||||
const prefix string = "\"value\":"
|
||||
out.RawString(prefix)
|
||||
if x.Value != nil {
|
||||
out.Base64Bytes(x.Value)
|
||||
} else {
|
||||
out.String("")
|
||||
}
|
||||
}
|
||||
out.RawByte('}')
|
||||
|
@ -666,7 +680,13 @@ func (x *OwnerID) UnmarshalEasyJSON(in *jlexer.Lexer) {
|
|||
case "value":
|
||||
{
|
||||
var f []byte
|
||||
f = in.Bytes()
|
||||
{
|
||||
tmp := in.Bytes()
|
||||
if len(tmp) == 0 {
|
||||
tmp = nil
|
||||
}
|
||||
f = tmp
|
||||
}
|
||||
x.Value = f
|
||||
}
|
||||
}
|
||||
|
@ -781,7 +801,6 @@ func (x *Version) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
first := true
|
||||
out.RawByte('{')
|
||||
{
|
||||
if x.Major != 0 {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -791,9 +810,7 @@ func (x *Version) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
out.RawString(prefix)
|
||||
out.Uint32(x.Major)
|
||||
}
|
||||
}
|
||||
{
|
||||
if x.Minor != 0 {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -803,7 +820,6 @@ func (x *Version) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
out.RawString(prefix)
|
||||
out.Uint32(x.Minor)
|
||||
}
|
||||
}
|
||||
out.RawByte('}')
|
||||
}
|
||||
|
||||
|
@ -992,7 +1008,6 @@ func (x *Signature) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
first := true
|
||||
out.RawByte('{')
|
||||
{
|
||||
if len(x.Key) != 0 {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -1000,11 +1015,13 @@ func (x *Signature) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
}
|
||||
const prefix string = "\"key\":"
|
||||
out.RawString(prefix)
|
||||
if x.Key != nil {
|
||||
out.Base64Bytes(x.Key)
|
||||
} else {
|
||||
out.String("")
|
||||
}
|
||||
}
|
||||
{
|
||||
if len(x.Sign) != 0 {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -1012,11 +1029,13 @@ func (x *Signature) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
}
|
||||
const prefix string = "\"signature\":"
|
||||
out.RawString(prefix)
|
||||
if x.Sign != nil {
|
||||
out.Base64Bytes(x.Sign)
|
||||
} else {
|
||||
out.String("")
|
||||
}
|
||||
}
|
||||
{
|
||||
if x.Scheme != 0 {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -1031,7 +1050,6 @@ func (x *Signature) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
out.Int32(v)
|
||||
}
|
||||
}
|
||||
}
|
||||
out.RawByte('}')
|
||||
}
|
||||
|
||||
|
@ -1063,13 +1081,25 @@ func (x *Signature) UnmarshalEasyJSON(in *jlexer.Lexer) {
|
|||
case "key":
|
||||
{
|
||||
var f []byte
|
||||
f = in.Bytes()
|
||||
{
|
||||
tmp := in.Bytes()
|
||||
if len(tmp) == 0 {
|
||||
tmp = nil
|
||||
}
|
||||
f = tmp
|
||||
}
|
||||
x.Key = f
|
||||
}
|
||||
case "signature":
|
||||
{
|
||||
var f []byte
|
||||
f = in.Bytes()
|
||||
{
|
||||
tmp := in.Bytes()
|
||||
if len(tmp) == 0 {
|
||||
tmp = nil
|
||||
}
|
||||
f = tmp
|
||||
}
|
||||
x.Sign = f
|
||||
}
|
||||
case "scheme":
|
||||
|
@ -1206,7 +1236,6 @@ func (x *SignatureRFC6979) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
first := true
|
||||
out.RawByte('{')
|
||||
{
|
||||
if len(x.Key) != 0 {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -1214,11 +1243,13 @@ func (x *SignatureRFC6979) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
}
|
||||
const prefix string = "\"key\":"
|
||||
out.RawString(prefix)
|
||||
if x.Key != nil {
|
||||
out.Base64Bytes(x.Key)
|
||||
} else {
|
||||
out.String("")
|
||||
}
|
||||
}
|
||||
{
|
||||
if len(x.Sign) != 0 {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -1226,7 +1257,10 @@ func (x *SignatureRFC6979) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
}
|
||||
const prefix string = "\"signature\":"
|
||||
out.RawString(prefix)
|
||||
if x.Sign != nil {
|
||||
out.Base64Bytes(x.Sign)
|
||||
} else {
|
||||
out.String("")
|
||||
}
|
||||
}
|
||||
out.RawByte('}')
|
||||
|
@ -1260,13 +1294,25 @@ func (x *SignatureRFC6979) UnmarshalEasyJSON(in *jlexer.Lexer) {
|
|||
case "key":
|
||||
{
|
||||
var f []byte
|
||||
f = in.Bytes()
|
||||
{
|
||||
tmp := in.Bytes()
|
||||
if len(tmp) == 0 {
|
||||
tmp = nil
|
||||
}
|
||||
f = tmp
|
||||
}
|
||||
x.Key = f
|
||||
}
|
||||
case "signature":
|
||||
{
|
||||
var f []byte
|
||||
f = in.Bytes()
|
||||
{
|
||||
tmp := in.Bytes()
|
||||
if len(tmp) == 0 {
|
||||
tmp = nil
|
||||
}
|
||||
f = tmp
|
||||
}
|
||||
x.Sign = f
|
||||
}
|
||||
}
|
||||
|
@ -1381,7 +1427,6 @@ func (x *Checksum) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
first := true
|
||||
out.RawByte('{')
|
||||
{
|
||||
if x.Type != 0 {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -1396,9 +1441,7 @@ func (x *Checksum) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
out.Int32(v)
|
||||
}
|
||||
}
|
||||
}
|
||||
{
|
||||
if len(x.Sum) != 0 {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -1406,7 +1449,10 @@ func (x *Checksum) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
}
|
||||
const prefix string = "\"sum\":"
|
||||
out.RawString(prefix)
|
||||
if x.Sum != nil {
|
||||
out.Base64Bytes(x.Sum)
|
||||
} else {
|
||||
out.String("")
|
||||
}
|
||||
}
|
||||
out.RawByte('}')
|
||||
|
@ -1462,7 +1508,13 @@ func (x *Checksum) UnmarshalEasyJSON(in *jlexer.Lexer) {
|
|||
case "sum":
|
||||
{
|
||||
var f []byte
|
||||
f = in.Bytes()
|
||||
{
|
||||
tmp := in.Bytes()
|
||||
if len(tmp) == 0 {
|
||||
tmp = nil
|
||||
}
|
||||
f = tmp
|
||||
}
|
||||
x.Sum = f
|
||||
}
|
||||
}
|
||||
|
|
|
@ -13,7 +13,6 @@ const (
|
|||
rpcContainerGet = "Get"
|
||||
rpcContainerDel = "Delete"
|
||||
rpcContainerList = "List"
|
||||
rpcContainerStream = "ListStream"
|
||||
rpcContainerGetEACL = "GetExtendedACL"
|
||||
rpcContainerUsedSpace = "AnnounceUsedSpace"
|
||||
)
|
||||
|
@ -81,27 +80,3 @@ func ListContainers(
|
|||
|
||||
return resp, nil
|
||||
}
|
||||
|
||||
type ListStreamResponseReader struct {
|
||||
r client.MessageReader
|
||||
}
|
||||
|
||||
func (r *ListStreamResponseReader) Read(resp *container.ListStreamResponse) error {
|
||||
return r.r.ReadMessage(resp)
|
||||
}
|
||||
|
||||
// ListContainersStream executes ContainerService.ListStream RPC.
|
||||
func ListContainersStream(
|
||||
cli *client.Client,
|
||||
req *container.ListStreamRequest,
|
||||
opts ...client.CallOption,
|
||||
) (*ListStreamResponseReader, error) {
|
||||
wc, err := client.OpenServerStream(cli, common.CallMethodInfoServerStream(serviceContainer, rpcContainerList), req, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
return &ListStreamResponseReader{
|
||||
r: wc,
|
||||
}, nil
|
||||
}
|
||||
|
|
40
session/grpc/service_frostfs.pb.go
generated
40
session/grpc/service_frostfs.pb.go
generated
|
@ -121,7 +121,6 @@ func (x *CreateRequest_Body) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
first := true
|
||||
out.RawByte('{')
|
||||
{
|
||||
if x.OwnerId != nil {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -131,9 +130,7 @@ func (x *CreateRequest_Body) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
out.RawString(prefix)
|
||||
x.OwnerId.MarshalEasyJSON(out)
|
||||
}
|
||||
}
|
||||
{
|
||||
if x.Expiration != 0 {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -145,7 +142,6 @@ func (x *CreateRequest_Body) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
out.Buffer.Buf = strconv.AppendUint(out.Buffer.Buf, x.Expiration, 10)
|
||||
out.RawByte('"')
|
||||
}
|
||||
}
|
||||
out.RawByte('}')
|
||||
}
|
||||
|
||||
|
@ -354,7 +350,6 @@ func (x *CreateRequest) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
first := true
|
||||
out.RawByte('{')
|
||||
{
|
||||
if x.Body != nil {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -364,9 +359,7 @@ func (x *CreateRequest) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
out.RawString(prefix)
|
||||
x.Body.MarshalEasyJSON(out)
|
||||
}
|
||||
}
|
||||
{
|
||||
if x.MetaHeader != nil {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -376,9 +369,7 @@ func (x *CreateRequest) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
out.RawString(prefix)
|
||||
x.MetaHeader.MarshalEasyJSON(out)
|
||||
}
|
||||
}
|
||||
{
|
||||
if x.VerifyHeader != nil {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -388,7 +379,6 @@ func (x *CreateRequest) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
out.RawString(prefix)
|
||||
x.VerifyHeader.MarshalEasyJSON(out)
|
||||
}
|
||||
}
|
||||
out.RawByte('}')
|
||||
}
|
||||
|
||||
|
@ -550,7 +540,6 @@ func (x *CreateResponse_Body) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
first := true
|
||||
out.RawByte('{')
|
||||
{
|
||||
if len(x.Id) != 0 {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -558,11 +547,13 @@ func (x *CreateResponse_Body) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
}
|
||||
const prefix string = "\"id\":"
|
||||
out.RawString(prefix)
|
||||
if x.Id != nil {
|
||||
out.Base64Bytes(x.Id)
|
||||
} else {
|
||||
out.String("")
|
||||
}
|
||||
}
|
||||
{
|
||||
if len(x.SessionKey) != 0 {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -570,7 +561,10 @@ func (x *CreateResponse_Body) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
}
|
||||
const prefix string = "\"sessionKey\":"
|
||||
out.RawString(prefix)
|
||||
if x.SessionKey != nil {
|
||||
out.Base64Bytes(x.SessionKey)
|
||||
} else {
|
||||
out.String("")
|
||||
}
|
||||
}
|
||||
out.RawByte('}')
|
||||
|
@ -604,13 +598,25 @@ func (x *CreateResponse_Body) UnmarshalEasyJSON(in *jlexer.Lexer) {
|
|||
case "id":
|
||||
{
|
||||
var f []byte
|
||||
f = in.Bytes()
|
||||
{
|
||||
tmp := in.Bytes()
|
||||
if len(tmp) == 0 {
|
||||
tmp = nil
|
||||
}
|
||||
f = tmp
|
||||
}
|
||||
x.Id = f
|
||||
}
|
||||
case "sessionKey":
|
||||
{
|
||||
var f []byte
|
||||
f = in.Bytes()
|
||||
{
|
||||
tmp := in.Bytes()
|
||||
if len(tmp) == 0 {
|
||||
tmp = nil
|
||||
}
|
||||
f = tmp
|
||||
}
|
||||
x.SessionKey = f
|
||||
}
|
||||
}
|
||||
|
@ -772,7 +778,6 @@ func (x *CreateResponse) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
first := true
|
||||
out.RawByte('{')
|
||||
{
|
||||
if x.Body != nil {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -782,9 +787,7 @@ func (x *CreateResponse) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
out.RawString(prefix)
|
||||
x.Body.MarshalEasyJSON(out)
|
||||
}
|
||||
}
|
||||
{
|
||||
if x.MetaHeader != nil {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -794,9 +797,7 @@ func (x *CreateResponse) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
out.RawString(prefix)
|
||||
x.MetaHeader.MarshalEasyJSON(out)
|
||||
}
|
||||
}
|
||||
{
|
||||
if x.VerifyHeader != nil {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -806,7 +807,6 @@ func (x *CreateResponse) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
out.RawString(prefix)
|
||||
x.VerifyHeader.MarshalEasyJSON(out)
|
||||
}
|
||||
}
|
||||
out.RawByte('}')
|
||||
}
|
||||
|
||||
|
|
104
session/grpc/types_frostfs.pb.go
generated
104
session/grpc/types_frostfs.pb.go
generated
|
@ -182,7 +182,6 @@ func (x *ObjectSessionContext_Target) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
first := true
|
||||
out.RawByte('{')
|
||||
{
|
||||
if x.Container != nil {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -192,9 +191,7 @@ func (x *ObjectSessionContext_Target) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
out.RawString(prefix)
|
||||
x.Container.MarshalEasyJSON(out)
|
||||
}
|
||||
}
|
||||
{
|
||||
if len(x.Objects) != 0 {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -211,7 +208,6 @@ func (x *ObjectSessionContext_Target) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
}
|
||||
out.RawByte(']')
|
||||
}
|
||||
}
|
||||
out.RawByte('}')
|
||||
}
|
||||
|
||||
|
@ -376,7 +372,6 @@ func (x *ObjectSessionContext) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
first := true
|
||||
out.RawByte('{')
|
||||
{
|
||||
if x.Verb != 0 {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -391,9 +386,7 @@ func (x *ObjectSessionContext) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
out.Int32(v)
|
||||
}
|
||||
}
|
||||
}
|
||||
{
|
||||
if x.Target != nil {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -403,7 +396,6 @@ func (x *ObjectSessionContext) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
out.RawString(prefix)
|
||||
x.Target.MarshalEasyJSON(out)
|
||||
}
|
||||
}
|
||||
out.RawByte('}')
|
||||
}
|
||||
|
||||
|
@ -634,7 +626,6 @@ func (x *ContainerSessionContext) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
first := true
|
||||
out.RawByte('{')
|
||||
{
|
||||
if x.Verb != 0 {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -649,9 +640,7 @@ func (x *ContainerSessionContext) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
out.Int32(v)
|
||||
}
|
||||
}
|
||||
}
|
||||
{
|
||||
if x.Wildcard {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -661,9 +650,7 @@ func (x *ContainerSessionContext) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
out.RawString(prefix)
|
||||
out.Bool(x.Wildcard)
|
||||
}
|
||||
}
|
||||
{
|
||||
if x.ContainerId != nil {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -673,7 +660,6 @@ func (x *ContainerSessionContext) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
out.RawString(prefix)
|
||||
x.ContainerId.MarshalEasyJSON(out)
|
||||
}
|
||||
}
|
||||
out.RawByte('}')
|
||||
}
|
||||
|
||||
|
@ -869,7 +855,6 @@ func (x *SessionToken_Body_TokenLifetime) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
first := true
|
||||
out.RawByte('{')
|
||||
{
|
||||
if x.Exp != 0 {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -881,9 +866,7 @@ func (x *SessionToken_Body_TokenLifetime) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
out.Buffer.Buf = strconv.AppendUint(out.Buffer.Buf, x.Exp, 10)
|
||||
out.RawByte('"')
|
||||
}
|
||||
}
|
||||
{
|
||||
if x.Nbf != 0 {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -895,9 +878,7 @@ func (x *SessionToken_Body_TokenLifetime) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
out.Buffer.Buf = strconv.AppendUint(out.Buffer.Buf, x.Nbf, 10)
|
||||
out.RawByte('"')
|
||||
}
|
||||
}
|
||||
{
|
||||
if x.Iat != 0 {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -909,7 +890,6 @@ func (x *SessionToken_Body_TokenLifetime) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
out.Buffer.Buf = strconv.AppendUint(out.Buffer.Buf, x.Iat, 10)
|
||||
out.RawByte('"')
|
||||
}
|
||||
}
|
||||
out.RawByte('}')
|
||||
}
|
||||
|
||||
|
@ -1202,7 +1182,6 @@ func (x *SessionToken_Body) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
first := true
|
||||
out.RawByte('{')
|
||||
{
|
||||
if len(x.Id) != 0 {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -1210,11 +1189,13 @@ func (x *SessionToken_Body) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
}
|
||||
const prefix string = "\"id\":"
|
||||
out.RawString(prefix)
|
||||
if x.Id != nil {
|
||||
out.Base64Bytes(x.Id)
|
||||
} else {
|
||||
out.String("")
|
||||
}
|
||||
}
|
||||
{
|
||||
if x.OwnerId != nil {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -1224,9 +1205,7 @@ func (x *SessionToken_Body) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
out.RawString(prefix)
|
||||
x.OwnerId.MarshalEasyJSON(out)
|
||||
}
|
||||
}
|
||||
{
|
||||
if x.Lifetime != nil {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -1236,9 +1215,7 @@ func (x *SessionToken_Body) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
out.RawString(prefix)
|
||||
x.Lifetime.MarshalEasyJSON(out)
|
||||
}
|
||||
}
|
||||
{
|
||||
if len(x.SessionKey) != 0 {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -1246,13 +1223,15 @@ func (x *SessionToken_Body) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
}
|
||||
const prefix string = "\"sessionKey\":"
|
||||
out.RawString(prefix)
|
||||
if x.SessionKey != nil {
|
||||
out.Base64Bytes(x.SessionKey)
|
||||
} else {
|
||||
out.String("")
|
||||
}
|
||||
}
|
||||
switch xx := x.Context.(type) {
|
||||
case *SessionToken_Body_Object:
|
||||
{
|
||||
if xx.Object != nil {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -1262,10 +1241,8 @@ func (x *SessionToken_Body) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
out.RawString(prefix)
|
||||
xx.Object.MarshalEasyJSON(out)
|
||||
}
|
||||
}
|
||||
case *SessionToken_Body_Container:
|
||||
{
|
||||
if xx.Container != nil {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -1276,7 +1253,6 @@ func (x *SessionToken_Body) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
xx.Container.MarshalEasyJSON(out)
|
||||
}
|
||||
}
|
||||
}
|
||||
out.RawByte('}')
|
||||
}
|
||||
|
||||
|
@ -1308,7 +1284,13 @@ func (x *SessionToken_Body) UnmarshalEasyJSON(in *jlexer.Lexer) {
|
|||
case "id":
|
||||
{
|
||||
var f []byte
|
||||
f = in.Bytes()
|
||||
{
|
||||
tmp := in.Bytes()
|
||||
if len(tmp) == 0 {
|
||||
tmp = nil
|
||||
}
|
||||
f = tmp
|
||||
}
|
||||
x.Id = f
|
||||
}
|
||||
case "ownerID":
|
||||
|
@ -1328,7 +1310,13 @@ func (x *SessionToken_Body) UnmarshalEasyJSON(in *jlexer.Lexer) {
|
|||
case "sessionKey":
|
||||
{
|
||||
var f []byte
|
||||
f = in.Bytes()
|
||||
{
|
||||
tmp := in.Bytes()
|
||||
if len(tmp) == 0 {
|
||||
tmp = nil
|
||||
}
|
||||
f = tmp
|
||||
}
|
||||
x.SessionKey = f
|
||||
}
|
||||
case "object":
|
||||
|
@ -1483,7 +1471,6 @@ func (x *SessionToken) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
first := true
|
||||
out.RawByte('{')
|
||||
{
|
||||
if x.Body != nil {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -1493,9 +1480,7 @@ func (x *SessionToken) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
out.RawString(prefix)
|
||||
x.Body.MarshalEasyJSON(out)
|
||||
}
|
||||
}
|
||||
{
|
||||
if x.Signature != nil {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -1505,7 +1490,6 @@ func (x *SessionToken) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
out.RawString(prefix)
|
||||
x.Signature.MarshalEasyJSON(out)
|
||||
}
|
||||
}
|
||||
out.RawByte('}')
|
||||
}
|
||||
|
||||
|
@ -1660,7 +1644,6 @@ func (x *XHeader) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
first := true
|
||||
out.RawByte('{')
|
||||
{
|
||||
if len(x.Key) != 0 {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -1670,9 +1653,7 @@ func (x *XHeader) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
out.RawString(prefix)
|
||||
out.String(x.Key)
|
||||
}
|
||||
}
|
||||
{
|
||||
if len(x.Value) != 0 {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -1682,7 +1663,6 @@ func (x *XHeader) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
out.RawString(prefix)
|
||||
out.String(x.Value)
|
||||
}
|
||||
}
|
||||
out.RawByte('}')
|
||||
}
|
||||
|
||||
|
@ -1973,7 +1953,6 @@ func (x *RequestMetaHeader) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
first := true
|
||||
out.RawByte('{')
|
||||
{
|
||||
if x.Version != nil {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -1983,9 +1962,7 @@ func (x *RequestMetaHeader) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
out.RawString(prefix)
|
||||
x.Version.MarshalEasyJSON(out)
|
||||
}
|
||||
}
|
||||
{
|
||||
if x.Epoch != 0 {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -1997,9 +1974,7 @@ func (x *RequestMetaHeader) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
out.Buffer.Buf = strconv.AppendUint(out.Buffer.Buf, x.Epoch, 10)
|
||||
out.RawByte('"')
|
||||
}
|
||||
}
|
||||
{
|
||||
if x.Ttl != 0 {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -2009,9 +1984,7 @@ func (x *RequestMetaHeader) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
out.RawString(prefix)
|
||||
out.Uint32(x.Ttl)
|
||||
}
|
||||
}
|
||||
{
|
||||
if len(x.XHeaders) != 0 {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -2028,9 +2001,7 @@ func (x *RequestMetaHeader) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
}
|
||||
out.RawByte(']')
|
||||
}
|
||||
}
|
||||
{
|
||||
if x.SessionToken != nil {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -2040,9 +2011,7 @@ func (x *RequestMetaHeader) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
out.RawString(prefix)
|
||||
x.SessionToken.MarshalEasyJSON(out)
|
||||
}
|
||||
}
|
||||
{
|
||||
if x.BearerToken != nil {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -2052,9 +2021,7 @@ func (x *RequestMetaHeader) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
out.RawString(prefix)
|
||||
x.BearerToken.MarshalEasyJSON(out)
|
||||
}
|
||||
}
|
||||
{
|
||||
if x.Origin != nil {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -2064,9 +2031,7 @@ func (x *RequestMetaHeader) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
out.RawString(prefix)
|
||||
x.Origin.MarshalEasyJSON(out)
|
||||
}
|
||||
}
|
||||
{
|
||||
if x.MagicNumber != 0 {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -2078,7 +2043,6 @@ func (x *RequestMetaHeader) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
out.Buffer.Buf = strconv.AppendUint(out.Buffer.Buf, x.MagicNumber, 10)
|
||||
out.RawByte('"')
|
||||
}
|
||||
}
|
||||
out.RawByte('}')
|
||||
}
|
||||
|
||||
|
@ -2398,7 +2362,6 @@ func (x *ResponseMetaHeader) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
first := true
|
||||
out.RawByte('{')
|
||||
{
|
||||
if x.Version != nil {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -2408,9 +2371,7 @@ func (x *ResponseMetaHeader) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
out.RawString(prefix)
|
||||
x.Version.MarshalEasyJSON(out)
|
||||
}
|
||||
}
|
||||
{
|
||||
if x.Epoch != 0 {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -2422,9 +2383,7 @@ func (x *ResponseMetaHeader) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
out.Buffer.Buf = strconv.AppendUint(out.Buffer.Buf, x.Epoch, 10)
|
||||
out.RawByte('"')
|
||||
}
|
||||
}
|
||||
{
|
||||
if x.Ttl != 0 {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -2434,9 +2393,7 @@ func (x *ResponseMetaHeader) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
out.RawString(prefix)
|
||||
out.Uint32(x.Ttl)
|
||||
}
|
||||
}
|
||||
{
|
||||
if len(x.XHeaders) != 0 {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -2453,9 +2410,7 @@ func (x *ResponseMetaHeader) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
}
|
||||
out.RawByte(']')
|
||||
}
|
||||
}
|
||||
{
|
||||
if x.Origin != nil {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -2465,9 +2420,7 @@ func (x *ResponseMetaHeader) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
out.RawString(prefix)
|
||||
x.Origin.MarshalEasyJSON(out)
|
||||
}
|
||||
}
|
||||
{
|
||||
if x.Status != nil {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -2477,7 +2430,6 @@ func (x *ResponseMetaHeader) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
out.RawString(prefix)
|
||||
x.Status.MarshalEasyJSON(out)
|
||||
}
|
||||
}
|
||||
out.RawByte('}')
|
||||
}
|
||||
|
||||
|
@ -2733,7 +2685,6 @@ func (x *RequestVerificationHeader) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
first := true
|
||||
out.RawByte('{')
|
||||
{
|
||||
if x.BodySignature != nil {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -2743,9 +2694,7 @@ func (x *RequestVerificationHeader) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
out.RawString(prefix)
|
||||
x.BodySignature.MarshalEasyJSON(out)
|
||||
}
|
||||
}
|
||||
{
|
||||
if x.MetaSignature != nil {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -2755,9 +2704,7 @@ func (x *RequestVerificationHeader) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
out.RawString(prefix)
|
||||
x.MetaSignature.MarshalEasyJSON(out)
|
||||
}
|
||||
}
|
||||
{
|
||||
if x.OriginSignature != nil {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -2767,9 +2714,7 @@ func (x *RequestVerificationHeader) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
out.RawString(prefix)
|
||||
x.OriginSignature.MarshalEasyJSON(out)
|
||||
}
|
||||
}
|
||||
{
|
||||
if x.Origin != nil {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -2779,7 +2724,6 @@ func (x *RequestVerificationHeader) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
out.RawString(prefix)
|
||||
x.Origin.MarshalEasyJSON(out)
|
||||
}
|
||||
}
|
||||
out.RawByte('}')
|
||||
}
|
||||
|
||||
|
@ -3000,7 +2944,6 @@ func (x *ResponseVerificationHeader) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
first := true
|
||||
out.RawByte('{')
|
||||
{
|
||||
if x.BodySignature != nil {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -3010,9 +2953,7 @@ func (x *ResponseVerificationHeader) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
out.RawString(prefix)
|
||||
x.BodySignature.MarshalEasyJSON(out)
|
||||
}
|
||||
}
|
||||
{
|
||||
if x.MetaSignature != nil {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -3022,9 +2963,7 @@ func (x *ResponseVerificationHeader) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
out.RawString(prefix)
|
||||
x.MetaSignature.MarshalEasyJSON(out)
|
||||
}
|
||||
}
|
||||
{
|
||||
if x.OriginSignature != nil {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -3034,9 +2973,7 @@ func (x *ResponseVerificationHeader) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
out.RawString(prefix)
|
||||
x.OriginSignature.MarshalEasyJSON(out)
|
||||
}
|
||||
}
|
||||
{
|
||||
if x.Origin != nil {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -3046,7 +2983,6 @@ func (x *ResponseVerificationHeader) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
out.RawString(prefix)
|
||||
x.Origin.MarshalEasyJSON(out)
|
||||
}
|
||||
}
|
||||
out.RawByte('}')
|
||||
}
|
||||
|
||||
|
|
|
@ -46,10 +46,6 @@ func serviceMessageBody(req any) stableMarshaler {
|
|||
return v.GetBody()
|
||||
case *container.ListResponse:
|
||||
return v.GetBody()
|
||||
case *container.ListStreamRequest:
|
||||
return v.GetBody()
|
||||
case *container.ListStreamResponse:
|
||||
return v.GetBody()
|
||||
|
||||
/* Object */
|
||||
case *object.PutRequest:
|
||||
|
|
20
status/grpc/types_frostfs.pb.go
generated
20
status/grpc/types_frostfs.pb.go
generated
|
@ -371,7 +371,6 @@ func (x *Status_Detail) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
first := true
|
||||
out.RawByte('{')
|
||||
{
|
||||
if x.Id != 0 {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -381,9 +380,7 @@ func (x *Status_Detail) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
out.RawString(prefix)
|
||||
out.Uint32(x.Id)
|
||||
}
|
||||
}
|
||||
{
|
||||
if len(x.Value) != 0 {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -391,7 +388,10 @@ func (x *Status_Detail) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
}
|
||||
const prefix string = "\"value\":"
|
||||
out.RawString(prefix)
|
||||
if x.Value != nil {
|
||||
out.Base64Bytes(x.Value)
|
||||
} else {
|
||||
out.String("")
|
||||
}
|
||||
}
|
||||
out.RawByte('}')
|
||||
|
@ -439,7 +439,13 @@ func (x *Status_Detail) UnmarshalEasyJSON(in *jlexer.Lexer) {
|
|||
case "value":
|
||||
{
|
||||
var f []byte
|
||||
f = in.Bytes()
|
||||
{
|
||||
tmp := in.Bytes()
|
||||
if len(tmp) == 0 {
|
||||
tmp = nil
|
||||
}
|
||||
f = tmp
|
||||
}
|
||||
x.Value = f
|
||||
}
|
||||
}
|
||||
|
@ -580,7 +586,6 @@ func (x *Status) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
first := true
|
||||
out.RawByte('{')
|
||||
{
|
||||
if x.Code != 0 {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -590,9 +595,7 @@ func (x *Status) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
out.RawString(prefix)
|
||||
out.Uint32(x.Code)
|
||||
}
|
||||
}
|
||||
{
|
||||
if len(x.Message) != 0 {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -602,9 +605,7 @@ func (x *Status) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
out.RawString(prefix)
|
||||
out.String(x.Message)
|
||||
}
|
||||
}
|
||||
{
|
||||
if len(x.Details) != 0 {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -621,7 +622,6 @@ func (x *Status) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
}
|
||||
out.RawByte(']')
|
||||
}
|
||||
}
|
||||
out.RawByte('}')
|
||||
}
|
||||
|
||||
|
|
16
tombstone/grpc/types_frostfs.pb.go
generated
16
tombstone/grpc/types_frostfs.pb.go
generated
|
@ -144,7 +144,6 @@ func (x *Tombstone) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
first := true
|
||||
out.RawByte('{')
|
||||
{
|
||||
if x.ExpirationEpoch != 0 {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -156,9 +155,7 @@ func (x *Tombstone) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
out.Buffer.Buf = strconv.AppendUint(out.Buffer.Buf, x.ExpirationEpoch, 10)
|
||||
out.RawByte('"')
|
||||
}
|
||||
}
|
||||
{
|
||||
if len(x.SplitId) != 0 {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -166,11 +163,13 @@ func (x *Tombstone) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
}
|
||||
const prefix string = "\"splitID\":"
|
||||
out.RawString(prefix)
|
||||
if x.SplitId != nil {
|
||||
out.Base64Bytes(x.SplitId)
|
||||
} else {
|
||||
out.String("")
|
||||
}
|
||||
}
|
||||
{
|
||||
if len(x.Members) != 0 {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
} else {
|
||||
|
@ -187,7 +186,6 @@ func (x *Tombstone) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
}
|
||||
out.RawByte(']')
|
||||
}
|
||||
}
|
||||
out.RawByte('}')
|
||||
}
|
||||
|
||||
|
@ -233,7 +231,13 @@ func (x *Tombstone) UnmarshalEasyJSON(in *jlexer.Lexer) {
|
|||
case "splitID":
|
||||
{
|
||||
var f []byte
|
||||
f = in.Bytes()
|
||||
{
|
||||
tmp := in.Bytes()
|
||||
if len(tmp) == 0 {
|
||||
tmp = nil
|
||||
}
|
||||
f = tmp
|
||||
}
|
||||
x.SplitId = f
|
||||
}
|
||||
case "members":
|
||||
|
|
Loading…
Add table
Reference in a new issue