Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CLIConf ¶
type CLIConf struct { // UserHost contains "[login]@hostname" argument to SSH command UserHost string // Commands to execute on a remote host RemoteCommand []string // Username is the Teleport user's username (to login into proxies) Username string // Proxy keeps the hostname:port of the SSH proxy to use Proxy string // TTL defines how long a session must be active (in minutes) MinsToLive int32 // SSH Port on a remote SSH host NodePort int16 // Login on a remote SSH host NodeLogin string // InsecureSkipVerify bypasses verification of HTTPS certificate when talking to web proxy InsecureSkipVerify bool // IsUnderTest is set to true for unit testing IsUnderTest bool // AgentSocketAddr is address for agent listeing socket AgentSocketAddr utils.NetAddrVal // Remote SSH session to join SessionID string // Src:dest parameter for SCP CopySpec []string // -r flag for scp RecursiveCopy bool // -L flag for ssh. Local port forwarding like 'ssh -L 80:remote.host:80 -L 443:remote.host:443' LocalForwardPorts []string // --local flag for ssh LocalExec bool // SiteName specifies remote site go login to SiteName string // Interactive, when set to true, launches remote command with the terminal attached Interactive bool // Quiet mode, -q command (disables progress printing) Quiet bool // Namespace is used to select cluster namespace Namespace string // NoCache is used to turn off client cache for nodes discovery NoCache bool // LoadSystemAgentOnly when set to true will cause tsh agent to load keys into the system agent and // then exit. This is useful when calling tsh agent from a script (for example ~/.bash_profile) // to load keys into your system agent. LoadSystemAgentOnly bool // BenchThreads is amount of concurrent threads to run BenchThreads int // BenchDuration is a duration for the benchmark BenchDuration time.Duration // BenchRate is a requests per second rate to mantain BenchRate int // BenchInteractive indicates that we should create interactive session BenchInteractive bool // Context is a context to control execution Context context.Context // Gops starts gops agent on a specified address // if not specified, gops won't start Gops bool // GopsAddr specifies to gops addr to listen on GopsAddr string // IdentityFile is an argument to -i flag (path to the private key+cert file) IdentityFile string }
CLIConf stores command line arguments and flags:
Click to show internal directories.
Click to hide internal directories.