teleagent

package
v0.0.11 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 4, 2016 License: Apache-2.0 Imports: 15 Imported by: 78

Documentation

Index

Constants

View Source
const (
	DefaultAgentAPIAddress = "unix:///tmp/teleport.agent.api.sock"
	LoginSuccess           = "Logged in successfully"
)
View Source
const (
	DefaultAgentAddress = "unix:///tmp/teleport.agent.sock"
)
View Source
const WrongPasswordError = "ssh: handshake failed: ssh: unable to authenticate, attempted methods [none password], no supported methods remain"

Variables

This section is empty.

Functions

func Login

func Login(agentAPIAddr string, proxyAddr string, user string,
	password string, hotpToken string,
	ttl time.Duration) error

Types

type AgentAPIServer

type AgentAPIServer struct {
	httprouter.Router
	// contains filtered or unexported fields
}

func NewAgentAPIServer

func NewAgentAPIServer(ag *TeleAgent) *AgentAPIServer

func (*AgentAPIServer) Start

func (s *AgentAPIServer) Start(apiAddr string) error

type TeleAgent

type TeleAgent struct {
	// contains filtered or unexported fields
}

func NewTeleAgent

func NewTeleAgent() *TeleAgent

func (*TeleAgent) AuthMethod

func (a *TeleAgent) AuthMethod() ssh.AuthMethod

func (*TeleAgent) Login

func (a *TeleAgent) Login(proxyAddr string, user string, pass string,
	hotpToken string, ttl time.Duration) error

func (*TeleAgent) Start

func (a *TeleAgent) Start(agentAddr string) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL