frostfs-api-go/session
Leonard Lyubich dfc2dd8a78 session: replace PToken structure with PrivateToken interface
In previous implementation PToken contained the full Token structure.
Since private token is used for data signature only, storing unused
fields of a user token is impractical. To emphasize the purpose of
the private part of the session, it makes sense to provide the user
of the session package with its interface. The interface will only provide
the functionality of data signing with private session key.

This commit:

  * removes PToken structure from session package;

  * defines PrivateToken interface of private session part;

  * adds the implementation of PrivateToken on unexported struct;

  * provides the constructor that generates session key internally.
2020-04-29 11:52:05 +03:00
..
private.go session: replace PToken structure with PrivateToken interface 2020-04-29 11:52:05 +03:00
private_test.go session: replace PToken structure with PrivateToken interface 2020-04-29 11:52:05 +03:00
service.go session: replace PToken structure with PrivateToken interface 2020-04-29 11:52:05 +03:00
service.pb.go Update to neofs-api v0.7.2 2020-04-28 12:50:52 +03:00
service.proto Update to neofs-api v0.7.2 2020-04-28 12:50:52 +03:00
store.go session: replace PToken structure with PrivateToken interface 2020-04-29 11:52:05 +03:00
store_test.go Resolve update conflicts 2020-04-28 13:33:43 +03:00
types.go session: replace PToken structure with PrivateToken interface 2020-04-29 11:52:05 +03:00