config

package
v0.0.0-...-c88c7c2 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2024 License: MPL-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DefaultConfigPath     string
	DefaultKnownHostsPath string
	DefaultPrivateKeyPath string
)
View Source
var (
	Path   string
	Config ConfigData
)

Functions

func ClientConfig

func ClientConfig() (dsl.Config, error)

func Load

func Load(path string) error

func LoadSecrets

func LoadSecrets(path string) error

func Save

func Save() error

func Validate

func Validate() error

Types

type ConfigData

type ConfigData struct {
	DeviceType     dsl.ClientType
	Host           string
	User           string
	PrivateKeyPath string
	KnownHostsPath string
	Options        map[string]string
	Web            web.Config
}

type SecretsData

type SecretsData struct {
	Password             string
	PrivateKeyPassphrase string
	EncryptionPassphrase string
}
var (
	Secrets SecretsData
)

Jump to

Keyboard shortcuts

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