constant

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package constant contains shared app constants

Index

Constants

View Source
const ProtocolSSH = "ssh"

ProtocolSSH - is only supported protocol.

Variables

View Source
var ErrNotFound = errors.New("not found")

ErrNotFound is used by data layer.

Functions

This section is empty.

Types

type ProcessType added in v1.2.0

type ProcessType string

ProcessType is used to determine what kind of external process is running.

const (
	// ProcessTypeSSHLoadConfig is used when we need to run ssh -G <hostname> to get config.
	ProcessTypeSSHLoadConfig ProcessType = "ssh-load-config"
	// ProcessTypeSSHCopyID is used when we need to run ssh-copy-id to copy a public key to a remote host.
	ProcessTypeSSHCopyID ProcessType = "ssh-copy-id"
	// ProcessTypeSSHConnect is used when we want to connect to a remote host.
	ProcessTypeSSHConnect ProcessType = "ssh-connect"
)

type ScreenLayout added in v1.2.0

type ScreenLayout string

ScreenLayout is used to determine how the hostlist should be displayed.

const (
	// ScreenLayoutCompact is set when all items in the hostlist are shown without description.
	ScreenLayoutCompact ScreenLayout = "compact"
	// ScreenLayoutDescription is set when all hosts are shown with description field and a margin.
	ScreenLayoutDescription ScreenLayout = "description"
	// ScreenLayoutGroup is set when all hosts are shown with description field and a margin.
	ScreenLayoutGroup ScreenLayout = "group"
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳