MCPcopy
hub / github.com/tailscale/tailscale / newSSHRule

Function newSSHRule

ssh/tailssh/tailssh_test.go:467–479  ·  view source on GitHub ↗
(action *tailcfg.SSHAction)

Source from the content-addressed store, hash-verified

465}
466
467func newSSHRule(action *tailcfg.SSHAction) *tailcfg.SSHRule {
468 return &tailcfg.SSHRule{
469 SSHUsers: map[string]string{
470 "alice": currentUser,
471 },
472 Action: action,
473 Principals: []*tailcfg.SSHPrincipal{
474 {
475 Any: true,
476 },
477 },
478 }
479}
480
481func TestSSHRecordingCancelsSessionsOnUploadFailure(t *testing.T) {
482 if runtime.GOOS == "darwin" {

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…