forked from TrueCloudLab/frostfs-s3-gw
Rename GetNeoFSKey(Public/Private)Key to GetNeoFS(Public/Private)Key
This commit is contained in:
parent
ea7286c875
commit
3870f59484
3 changed files with 5 additions and 5 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
@ -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),
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue