get

package
v0.0.0-...-08f6c10 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2023 License: BSD-3-Clause Imports: 26 Imported by: 0

Documentation

Index

Constants

View Source
const (
	HAM_LINUX_BINARY_URL string = "https://github.com/antony-jr/ham/releases/download/stable/ham-build-linux-amd64"
)

Variables

This section is empty.

Functions

func GetSSHClient

func GetSSHClient(host string, privKey string) (*ssh.Client, error)

func GetSSHSession

func GetSSHSession(conn *ssh.Client) (*ssh.Session, error)

func GrossServerPriceForServerType

func GrossServerPriceForServerType(client *hcloud.Client, serverType string) (float64, *hcloud.ServerType, error)

func GrossServerPriceForServerWithHighestPerformance

func GrossServerPriceForServerWithHighestPerformance(client *hcloud.Client) (float64, *hcloud.ServerType, error)

func NewCommand

func NewCommand() *cli.Command

func ParseGitRemoteString

func ParseGitRemoteString(remote string) (string, string)

func TailRemoteStdout

func TailRemoteStdout(host string, privKey string, sum string) chan string

Types

type QuestionModel

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

func (QuestionModel) Init

func (m QuestionModel) Init() tea.Cmd

func (QuestionModel) Update

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

func (QuestionModel) View

func (m QuestionModel) View() string

type ResponseT

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

func NewQuestionResponse

func NewQuestionResponse(req bool, sec bool) *ResponseT

type SSHShellCode

type SSHShellCode int
const (
	SSH_SHELL_NO_ERROR SSHShellCode = iota
	SSH_SHELL_CANNOT_GET_CLIENT
	SSH_SHELL_CANNOT_GET_SESSION
	SSH_SHELL_CANNOT_CONNECT
	SSH_SHELL_MALFORMED_JSON
	SSH_SHELL_HAM_STATUS_ERRORED
)

type SSHShellContext

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

func GetSSHShell

func GetSSHShell(client *ssh.Client) (*SSHShellContext, error)

func (*SSHShellContext) Exec

func (ctx *SSHShellContext) Exec(command string) (string, error)

func (*SSHShellContext) SetCode

func (ctx *SSHShellContext) SetCode(c SSHShellCode)

type SpinModel

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

func (SpinModel) Init

func (m SpinModel) Init() tea.Cmd

func (SpinModel) Update

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

func (SpinModel) View

func (m SpinModel) View() string

type TUISpinnerMessenger

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

func NewTUISpinnerMessenger

func NewTUISpinnerMessenger() *TUISpinnerMessenger

func (*TUISpinnerMessenger) ShowMessage

func (ctx *TUISpinnerMessenger) ShowMessage(msg string)

func (*TUISpinnerMessenger) StopMessage

func (ctx *TUISpinnerMessenger) StopMessage() bool

Jump to

Keyboard shortcuts

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