forked from TrueCloudLab/frostfs-sdk-go
[#114] client: Fix comments according to new option
Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
This commit is contained in:
parent
2a6fe47e5e
commit
ecb441639e
5 changed files with 76 additions and 38 deletions
|
@ -44,8 +44,10 @@ type AnnounceLocalTrustRes struct {
|
|||
|
||||
// AnnounceLocalTrust announces node's local trusts through NeoFS API call.
|
||||
//
|
||||
// Any client's internal or transport errors are returned as error,
|
||||
// NeoFS status codes are included in the returned results.
|
||||
// Any client's internal or transport errors are returned as `error`.
|
||||
// If WithNeoFSErrorParsing option has been provided, unsuccessful
|
||||
// NeoFS status codes are returned as `error`, otherwise, are included
|
||||
// in the returned result structure.
|
||||
func (c *Client) AnnounceLocalTrust(ctx context.Context, prm AnnounceLocalTrustPrm, opts ...CallOption) (*AnnounceLocalTrustRes, error) {
|
||||
// apply all available options
|
||||
callOptions := c.defaultCallOptions()
|
||||
|
@ -139,8 +141,10 @@ type AnnounceIntermediateTrustRes struct {
|
|||
|
||||
// AnnounceIntermediateTrust announces node's intermediate trusts through NeoFS API call.
|
||||
//
|
||||
// Any client's internal or transport errors are returned as error,
|
||||
// NeoFS status codes are included in the returned results.
|
||||
// Any client's internal or transport errors are returned as `error`.
|
||||
// If WithNeoFSErrorParsing option has been provided, unsuccessful
|
||||
// NeoFS status codes are returned as `error`, otherwise, are included
|
||||
// in the returned result structure.
|
||||
func (c *Client) AnnounceIntermediateTrust(ctx context.Context, prm AnnounceIntermediateTrustPrm, opts ...CallOption) (*AnnounceIntermediateTrustRes, error) {
|
||||
// apply all available options
|
||||
callOptions := c.defaultCallOptions()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue