Documentation ¶
Index ¶
- Constants
- func GetSSHClient(host string, privKey string) (*ssh.Client, error)
- func GetSSHSession(conn *ssh.Client) (*ssh.Session, error)
- func GrossServerPriceForServerType(client *hcloud.Client, serverType string) (float64, *hcloud.ServerType, error)
- func GrossServerPriceForServerWithHighestPerformance(client *hcloud.Client) (float64, *hcloud.ServerType, error)
- func NewCommand() *cli.Command
- func ParseGitRemoteString(remote string) (string, string)
- func TailRemoteStdout(host string, privKey string, sum string) chan string
- type QuestionModel
- type ResponseT
- type SSHShellCode
- type SSHShellContext
- type SpinModel
- type TUISpinnerMessenger
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 NewCommand ¶
func ParseGitRemoteString ¶
Types ¶
type QuestionModel ¶
type QuestionModel struct {
// contains filtered or unexported fields
}
func (QuestionModel) Init ¶
func (m QuestionModel) Init() tea.Cmd
func (QuestionModel) View ¶
func (m QuestionModel) View() string
type ResponseT ¶
type ResponseT struct {
// contains filtered or unexported fields
}
func NewQuestionResponse ¶
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) SetCode ¶
func (ctx *SSHShellContext) SetCode(c SSHShellCode)
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
Click to show internal directories.
Click to hide internal directories.