reversetunnel

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: 19 Imported by: 0

Documentation

Overview

Copyright 2015 Gravitational, Inc.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Copyright 2015 Gravitational, Inc.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Index

Constants

View Source
const (
	RemoteSiteStatusOffline = "offline"
	RemoteSiteStatusOnline  = "online"
)
View Source
const ExtHost = "host@teleport"

Variables

This section is empty.

Functions

This section is empty.

Types

type Agent

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

func NewAgent

func NewAgent(addr utils.NetAddr, domainName string, signers []ssh.Signer,
	clt *auth.TunClient, options ...AgentOption) (*Agent, error)

func (*Agent) Start

func (a *Agent) Start() error

func (*Agent) String

func (a *Agent) String() string

func (*Agent) Wait

func (a *Agent) Wait() error

type AgentOption

type AgentOption func(a *Agent) error

func SetEventLogger

func SetEventLogger(e lunk.EventLogger) AgentOption

type RemoteSite

type RemoteSite interface {
	ConnectToServer(addr, user string, auth []ssh.AuthMethod) (*ssh.Client, error)
	DialServer(addr string) (net.Conn, error)
	GetLastConnected() time.Time
	GetName() string
	GetStatus() string
	GetClient() *auth.Client
	GetServers() ([]services.Server, error)
}

type Server

type Server interface {
	GetSites() []RemoteSite
	GetSite(name string) (RemoteSite, error)
	FindSimilarSite(name string) (RemoteSite, error)
	Start() error
	Wait()
}

func NewServer

func NewServer(addr utils.NetAddr, hostSigners []ssh.Signer,
	ap auth.AccessPoint, limiter *limiter.Limiter) (Server, error)

New returns an unstarted server

Jump to

Keyboard shortcuts

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