Rename GetNeoFSKey(Public/Private)Key to GetNeoFS(Public/Private)Key

This commit is contained in:
Pavel Korotkov 2020-07-21 12:44:25 +03:00
parent ea7286c875
commit 3870f59484
3 changed files with 5 additions and 5 deletions

View file

@ -73,11 +73,11 @@ func (center *Center) SetNeoFSKeys(key *ecdsa.PrivateKey) error {
return nil
}
func (center *Center) GetNeoFSKeyPrivateKey() *ecdsa.PrivateKey {
func (center *Center) GetNeoFSPrivateKey() *ecdsa.PrivateKey {
return center.neofsKeys.PrivateKey
}
func (center *Center) GetNeoFSKeyPublicKey() *ecdsa.PublicKey {
func (center *Center) GetNeoFSPublicKey() *ecdsa.PublicKey {
return center.neofsKeys.PublicKey
}

View file

@ -83,7 +83,7 @@ func newApp(l *zap.Logger, v *viper.Viper) *App {
Peers: fetchPeers(l, v),
Logger: l,
PrivateKey: center.GetNeoFSKeyPrivateKey(),
PrivateKey: center.GetNeoFSPrivateKey(),
GRPCLogger: gRPCLogger(l),
GRPCVerbose: v.GetBool(cfgGRPCVerbose),

View file

@ -48,7 +48,7 @@ func NewLayer(log *zap.Logger, cli pool.Client, center *s3auth.Center) (minio.Ob
defer cancel()
token, err := generateToken(ctx, tokenParams{
cli: cli,
key: center.GetNeoFSKeyPrivateKey(),
key: center.GetNeoFSPrivateKey(),
until: math.MaxInt64,
})
if err != nil {
@ -56,7 +56,7 @@ func NewLayer(log *zap.Logger, cli pool.Client, center *s3auth.Center) (minio.Ob
}
return &neofsObject{
cli: cli,
key: center.GetNeoFSKeyPrivateKey(),
key: center.GetNeoFSPrivateKey(),
log: log,
owner: center.GetOwnerID(),
token: token,