proxyssh

package
v0.10.1 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2025 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Overview

Package proxyssh implements SSH Proxy for user to get to the ApplicationResource

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// Where to listen for incoming SSH requests
	BindAddress string `json:"bind_address"`
	// Path to store the SSH key in pem format, if relative - will be stored in node workdir
	SSHKey string `json:"ssh_key"`
}

Config - node driver configuration

func (*Config) Apply

func (c *Config) Apply(config []byte, db *database.Database) error

Apply takes json and applies it to the config structure

func (*Config) Validate

func (*Config) Validate() (err error)

Validate makes sure the config have the required defaults & that the required fields are set

type Driver

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

Driver implements drivers.ResourceDriver interface

func (*Driver) GetRPCServices added in v0.9.0

func (d *Driver) GetRPCServices() []gate.RPCService

GetRPCServices returns RPC services this gate driver wants to register

func (*Driver) Name

func (d *Driver) Name() string

Name returns name of the gate

func (*Driver) Prepare

func (d *Driver) Prepare(wd string, config []byte) (err error)

Prepare initializes the driver

func (*Driver) SetName

func (d *Driver) SetName(name string)

Name returns name of the gate

func (*Driver) Shutdown

func (*Driver) Shutdown() error

Shutdown gracefully stops the gate

type Factory

type Factory struct{}

Factory implements gate.DriverFactory interface

func (*Factory) Name

func (*Factory) Name() string

Name shows name of the gate factory

func (*Factory) New

func (f *Factory) New(db *database.Database) gate.Driver

New creates new gate driver

Jump to

Keyboard shortcuts

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