...
1 package eagateway
2
3 import (
4 "context"
5
6 "edge-infra.dev/pkg/sds/emergencyaccess/msgdata"
7 "edge-infra.dev/pkg/sds/emergencyaccess/remotecli"
8 )
9
10 type RemoteCLI interface {
11 Send(ctx context.Context, userID, sessionID, commandID string, request msgdata.Request, opts ...remotecli.RCLIOption) error
12 StartSession(ctx context.Context, sessionID string, displayChan chan<- msgdata.CommandResponse, target remotecli.Target, opts ...remotecli.RCLIOption) error
13 EndSession(ctx context.Context, sessionID string) error
14 }
15
16 type Authorization struct {
17 UserID string
18 EAroles []string
19 }
20
21 type CommandValidation struct {
22 Valid bool `json:"valid"`
23 }
24
View as plain text