Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
Version int `json:"version"`
UI struct {
VimMode bool `json:"vim_mode"`
ShowIcons bool `json:"show_icons"`
} `json:"ui"`
SSH struct {
HostKeyPolicy HostKeyPolicy `json:"host_key_policy"`
KeepAliveSeconds int `json:"keepalive_seconds"`
TermMode TermMode `json:"term_mode"`
TermCustom string `json:"term_custom"`
PasswordAutoLogin bool `json:"password_auto_login"`
PasswordBackendUnix PasswordBackendUnix `json:"password_backend_unix"`
} `json:"ssh"`
Mount struct {
Enabled bool `json:"enabled"`
DefaultRemotePath string `json:"default_remote_path"`
QuitBehavior MountQuitBehavior `json:"quit_behavior"`
} `json:"mount"`
Sync struct {
Enabled bool `json:"enabled"`
RepoURL string `json:"repo_url"`
AuthMethod SyncAuthMethod `json:"auth_method"`
SSHKeyPath string `json:"ssh_key_path"`
Branch string `json:"branch"`
LocalPath string `json:"local_path"`
} `json:"sync"`
Updates struct {
LastCheckedAt string `json:"last_checked_at,omitempty"`
LastSeenVersion string `json:"last_seen_version,omitempty"`
LastSeenTag string `json:"last_seen_tag,omitempty"`
ETagLatest string `json:"etag_latest,omitempty"`
} `json:"updates"`
}
type HostKeyPolicy ¶
type HostKeyPolicy string
const ( HostKeyAcceptNew HostKeyPolicy = "accept-new" HostKeyStrict HostKeyPolicy = "strict" HostKeyOff HostKeyPolicy = "off" )
type MountQuitBehavior ¶
type MountQuitBehavior string
const ( MountQuitPrompt MountQuitBehavior = "prompt" MountQuitAlwaysUnmount MountQuitBehavior = "always_unmount" MountQuitLeaveMounted MountQuitBehavior = "leave_mounted" )
type PasswordBackendUnix ¶ added in v1.0.3
type PasswordBackendUnix string
const ( PasswordBackendSSHPassFirst PasswordBackendUnix = "sshpass_first" PasswordBackendAskpassFirst PasswordBackendUnix = "askpass_first" )
type SyncAuthMethod ¶
type SyncAuthMethod string
SyncAuthMethod represents the authentication method for Git sync
const ( SyncAuthSSHKey SyncAuthMethod = "ssh_key" SyncAuthNone SyncAuthMethod = "none" )
Click to show internal directories.
Click to hide internal directories.