Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/StanfordSNR/guardian-agent
/ functions
Functions
74 in github.com/StanfordSNR/guardian-agent
⨍
Functions
74
◇
Types & classes
30
↓ 17 callers
Method
Close
()
delegated_client.go:98
↓ 13 callers
Method
Close
()
sshfwd.go:175
↓ 9 callers
Method
Inform
(msg string)
ui.go:19
↓ 8 callers
Function
WriteControlPacket
(w io.Writer, msgNum byte, payload []byte)
common.go:133
↓ 4 callers
Method
Accept
()
sshfwd.go:149
↓ 4 callers
Function
ReadControlPacket
(r io.Reader)
common.go:114
↓ 3 callers
Method
Close
()
delegated_client.go:89
↓ 3 callers
Method
CloseWrite
()
delegated_client.go:310
↓ 3 callers
Method
Write
(b []byte)
common.go:108
↓ 2 callers
Method
AllowAll
(scope Scope)
store.go:96
↓ 2 callers
Method
Ask
(prompt Prompt)
ui.go:17
↓ 2 callers
Method
AskPassword
(msg string)
ui.go:21
↓ 2 callers
Function
HostKeyCallback
(hostname string, remote net.Addr, key ssh.PublicKey, ui UI)
common.go:241
↓ 2 callers
Method
Save
()
store.go:53
↓ 2 callers
Function
UserTempDir
()
common.go:161
↓ 2 callers
Method
connectToServer
()
delegated_client.go:313
↓ 2 callers
Function
getAuth
(username string, host string, homeDir string, ui UI)
common.go:300
↓ 2 callers
Method
resume
()
delegated_client.go:231
↓ 2 callers
Method
startCommand
(conn *ssh.Client, cmd string)
delegated_client.go:114
↓ 1 callers
Method
Alert
(msg string)
ui.go:20
↓ 1 callers
Method
AllowCommand
(scope Scope, cmd string)
store.go:111
↓ 1 callers
Method
AreAllAllowed
(scope Scope)
store.go:150
↓ 1 callers
Method
Ask
(params Prompt)
ui.go:55
↓ 1 callers
Method
BytesRead
()
common.go:94
↓ 1 callers
Method
BytesWritten
()
common.go:98
↓ 1 callers
Method
Confirm
(msg string)
ui.go:18
↓ 1 callers
Function
CreateSocket
(name string)
socket.go:14
↓ 1 callers
Method
HandleConnection
(conn net.Conn)
agent.go:92
↓ 1 callers
Method
IsAllowed
(scope Scope, cmd string)
store.go:131
↓ 1 callers
Function
NewAskPassUI
()
ui.go:113
↓ 1 callers
Function
NewStore
(configPath string)
store.go:25
↓ 1 callers
Method
RemoteAddr
()
common.go:87
↓ 1 callers
Method
RequestApproval
(scope Scope, cmd string)
policy.go:13
↓ 1 callers
Method
RequestApprovalForAllCommands
(scope Scope)
policy.go:58
↓ 1 callers
Method
SetupForwarding
()
sshfwd.go:38
↓ 1 callers
Function
UserRuntimeDir
()
common.go:173
↓ 1 callers
Method
connectToAgent
()
delegated_client.go:45
↓ 1 callers
Function
fallbackResolveRemote
(opts *options, userAndHost string)
cmd/sga-ssh/sga-ssh.go:188
↓ 1 callers
Function
formatPrompt
(params Prompt)
ui.go:36
↓ 1 callers
Function
getHandoffNextTransportByte
(control net.Conn)
delegated_client.go:260
↓ 1 callers
Function
getKeyFileAuth
(keyPath string, ui UI)
common.go:270
↓ 1 callers
Method
handleExecutionRequest
(conn net.Conn, scope Scope, cmd string)
agent.go:134
↓ 1 callers
Method
load
()
store.go:35
↓ 1 callers
Function
mapToChoice
(vs []string)
ui.go:47
↓ 1 callers
Function
md5String
md5String returns a formatted string representing the given md5Sum in hex
common.go:235
↓ 1 callers
Method
proxySSH
(scope Scope, toClient net.Conn, toServer net.Conn, control net.Conn, fil *ssh.Filter)
agent.go:54
↓ 1 callers
Function
putHostKey
Adapted from https://github.com/coreos/fleet/blob/master/ssh/known_hosts.go
common.go:192
↓ 1 callers
Function
renderHostLine
(addr string, key ssh.PublicKey)
common.go:212
↓ 1 callers
Function
resolveRemote
(parser *flags.Parser, opts *options, userAndHost string)
cmd/sga-ssh/sga-ssh.go:158
↓ 1 callers
Method
runDelegated
()
delegated_client.go:405
↓ 1 callers
Method
runDirect
()
delegated_client.go:354
↓ 1 callers
Function
syncBufferedTraffic
(bufferedTraffic *bytes.Buffer, bufferedOffset int, handoffByte uint32)
delegated_client.go:288
Method
Alert
(msg string)
ui.go:88
Method
Alert
(msg string)
ui.go:143
Method
Ask
(params Prompt)
ui.go:122
Method
AskPassword
(msg string)
ui.go:95
Method
AskPassword
(msg string)
ui.go:148
Method
Confirm
(msg string)
ui.go:107
Method
Confirm
(msg string)
ui.go:157
Function
CreateSocket
(name string)
socket_windows.go:16
Method
Inform
(msg string)
ui.go:81
Method
Inform
(msg string)
ui.go:139
Method
MarshalJSON
()
store.go:69
Function
NewGuardian
(policyConfigPath string, inType InputType)
agent.go:30
Method
Read
(p []byte)
common.go:102
Function
ReplaceSSHAuthSockEnv
(env []string, newVal string)
common.go:147
Method
RunLocal
(cmd string)
sshfwd.go:140
Method
RunRemote
(cmd string)
sshfwd.go:125
Function
RunSSHCommand
Run starts a delegated session.
delegated_client.go:345
Method
UnmarshalJSON
(b []byte)
store.go:82
Method
Write
(p []byte)
delegated_client.go:77
Function
main
()
cmd/sga-guard-bin/sga-guard-bin.go:36
Function
main
()
cmd/sga-stub/sga-stub.go:13
Function
main
()
cmd/sga-ssh/sga-ssh.go:48