frostfs-sdk-go/client
Roman Khimov 2e18c3c16d client: replace client.Init() with New()
We'll need to check initialization parameters for consistency and Init doesn't
return any error, therefore it's easier to use smth.New() pattern and simplify
things a bit because uninited Client is not very useful anyway (we require
Init and there can be additional reasons for that in the future).

Refs. #164.

Signed-off-by: Roman Khimov <roman@nspcc.ru>
2023-05-22 17:03:10 +03:00
..
status client: Fix error checking for go 1.18-19 2023-05-19 12:19:20 +04:00
accounting.go client: Replace panics with errors 2023-05-19 14:45:48 +04:00
api.go client: Set contextCall.err if missed session params 2023-05-15 07:45:06 +04:00
client.go client: replace client.Init() with New() 2023-05-22 17:03:10 +03:00
client_test.go client: replace client.Init() with New() 2023-05-22 17:03:10 +03:00
common.go client: Replace panics with errors 2023-05-19 14:45:48 +04:00
container.go client: Replace panics with errors 2023-05-19 14:45:48 +04:00
doc.go client: replace client.Init() with New() 2023-05-22 17:03:10 +03:00
errors.go client: Make MissingField error exported 2023-05-19 14:45:50 +04:00
errors_test.go client: Replace panics with errors in sign logic 2023-05-19 14:45:49 +04:00
example_container_put_test.go client: replace client.Init() with New() 2023-05-22 17:03:10 +03:00
netmap.go *: Update documentation 2023-05-19 14:45:50 +04:00
netmap_test.go client: replace client.Init() with New() 2023-05-22 17:03:10 +03:00
object_delete.go client: Replace panics with errors 2023-05-19 14:45:48 +04:00
object_delete_test.go client: Accept oid.Address into PrmObjectHash, PrmObjectDelete, PrmObjectGet 2023-05-05 12:17:12 +04:00
object_get.go client: Replace panics with errors 2023-05-19 14:45:48 +04:00
object_get_test.go client: Accept rng object.Range into PrmObjectRange 2023-05-05 12:17:21 +04:00
object_hash.go *: Update documentation 2023-05-19 14:45:50 +04:00
object_hash_test.go client: Accept oid.Address into PrmObjectHash, PrmObjectDelete, PrmObjectGet 2023-05-05 12:17:12 +04:00
object_put.go client: Remove MissingContext panic 2023-05-19 14:30:01 +04:00
object_search.go client: Replace panics with errors 2023-05-19 14:45:48 +04:00
object_search_test.go client: Replace panics with errors in sign logic 2023-05-19 14:45:49 +04:00
reputation.go client: Replace panics with errors 2023-05-19 14:45:48 +04:00
response.go [#137] pool: simplify session creation 2022-04-07 13:33:16 +03:00
session.go client: Replace panics with errors 2023-05-19 14:45:48 +04:00
session_test.go client: replace client.Init() with New() 2023-05-22 17:03:10 +03:00
sign.go client: Replace panics with errors in sign logic 2023-05-19 14:45:49 +04:00
sign_test.go tests: Use dedicated function to generate signers in tests 2023-04-26 15:03:55 +04:00