internal

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 21, 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 Entity

type Entity struct {
	Description string              `mapstructure:"description"`
	Elements    map[string][]Server `mapstructure:"elements"`
}

type Model

type Model struct {
	// contains filtered or unexported fields
}

func (Model) Init

func (m Model) Init() tea.Cmd

func (*Model) InitLists

func (m *Model) InitLists()

func (*Model) Next

func (m *Model) Next()

func (*Model) Prev

func (m *Model) Prev()

func (Model) Update

func (m Model) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (Model) View

func (m Model) View() string

type Server

type Server struct {
	Name  string `mapstructure:"name"`
	IsAWS bool   `mapstructure:"isaws"`
}

type ServerConfig

type ServerConfig struct {
	ServerList map[string]Entity `mapstructure:"server_list"`
	SshCommand string            `mapstructure:"ssh_command"`
}
var CfgGlobal ServerConfig

Jump to

Keyboard shortcuts

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