network

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2018 License: Apache-2.0 Imports: 4 Imported by: 0

README

Network Service

Network service is responsible opening tunnel vi SSH between client and target host.

Service Id Action Description Request Response
network tunnel tunnel ports between local and remote host NetworkTunnelRequest NetworkTunnelResponse

Documentation

Index

Constants

View Source
const (
	//NetworkServiceID represents network service id
	NetworkServiceID = "network"

	//NetworkServiceTunnelAction represents opening ssh tunnel action
	NetworkServiceTunnelAction = "tunnel"
)

Variables

This section is empty.

Functions

func New

func New() endly.Service

New creates a new network service.

Types

type NetworkTunnel

type NetworkTunnel struct {
	Local  string `required:"true" description:"local [host]:[port]"`
	Remote string `required:"true" description:"remote [host]:[port]" `
}

NetworkTunnel represents network link, both local and remove needs to be in [host]:[port] format

type TunnelRequest

type TunnelRequest struct {
	Target  *url.Resource
	Tunnels []*NetworkTunnel
}

TunnelRequest represents SSH tunnel request

type TunnelResponse

type TunnelResponse struct {
	Forwards []*NetworkTunnel
}

TunnelResponse represents expanded net tunnel rule

Jump to

Keyboard shortcuts

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