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

remotes/KirillovDenis/bugfix/681-fix_acl_parsing
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,