config

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Configuration

type Configuration struct {
	Tunnels []Tunnel `hcl:"tunnel,block"`
}

type Local

type Local struct {
	Port string   `hcl:"port"`
	Cmd  []string `hcl:"cmd,optional"`
}

type Remote

type Remote struct {
	Port string `hcl:"port"`
	Host string `hcl:"host"`
}

type Tunnel

type Tunnel struct {
	Name   string `hcl:"name,optional"`
	User   string `hcl:"user"`
	Local  Local  `hcl:"local,block"`
	Remote Remote `hcl:"remote,block"`
}

func Parse

func Parse(configfile string) []Tunnel

func (Tunnel) String

func (t Tunnel) String()

String prints out a pretty version of the tunnel struct

Jump to

Keyboard shortcuts

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