forked from TrueCloudLab/frostfs-api-go
291d512840
After recent changes PrivateToken cannot directly return public key bytes. In order to provide this ability, this commit implements a function over PrivateToken interface.
19 lines
795 B
Go
19 lines
795 B
Go
package session
|
|
|
|
import "github.com/nspcc-dev/neofs-api-go/internal"
|
|
|
|
// ErrNilCreateParamsSource is returned by functions that expect a non-nil
|
|
// CreateParamsSource, but received nil.
|
|
const ErrNilCreateParamsSource = internal.Error("create params source is nil")
|
|
|
|
// ErrNilGPRCClientConn is returned by functions that expect a non-nil
|
|
// grpc.ClientConn, but received nil.
|
|
const ErrNilGPRCClientConn = internal.Error("gRPC client connection is nil")
|
|
|
|
// ErrPrivateTokenNotFound is returned when addressed private token was
|
|
// not found in storage.
|
|
const ErrPrivateTokenNotFound = internal.Error("private token not found")
|
|
|
|
// ErrNilPrivateToken is returned by functions that expect a non-nil
|
|
// PrivateToken, but received nil.
|
|
const ErrNilPrivateToken = internal.Error("private token is nil")
|