github.com/keybase/client/go@v0.0.0-20241007131713-f10651d043c8/service/remote_teams_ui.go (about) 1 package service 2 3 import ( 4 "golang.org/x/net/context" 5 6 "github.com/keybase/client/go/protocol/keybase1" 7 "github.com/keybase/go-framed-msgpack-rpc/rpc" 8 ) 9 10 type RemoteTeamsUI struct { 11 sessionID int 12 cli keybase1.TeamsUiClient 13 } 14 15 var _ keybase1.TeamsUiInterface = (*RemoteTeamsUI)(nil) 16 17 func NewRemoteTeamsUI(sessionID int, c *rpc.Client) *RemoteTeamsUI { 18 return &RemoteTeamsUI{ 19 sessionID: sessionID, 20 cli: keybase1.TeamsUiClient{Cli: c}, 21 } 22 } 23 24 func (r *RemoteTeamsUI) ConfirmRootTeamDelete(ctx context.Context, arg keybase1.ConfirmRootTeamDeleteArg) (bool, error) { 25 arg.SessionID = r.sessionID 26 return r.cli.ConfirmRootTeamDelete(ctx, arg) 27 } 28 29 func (r *RemoteTeamsUI) ConfirmSubteamDelete(ctx context.Context, arg keybase1.ConfirmSubteamDeleteArg) (bool, error) { 30 arg.SessionID = r.sessionID 31 return r.cli.ConfirmSubteamDelete(ctx, arg) 32 } 33 34 func (r *RemoteTeamsUI) ConfirmInviteLinkAccept(ctx context.Context, arg keybase1.ConfirmInviteLinkAcceptArg) (bool, error) { 35 arg.SessionID = r.sessionID 36 return r.cli.ConfirmInviteLinkAccept(ctx, arg) 37 }