config

package
v0.0.0-...-7ccf204 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrMissingOption     = errors.New("missing option")
	ErrMissingAuthMethod = errors.New("missing auth method, must provide either password or private key")
)

Functions

This section is empty.

Types

type Config

type Config struct {
	DevMode        bool
	ListenAddr     string
	DeviceAddr     string
	Username       string
	Password       string
	PrivateKeyPath string
}

func Load

func Load() (*Config, error)

func (*Config) Help

func (c *Config) Help(err error)

func (*Config) ToSSHConfig

func (c *Config) ToSSHConfig() (*ssh.ClientConfig, error)

Jump to

Keyboard shortcuts

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