config

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2018 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	SSH       SSH
	LocalAddr string `envconfig:"SOCKS_ADDR" default:"127.0.0.1:1080"`
}

App stores application configuration.

func FromENV

func FromENV() (*App, error)

FromENV initializes the the config from env.

type SSH

type SSH struct {
	ServerAddr string   `envconfig:"ADDR"`
	Username   string   `envconfig:"USER"`
	Password   string   `envconfig:"PASSWORD"`
	PublicKeys []string `envconfig:"PUBLIC_KEYS"`
	AgentAddr  string   `envconfig:"AGENT"`
}

SSH stores configuration for the SSH client.

Jump to

Keyboard shortcuts

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