internal

package
v0.4.4 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2020 License: Apache-2.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AdminServer added in v0.3.0

type AdminServer struct {
	Session    *models.APIGetSessionResponse
	ClientRepo *ClientRepo

	sync.Mutex
	// contains filtered or unexported fields
}

func (*AdminServer) Serve added in v0.3.0

func (s *AdminServer) Serve(ctx context.Context, sock string) error

func (*AdminServer) Shutdown added in v0.3.0

func (s *AdminServer) Shutdown(ctx context.Context) error

type ClientRepo added in v0.3.0

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

func NewClientRepo added in v0.3.0

func NewClientRepo() *ClientRepo

func (*ClientRepo) Add added in v0.3.0

func (c *ClientRepo) Add(client api.Client) error

func (*ClientRepo) Clients added in v0.3.0

func (c *ClientRepo) Clients() []*api.Client

func (*ClientRepo) Delete added in v0.3.0

func (c *ClientRepo) Delete(clientId string)

func (*ClientRepo) Get added in v0.3.0

func (c *ClientRepo) Get(clientId string) *api.Client

type PermissionDeniedError

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

func (*PermissionDeniedError) Error

func (e *PermissionDeniedError) Error() string

func (*PermissionDeniedError) Unwrap

func (e *PermissionDeniedError) Unwrap() error

type ReverseTunnel

type ReverseTunnel struct {
	*ssh.Client

	Host              *url.URL
	Signers           []ssh.Signer
	AuthorizedKeys    []ssh.PublicKey
	KeepAliveDuration time.Duration
	HostKeyCallback   ssh.HostKeyCallback
	Logger            log.FieldLogger
	// contains filtered or unexported fields
}

func (*ReverseTunnel) Close

func (c *ReverseTunnel) Close()

func (*ReverseTunnel) Establish

func (*ReverseTunnel) Listener

func (c *ReverseTunnel) Listener() net.Listener

type Server

type Server struct {
	Command           []string
	CommandEnv        []string
	ForceCommand      []string
	Signers           []ssh.Signer
	AuthorizedKeys    []ssh.PublicKey
	EventEmitter      *emitter.Emitter
	KeepAliveDuration time.Duration
	Stdin             *os.File
	Stdout            *os.File
	Logger            log.FieldLogger
	ReadOnly          bool
}

func (*Server) ServeWithContext

func (s *Server) ServeWithContext(ctx context.Context, l net.Listener) error

Jump to

Keyboard shortcuts

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