Documentation ¶
Index ¶
- func Main()
- type Dashboard2FAData
- type DashboardData
- type DashboardDataRequest
- type DashboardOverviewData
- type DashboardSSHKeysData
- type DashboardSecurityLogsData
- type DashboardTOTPData
- type DisableTOTPRequest
- type DisableTOTPResponse
- type EnableTOTPRequest
- type EnableTOTPResponse
- type LogEntry
- type SetupTOTPRequest
- type TOTPSetup
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Dashboard2FAData ¶
type Dashboard2FAData struct {
TOTP *DashboardTOTPData `json:",omitempty"`
}
Dashboard2FAData contains data for 2-factor authentication tab.
type DashboardData ¶
type DashboardData struct { Path string Now *timeutil.Timestamp // Unix seconds. NeedSudo bool // Needs to get sudo cookie first. Overview *DashboardOverviewData `json:",omitempty"` TwoFactorAuth *Dashboard2FAData `json:",omitempty"` SecurityLogs *DashboardSecurityLogsData `json:",omitempty"` SSHKeys *DashboardSSHKeysData `json:",omitempty"` }
DashboardData contains the page data for a particular dashboard state.
type DashboardDataRequest ¶
type DashboardDataRequest struct {
Path string
}
DashboardDataRequest is the AJAX request to load dashboard data.
type DashboardOverviewData ¶
type DashboardOverviewData struct { NoSysDock bool NextcloudDomain string IPAddrs []string DiskUsage *diskUsage UptimeSecs int64 }
DashboardOverviewData contains the data for dashboard overview.
type DashboardSSHKeysData ¶
DashboardSSHKeysData contains data for initializing SSH Keys dashboard page.
type DashboardSecurityLogsData ¶
type DashboardSecurityLogsData struct {
Entries []*LogEntry
}
DashboardSecurityLogsData encapsulates security logs entries for the dashbaord.
type DashboardTOTPData ¶
DashboardTOTPData contains data for TOTP 2FA method.
type DisableTOTPRequest ¶
type DisableTOTPRequest struct{}
DisableTOTPRequest is the request to disable 2-factor authentication..
type DisableTOTPResponse ¶
type DisableTOTPResponse struct{}
DisableTOTPResponse is the response to disable 2-factor authentication..
type EnableTOTPRequest ¶
EnableTOTPRequest is the request to activate TOTP authentication..
type EnableTOTPResponse ¶
type EnableTOTPResponse struct {
Error string // Expected error that user should see.
}
EnableTOTPResponse is the response to activate TOTP authentication..
type LogEntry ¶
type LogEntry struct { K string T int64 User string `json:",omitempty"` Text string `json:",omitempty"` Type string `json:",omitempty"` V []byte `json:",omitempty"` // The following fields are only used in Javascript. TSec int64 `json:",omitempty"` VStr string `json:",omitepmty"` }
LogEntry is a log entry for jarvis to display.
type SetupTOTPRequest ¶
type SetupTOTPRequest struct{}
SetupTOTPRequest is the request to create a signed TOTP setup.
Source Files ¶
- admin_tasks.go
- app_closure.go
- app_domains.go
- app_meta_util.go
- app_registry.go
- app_stub.go
- apps.go
- apps_state.go
- apps_state_legacy.go
- aries_util.go
- backend.go
- bos_list.go
- builtin_apps.go
- client_main.go
- client_util.go
- cmd_grub.go
- config.go
- custom_subs.go
- dashboard.go
- dashboard_2fa.go
- dashboard_overview.go
- dashboard_security_logs.go
- dashboard_ssh_keys.go
- doorway.go
- doorway_update.go
- downloader.go
- drive.go
- fix.go
- grub.go
- identity.go
- install.go
- log_entry.go
- main.go
- names.go
- nextcloud_cron.go
- objects.go
- recent_failures.go
- root_user.go
- routes.go
- security_logs.go
- serve_dashboard.go
- serve_index.go
- serve_sudo.go
- server.go
- sessions.go
- settings_keys.go
- ssh_keys.go
- syscall_linux.go
- task_loop.go
- totp.go
- twofactor_info.go
- update.go
- update_cleanup.go
- update_core.go
- update_os.go
- user_info.go
- users.go
- utils.go