forked from TrueCloudLab/frostfs-api-go
Synchronize namings with NeoFS API v2.6.0
Signed-off-by: Alex Vanin <alexey@nspcc.ru>
This commit is contained in:
parent
fcb2cce8a0
commit
099347d3bc
13 changed files with 586 additions and 577 deletions
|
@ -5,119 +5,119 @@ import (
|
|||
)
|
||||
|
||||
// SetEpoch sets epoch in which the trust was assessed.
|
||||
func (x *SendLocalTrustRequest_Body) SetEpoch(v uint64) {
|
||||
func (x *AnnounceLocalTrustRequest_Body) SetEpoch(v uint64) {
|
||||
if x != nil {
|
||||
x.Epoch = v
|
||||
}
|
||||
}
|
||||
|
||||
// SetTrusts sets list of normalized trust values.
|
||||
func (x *SendLocalTrustRequest_Body) SetTrusts(v []*Trust) {
|
||||
func (x *AnnounceLocalTrustRequest_Body) SetTrusts(v []*Trust) {
|
||||
if x != nil {
|
||||
x.Trusts = v
|
||||
}
|
||||
}
|
||||
|
||||
// SetBody sets body of the request.
|
||||
func (x *SendLocalTrustRequest) SetBody(v *SendLocalTrustRequest_Body) {
|
||||
func (x *AnnounceLocalTrustRequest) SetBody(v *AnnounceLocalTrustRequest_Body) {
|
||||
if x != nil {
|
||||
x.Body = v
|
||||
}
|
||||
}
|
||||
|
||||
// SetMetaHeader sets meta header of the request.
|
||||
func (x *SendLocalTrustRequest) SetMetaHeader(v *session.RequestMetaHeader) {
|
||||
func (x *AnnounceLocalTrustRequest) SetMetaHeader(v *session.RequestMetaHeader) {
|
||||
if x != nil {
|
||||
x.MetaHeader = v
|
||||
}
|
||||
}
|
||||
|
||||
// SetVerifyHeader sets verification header of the request.
|
||||
func (x *SendLocalTrustRequest) SetVerifyHeader(v *session.RequestVerificationHeader) {
|
||||
func (x *AnnounceLocalTrustRequest) SetVerifyHeader(v *session.RequestVerificationHeader) {
|
||||
if x != nil {
|
||||
x.VerifyHeader = v
|
||||
}
|
||||
}
|
||||
|
||||
// SetBody sets body of the response.
|
||||
func (x *SendLocalTrustResponse) SetBody(v *SendLocalTrustResponse_Body) {
|
||||
func (x *AnnounceLocalTrustResponse) SetBody(v *AnnounceLocalTrustResponse_Body) {
|
||||
if x != nil {
|
||||
x.Body = v
|
||||
}
|
||||
}
|
||||
|
||||
// SetMetaHeader sets meta header of the response.
|
||||
func (x *SendLocalTrustResponse) SetMetaHeader(v *session.ResponseMetaHeader) {
|
||||
func (x *AnnounceLocalTrustResponse) SetMetaHeader(v *session.ResponseMetaHeader) {
|
||||
if x != nil {
|
||||
x.MetaHeader = v
|
||||
}
|
||||
}
|
||||
|
||||
// SetVerifyHeader sets verification header of the response.
|
||||
func (x *SendLocalTrustResponse) SetVerifyHeader(v *session.ResponseVerificationHeader) {
|
||||
func (x *AnnounceLocalTrustResponse) SetVerifyHeader(v *session.ResponseVerificationHeader) {
|
||||
if x != nil {
|
||||
x.VerifyHeader = v
|
||||
}
|
||||
}
|
||||
|
||||
// SetEpoch sets epoch in which the intermediate trust was assessed.
|
||||
func (x *SendIntermediateResultRequest_Body) SetEpoch(v uint64) {
|
||||
func (x *AnnounceIntermediateResultRequest_Body) SetEpoch(v uint64) {
|
||||
if x != nil {
|
||||
x.Epoch = v
|
||||
}
|
||||
}
|
||||
|
||||
// SetIteration sets sequence number of the iteration.
|
||||
func (x *SendIntermediateResultRequest_Body) SetIteration(v uint32) {
|
||||
func (x *AnnounceIntermediateResultRequest_Body) SetIteration(v uint32) {
|
||||
if x != nil {
|
||||
x.Iteration = v
|
||||
}
|
||||
}
|
||||
|
||||
// SetTrust sets current global trust value.
|
||||
func (x *SendIntermediateResultRequest_Body) SetTrust(v *PeerToPeerTrust) {
|
||||
func (x *AnnounceIntermediateResultRequest_Body) SetTrust(v *PeerToPeerTrust) {
|
||||
if x != nil {
|
||||
x.Trust = v
|
||||
}
|
||||
}
|
||||
|
||||
// SetBody sets body of the request.
|
||||
func (x *SendIntermediateResultRequest) SetBody(v *SendIntermediateResultRequest_Body) {
|
||||
func (x *AnnounceIntermediateResultRequest) SetBody(v *AnnounceIntermediateResultRequest_Body) {
|
||||
if x != nil {
|
||||
x.Body = v
|
||||
}
|
||||
}
|
||||
|
||||
// SetMetaHeader sets meta header of the request.
|
||||
func (x *SendIntermediateResultRequest) SetMetaHeader(v *session.RequestMetaHeader) {
|
||||
func (x *AnnounceIntermediateResultRequest) SetMetaHeader(v *session.RequestMetaHeader) {
|
||||
if x != nil {
|
||||
x.MetaHeader = v
|
||||
}
|
||||
}
|
||||
|
||||
// SetVerifyHeader sets verification header of the request.
|
||||
func (x *SendIntermediateResultRequest) SetVerifyHeader(v *session.RequestVerificationHeader) {
|
||||
func (x *AnnounceIntermediateResultRequest) SetVerifyHeader(v *session.RequestVerificationHeader) {
|
||||
if x != nil {
|
||||
x.VerifyHeader = v
|
||||
}
|
||||
}
|
||||
|
||||
// SetBody sets body of the response.
|
||||
func (x *SendIntermediateResultResponse) SetBody(v *SendIntermediateResultResponse_Body) {
|
||||
func (x *AnnounceIntermediateResultResponse) SetBody(v *AnnounceIntermediateResultResponse_Body) {
|
||||
if x != nil {
|
||||
x.Body = v
|
||||
}
|
||||
}
|
||||
|
||||
// SetMetaHeader sets meta header of the response.
|
||||
func (x *SendIntermediateResultResponse) SetMetaHeader(v *session.ResponseMetaHeader) {
|
||||
func (x *AnnounceIntermediateResultResponse) SetMetaHeader(v *session.ResponseMetaHeader) {
|
||||
if x != nil {
|
||||
x.MetaHeader = v
|
||||
}
|
||||
}
|
||||
|
||||
// SetVerifyHeader sets verification header of the response.
|
||||
func (x *SendIntermediateResultResponse) SetVerifyHeader(v *session.ResponseVerificationHeader) {
|
||||
func (x *AnnounceIntermediateResultResponse) SetVerifyHeader(v *session.ResponseVerificationHeader) {
|
||||
if x != nil {
|
||||
x.VerifyHeader = v
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue