/
githubmirror
/
client
Обзор
Документация
Войти
/
githubmirror
/
client
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
go/service/gpg.go
53 строки
2 KB
zoom-ua
remove golang.org/x/net/context in favor of context (#28708)
17 дек 2025, 18:24
Не верифицирован
17 дек 2025, 18:24
67b0ffe
Код
Авторство
О чём код?
// Copyright 2015 Keybase, Inc. All rights reserved. Use of // this source code is governed by the included BSD license. package service import ( "context" keybase1 "github.com/keybase/client/go/protocol/keybase1" "github.com/keybase/go-framed-msgpack-rpc/rpc" ) type RemoteGPGUI struct { sessionID int uicli keybase1.GpgUiClient } func NewRemoteGPGUI(sessionID int, c *rpc.Client) *RemoteGPGUI { return &RemoteGPGUI{ sessionID: sessionID, uicli: keybase1.GpgUiClient{Cli: c}, } } func (r *RemoteGPGUI) SelectKey(ctx context.Context, arg keybase1.SelectKeyArg) (string, error) { arg.SessionID = r.sessionID return r.uicli.SelectKey(ctx, arg) } func (r *RemoteGPGUI) SelectKeyAndPushOption(ctx context.Context, arg keybase1.SelectKeyAndPushOptionArg) (keybase1.SelectKeyRes, error) { arg.SessionID = r.sessionID return r.uicli.SelectKeyAndPushOption(ctx, arg) } func (r *RemoteGPGUI) WantToAddGPGKey(ctx context.Context, _ int) (bool, error) { return r.uicli.WantToAddGPGKey(ctx, r.sessionID) } func (r *RemoteGPGUI) ConfirmDuplicateKeyChosen(ctx context.Context, _ int) (bool, error) { return r.uicli.ConfirmDuplicateKeyChosen(ctx, r.sessionID) } func (r *RemoteGPGUI) ConfirmImportSecretToExistingKey(ctx context.Context, _ int) (bool, error) { return r.uicli.ConfirmImportSecretToExistingKey(ctx, r.sessionID) } func (r *RemoteGPGUI) Sign(ctx context.Context, arg keybase1.SignArg) (string, error) { return r.uicli.Sign(ctx, arg) } func (r *RemoteGPGUI) GetTTY(ctx context.Context) (string, error) { return r.uicli.GetTTY(ctx) }