config

package
Version: v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Initialize

func Initialize()

Types

type Config

type Config struct {
	Debug    bool
	LogLevel string

	DefaultPublicKey  string `mapstructure:"default-public-key"`
	DefaultPrivateKey string `mapstructure:"default-private-key"`

	Portals []*PortalDef
}

func GetConfig

func GetConfig() (*Config, error)

type PortalAwsConfig

type PortalAwsConfig struct {
	InstanceId *string `mapstructure:"instance-id"`
	Region     *string
	User       *string
}

type PortalDef

type PortalDef struct {
	Name *string
	Hint *string

	Aws *PortalAwsConfig
	Raw *PortalRawConfig
}

type PortalRawConfig

type PortalRawConfig struct {
	Command *string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL