Documentation
¶
Index ¶
- func ConnectedUpdate(t targetDelegate, msg tea.Msg, m *list.Model) tea.Cmd
- func FavoritesUpdate(t targetDelegate, msg tea.Msg, m *list.Model) tea.Cmd
- func NewClickHouseCommand(host string, port int, credentials []*targets.SessionCredential) *exec.Cmd
- func NewMySQLCommand(host string, port int, credentials []*targets.SessionCredential) *exec.Cmd
- func NewPSQLCommand(host string, port int, credentials []*targets.SessionCredential) *exec.Cmd
- func NewRedisCommand(host string, port int, credentials []*targets.SessionCredential) *exec.Cmd
- func SplitHostPort(hostport string) (host string, port string, err error)
- func TargetsUpdate(t targetDelegate, msg tea.Msg, m *list.Model) tea.Cmd
- func Tui(ctx context.Context, targetListResult *targets.TargetListResult, ...)
- type DelegateKeyMap
- type SessionInfo
- type Target
- func (t *Target) Connect() (*exec.Cmd, error)
- func (t Target) Description(tab sessionState) (string, string)
- func (t Target) FilterValue() string
- func (t Target) Info() string
- func (t *Target) IsConnected() bool
- func (t *Target) Shell(callbackFn tea.ExecCallback) (tea.Cmd, error)
- func (t Target) Title(tab sessionState) (string, string)
- type TuiInput
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewClickHouseCommand ¶
func NewMySQLCommand ¶
func NewPSQLCommand ¶
func NewRedisCommand ¶
func SplitHostPort ¶
SplitHostPort splits a network address of the form "host:port", "host%zone:port", "[host]:port" or "[host%zone]:port" into host or host%zone and port.
A literal IPv6 address in hostport must be enclosed in square brackets, as in "[::1]:80", "[::1%lo0]:80".
func Tui ¶
func Tui(ctx context.Context, targetListResult *targets.TargetListResult, boundaryClient *api.Client, boundaryToken *authtokens.AuthToken)
Types ¶
type DelegateKeyMap ¶
type DelegateKeyMap struct {
// contains filtered or unexported fields
}
func NewDelegate ¶
func NewDelegate(keyMap map[string]key.Binding, tab sessionState, updater delegateUpdateFunc, renderer delegateRenderFunc) (*targetDelegate, *DelegateKeyMap)
func (DelegateKeyMap) FullHelp ¶
func (c DelegateKeyMap) FullHelp() [][]key.Binding
func (DelegateKeyMap) ShortHelp ¶
func (c DelegateKeyMap) ShortHelp() []key.Binding
type SessionInfo ¶
type SessionInfo struct {
Address string
Port int
Expiration time.Time
ConnectionLimit int32
SessionId string
Credentials []*targets.SessionCredential
// contains filtered or unexported fields
}
func (*SessionInfo) Terminate ¶
func (s *SessionInfo) Terminate(task *run.Task)
type Target ¶
type Target struct {
// contains filtered or unexported fields
}
func (Target) Description ¶
func (Target) FilterValue ¶
func (*Target) IsConnected ¶
type TuiInput ¶
type TuiInput struct {
BoundaryClient *api.Client
BoundaryToken *authtokens.AuthToken
Tabs []*list.Model
TargetKeyMap *DelegateKeyMap
ConnectedKeyMap *DelegateKeyMap
FavoriteKeyMap *DelegateKeyMap
}
Click to show internal directories.
Click to hide internal directories.