Documentation
¶
Index ¶
- type AdminPage
- func (admin *AdminPage) DoWithConfirm(text string, action func())
- func (admin *AdminPage) DoWithLoader(text string, action func())
- func (admin *AdminPage) Focus(delegate func(p tview.Primitive))
- func (admin *AdminPage) GetID() string
- func (admin *AdminPage) GetNavBar() []widgets.NavBarElem
- func (admin *AdminPage) InputHandler() func(event *tcell.EventKey, setFocus func(p tview.Primitive))
- func (admin *AdminPage) RefreshData()
- func (admin *AdminPage) Reset()
- func (admin *AdminPage) SetAddOperatorFunc(f func(string, bool, string) (*operator.Operator, error))
- func (admin *AdminPage) SetCertificatesFunc(f func() ([]*certificate.Certificate, error))
- func (admin *AdminPage) SetDelOperatorFunc(f func(string) error)
- func (admin *AdminPage) SetDemoteOperatorFunc(f func(string) error)
- func (admin *AdminPage) SetExportOperatorFunc(f func(string, string) (string, error))
- func (admin *AdminPage) SetMetadataFunc(f func() (*config.Config, *operator.Operator, error))
- func (admin *AdminPage) SetOperator(oper *operator.Operator)
- func (admin *AdminPage) SetOperatorsFunc(f func() ([]*operator.Operator, error))
- func (admin *AdminPage) SetPromoteOperatorFunc(f func(string) error)
- func (admin *AdminPage) SetRegenCertFunc(f func(string) error)
- func (admin *AdminPage) SetSwitchbackFunc(f func())
- func (admin *AdminPage) ShowError(text string, done func())
- func (admin *AdminPage) ShowInfo(text string, done func())
- type CredentialsPage
- func (creds *CredentialsPage) DoWithConfirm(text string, action func())
- func (creds *CredentialsPage) DoWithLoader(text string, action func())
- func (creds *CredentialsPage) GetElem(id int) *operator.Operator
- func (creds *CredentialsPage) GetID() string
- func (creds *CredentialsPage) GetNavBar() []widgets.NavBarElem
- func (creds *CredentialsPage) InputHandler() func(event *tcell.EventKey, setFocus func(p tview.Primitive))
- func (creds *CredentialsPage) RefreshData()
- func (creds *CredentialsPage) Reset()
- func (creds *CredentialsPage) SetConnectFunc(f func(*operator.Operator) error)
- func (creds *CredentialsPage) SetDataFunc(f func() ([]*operator.Operator, error))
- func (creds *CredentialsPage) SetDeleteFunc(f func(*operator.Operator) error)
- func (creds *CredentialsPage) SetNewFunc(f func(path string) error)
- func (creds *CredentialsPage) ShowError(text string, done func())
- func (creds *CredentialsPage) ShowInfo(text string, done func())
- type DashboardPage
- func (dash *DashboardPage) DoWithConfirm(text string, action func())
- func (dash *DashboardPage) DoWithLoader(text string, action func())
- func (dash *DashboardPage) Focus(delegate func(p tview.Primitive))
- func (dash *DashboardPage) GetData() []*session.Session
- func (dash *DashboardPage) GetID() string
- func (dash *DashboardPage) GetNavBar() []widgets.NavBarElem
- func (dash *DashboardPage) InputHandler() func(event *tcell.EventKey, setFocus func(p tview.Primitive))
- func (dash *DashboardPage) RefreshData()
- func (dash *DashboardPage) Reset()
- func (dash *DashboardPage) SetAdminFunc(f func())
- func (dash *DashboardPage) SetDataFunc(f func() ([]*session.Session, error))
- func (dash *DashboardPage) SetGenerateFunc(f func(string, string, string, string, bool, string, bool) (string, error))
- func (dash *DashboardPage) SetMetadataFunc(f func() (*config.Config, *operator.Operator, error))
- func (dash *DashboardPage) SetOperator(oper *operator.Operator)
- func (dash *DashboardPage) SetSessionAddRedirectorFunc(f func(*session.Session, string, string, string) error)
- func (dash *DashboardPage) SetSessionAddRouteFunc(f func(*session.Session, string, int, bool) error)
- func (dash *DashboardPage) SetSessionEditRouteFunc(f func(*session.Session, string, string, int, bool) error)
- func (dash *DashboardPage) SetSessionKillFunc(f func(*session.Session) error)
- func (dash *DashboardPage) SetSessionMoveRouteFunc(f func(*session.Session, string, string) error)
- func (dash *DashboardPage) SetSessionRemoveRedirectorFunc(f func(*session.Session, string) error)
- func (dash *DashboardPage) SetSessionRemoveRouteFunc(f func(*session.Session, string) error)
- func (dash *DashboardPage) SetSessionRenameFunc(f func(*session.Session, string) error)
- func (dash *DashboardPage) SetSessionStartFunc(f func(*session.Session) error)
- func (dash *DashboardPage) SetSessionStopFunc(f func(*session.Session) error)
- func (dash *DashboardPage) SetTracerouteFunc(f func(string) ([]string, error))
- func (dash *DashboardPage) ShowError(text string, done func())
- func (dash *DashboardPage) ShowInfo(text string, done func())
- func (dash *DashboardPage) ShowText(title string, text string, done func())
- type Page
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AdminPage ¶
func NewAdminPage ¶
func NewAdminPage() *AdminPage
func (*AdminPage) DoWithConfirm ¶
func (*AdminPage) DoWithLoader ¶
func (*AdminPage) GetNavBar ¶
func (admin *AdminPage) GetNavBar() []widgets.NavBarElem
func (*AdminPage) InputHandler ¶
func (*AdminPage) RefreshData ¶
func (admin *AdminPage) RefreshData()
func (*AdminPage) SetAddOperatorFunc ¶
func (*AdminPage) SetCertificatesFunc ¶
func (admin *AdminPage) SetCertificatesFunc(f func() ([]*certificate.Certificate, error))
func (*AdminPage) SetDelOperatorFunc ¶
func (*AdminPage) SetDemoteOperatorFunc ¶
func (*AdminPage) SetExportOperatorFunc ¶
func (*AdminPage) SetMetadataFunc ¶
func (*AdminPage) SetOperator ¶
func (*AdminPage) SetOperatorsFunc ¶
func (*AdminPage) SetPromoteOperatorFunc ¶
func (*AdminPage) SetRegenCertFunc ¶
func (*AdminPage) SetSwitchbackFunc ¶
func (admin *AdminPage) SetSwitchbackFunc(f func())
type CredentialsPage ¶
func NewCredentialsPage ¶
func NewCredentialsPage() *CredentialsPage
func (*CredentialsPage) DoWithConfirm ¶
func (creds *CredentialsPage) DoWithConfirm(text string, action func())
func (*CredentialsPage) DoWithLoader ¶
func (creds *CredentialsPage) DoWithLoader(text string, action func())
func (*CredentialsPage) GetID ¶
func (creds *CredentialsPage) GetID() string
func (*CredentialsPage) GetNavBar ¶
func (creds *CredentialsPage) GetNavBar() []widgets.NavBarElem
func (*CredentialsPage) InputHandler ¶
func (creds *CredentialsPage) InputHandler() func(event *tcell.EventKey, setFocus func(p tview.Primitive))
func (*CredentialsPage) RefreshData ¶
func (creds *CredentialsPage) RefreshData()
func (*CredentialsPage) Reset ¶
func (creds *CredentialsPage) Reset()
func (*CredentialsPage) SetConnectFunc ¶
func (creds *CredentialsPage) SetConnectFunc(f func(*operator.Operator) error)
func (*CredentialsPage) SetDataFunc ¶
func (creds *CredentialsPage) SetDataFunc(f func() ([]*operator.Operator, error))
func (*CredentialsPage) SetDeleteFunc ¶
func (creds *CredentialsPage) SetDeleteFunc(f func(*operator.Operator) error)
func (*CredentialsPage) SetNewFunc ¶
func (creds *CredentialsPage) SetNewFunc(f func(path string) error)
func (*CredentialsPage) ShowError ¶
func (creds *CredentialsPage) ShowError(text string, done func())
func (*CredentialsPage) ShowInfo ¶
func (creds *CredentialsPage) ShowInfo(text string, done func())
type DashboardPage ¶
func NewDashboardPage ¶
func NewDashboardPage() *DashboardPage
func (*DashboardPage) DoWithConfirm ¶
func (dash *DashboardPage) DoWithConfirm(text string, action func())
func (*DashboardPage) DoWithLoader ¶
func (dash *DashboardPage) DoWithLoader(text string, action func())
func (*DashboardPage) Focus ¶
func (dash *DashboardPage) Focus(delegate func(p tview.Primitive))
func (*DashboardPage) GetData ¶ added in v2.1.0
func (dash *DashboardPage) GetData() []*session.Session
func (*DashboardPage) GetID ¶
func (dash *DashboardPage) GetID() string
func (*DashboardPage) GetNavBar ¶
func (dash *DashboardPage) GetNavBar() []widgets.NavBarElem
func (*DashboardPage) InputHandler ¶
func (dash *DashboardPage) InputHandler() func(event *tcell.EventKey, setFocus func(p tview.Primitive))
func (*DashboardPage) RefreshData ¶
func (dash *DashboardPage) RefreshData()
func (*DashboardPage) Reset ¶
func (dash *DashboardPage) Reset()
func (*DashboardPage) SetAdminFunc ¶
func (dash *DashboardPage) SetAdminFunc(f func())
func (*DashboardPage) SetDataFunc ¶
func (dash *DashboardPage) SetDataFunc(f func() ([]*session.Session, error))
func (*DashboardPage) SetGenerateFunc ¶
func (*DashboardPage) SetMetadataFunc ¶
func (*DashboardPage) SetOperator ¶
func (dash *DashboardPage) SetOperator(oper *operator.Operator)
func (*DashboardPage) SetSessionAddRedirectorFunc ¶
func (*DashboardPage) SetSessionAddRouteFunc ¶
func (*DashboardPage) SetSessionEditRouteFunc ¶ added in v2.1.0
func (*DashboardPage) SetSessionKillFunc ¶
func (dash *DashboardPage) SetSessionKillFunc(f func(*session.Session) error)
func (*DashboardPage) SetSessionMoveRouteFunc ¶ added in v2.1.0
func (*DashboardPage) SetSessionRemoveRedirectorFunc ¶
func (dash *DashboardPage) SetSessionRemoveRedirectorFunc(f func(*session.Session, string) error)
func (*DashboardPage) SetSessionRemoveRouteFunc ¶
func (dash *DashboardPage) SetSessionRemoveRouteFunc(f func(*session.Session, string) error)
func (*DashboardPage) SetSessionRenameFunc ¶
func (dash *DashboardPage) SetSessionRenameFunc(f func(*session.Session, string) error)
func (*DashboardPage) SetSessionStartFunc ¶
func (dash *DashboardPage) SetSessionStartFunc(f func(*session.Session) error)
func (*DashboardPage) SetSessionStopFunc ¶
func (dash *DashboardPage) SetSessionStopFunc(f func(*session.Session) error)
func (*DashboardPage) SetTracerouteFunc ¶ added in v2.1.0
func (dash *DashboardPage) SetTracerouteFunc(f func(string) ([]string, error))
func (*DashboardPage) ShowError ¶
func (dash *DashboardPage) ShowError(text string, done func())
func (*DashboardPage) ShowInfo ¶
func (dash *DashboardPage) ShowInfo(text string, done func())
func (*DashboardPage) ShowText ¶ added in v2.1.0
func (dash *DashboardPage) ShowText(title string, text string, done func())
Click to show internal directories.
Click to hide internal directories.