forked from TrueCloudLab/frostfs-sdk-go
[#111] client: Add comments to client's public methods
Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
This commit is contained in:
parent
09f7df10ed
commit
543291f8c5
6 changed files with 75 additions and 1 deletions
|
@ -42,6 +42,10 @@ type AnnounceLocalTrustRes struct {
|
|||
statusRes
|
||||
}
|
||||
|
||||
// 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.
|
||||
func (c *Client) AnnounceLocalTrust(ctx context.Context, prm AnnounceLocalTrustPrm, opts ...CallOption) (*AnnounceLocalTrustRes, error) {
|
||||
// apply all available options
|
||||
callOptions := c.defaultCallOptions()
|
||||
|
@ -133,6 +137,10 @@ type AnnounceIntermediateTrustRes struct {
|
|||
statusRes
|
||||
}
|
||||
|
||||
// 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.
|
||||
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