Compare commits
1 Commits
v1.1.3
..
7a20e43e6b
| Author | SHA1 | Date | |
|---|---|---|---|
| 7a20e43e6b |
@@ -51,6 +51,7 @@ func New(conn ssh.Conn, forwarder Forwarder, slugManager slug.Slug, port portUti
|
|||||||
|
|
||||||
type Lifecycle interface {
|
type Lifecycle interface {
|
||||||
Connection() ssh.Conn
|
Connection() ssh.Conn
|
||||||
|
Channel() ssh.Channel
|
||||||
PortRegistry() portUtil.Registry
|
PortRegistry() portUtil.Registry
|
||||||
User() string
|
User() string
|
||||||
SetChannel(channel ssh.Channel)
|
SetChannel(channel ssh.Channel)
|
||||||
@@ -68,6 +69,10 @@ func (l *lifecycle) User() string {
|
|||||||
return l.user
|
return l.user
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (l *lifecycle) Channel() ssh.Channel {
|
||||||
|
return l.channel
|
||||||
|
}
|
||||||
|
|
||||||
func (l *lifecycle) SetChannel(channel ssh.Channel) {
|
func (l *lifecycle) SetChannel(channel ssh.Channel) {
|
||||||
l.channel = channel
|
l.channel = channel
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user