Documentation ¶
Overview ¶
Package sshenv provides functionality for handling SSH environment variables
Index ¶
Constants ¶
View Source
const ( // GitProtocolEnv defines the ENV name holding the git protocol used GitProtocolEnv = "GIT_PROTOCOL" // SSHConnectionEnv defines the ENV holding the SSH connection SSHConnectionEnv = "SSH_CONNECTION" // SSHOriginalCommandEnv defines the ENV containing the original SSH command SSHOriginalCommandEnv = "SSH_ORIGINAL_COMMAND" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Env ¶
type Env struct { GitProtocolVersion string IsSSHConnection bool OriginalCommand string RemoteAddr string NamespacePath string }
Env represents the SSH environment variables
func NewFromEnv ¶
func NewFromEnv() Env
NewFromEnv creates a new Env instance based on the current environment variables
Click to show internal directories.
Click to hide internal directories.