pages

package
v2.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 13, 2025 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AdminPage

type AdminPage struct {
	tview.Pages
	// contains filtered or unexported fields
}

func NewAdminPage

func NewAdminPage() *AdminPage

func (*AdminPage) DoWithConfirm

func (admin *AdminPage) DoWithConfirm(text string, action func())

func (*AdminPage) DoWithLoader

func (admin *AdminPage) DoWithLoader(text string, action func())

func (*AdminPage) Focus

func (admin *AdminPage) Focus(delegate func(p tview.Primitive))

func (*AdminPage) GetID

func (admin *AdminPage) GetID() string

func (*AdminPage) GetNavBar

func (admin *AdminPage) GetNavBar() []widgets.NavBarElem

func (*AdminPage) InputHandler

func (admin *AdminPage) InputHandler() func(event *tcell.EventKey, setFocus func(p tview.Primitive))

func (*AdminPage) RefreshData

func (admin *AdminPage) RefreshData()

func (*AdminPage) Reset

func (admin *AdminPage) Reset()

func (*AdminPage) SetAddOperatorFunc

func (admin *AdminPage) SetAddOperatorFunc(f func(string, bool, string) (*operator.Operator, error))

func (*AdminPage) SetCertificatesFunc

func (admin *AdminPage) SetCertificatesFunc(f func() ([]*certificate.Certificate, error))

func (*AdminPage) SetDelOperatorFunc

func (admin *AdminPage) SetDelOperatorFunc(f func(string) error)

func (*AdminPage) SetDemoteOperatorFunc

func (admin *AdminPage) SetDemoteOperatorFunc(f func(string) error)

func (*AdminPage) SetExportOperatorFunc

func (admin *AdminPage) SetExportOperatorFunc(f func(string, string) (string, error))

func (*AdminPage) SetMetadataFunc

func (admin *AdminPage) SetMetadataFunc(f func() (*config.Config, *operator.Operator, error))

func (*AdminPage) SetOperator

func (admin *AdminPage) SetOperator(oper *operator.Operator)

func (*AdminPage) SetOperatorsFunc

func (admin *AdminPage) SetOperatorsFunc(f func() ([]*operator.Operator, error))

func (*AdminPage) SetPromoteOperatorFunc

func (admin *AdminPage) SetPromoteOperatorFunc(f func(string) error)

func (*AdminPage) SetRegenCertFunc

func (admin *AdminPage) SetRegenCertFunc(f func(string) error)

func (*AdminPage) SetSwitchbackFunc

func (admin *AdminPage) SetSwitchbackFunc(f func())

func (*AdminPage) ShowError

func (admin *AdminPage) ShowError(text string, done func())

func (*AdminPage) ShowInfo

func (admin *AdminPage) ShowInfo(text string, done func())

type CredentialsPage

type CredentialsPage struct {
	tview.Pages
	// contains filtered or unexported fields
}

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) GetElem

func (creds *CredentialsPage) GetElem(id int) *operator.Operator

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

type DashboardPage struct {
	tview.Pages
	// contains filtered or unexported fields
}

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 (dash *DashboardPage) SetGenerateFunc(f func(string, string, string, string, bool, string, bool) (string, error))

func (*DashboardPage) SetMetadataFunc

func (dash *DashboardPage) SetMetadataFunc(f func() (*config.Config, *operator.Operator, error))

func (*DashboardPage) SetOperator

func (dash *DashboardPage) SetOperator(oper *operator.Operator)

func (*DashboardPage) SetSessionAddRedirectorFunc

func (dash *DashboardPage) SetSessionAddRedirectorFunc(f func(*session.Session, string, string, string) error)

func (*DashboardPage) SetSessionAddRouteFunc

func (dash *DashboardPage) SetSessionAddRouteFunc(f func(*session.Session, string, int, bool) error)

func (*DashboardPage) SetSessionEditRouteFunc added in v2.1.0

func (dash *DashboardPage) SetSessionEditRouteFunc(f func(*session.Session, string, string, int, bool) error)

func (*DashboardPage) SetSessionKillFunc

func (dash *DashboardPage) SetSessionKillFunc(f func(*session.Session) error)

func (*DashboardPage) SetSessionMoveRouteFunc added in v2.1.0

func (dash *DashboardPage) SetSessionMoveRouteFunc(f func(*session.Session, string, string) error)

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())

type Page

type Page interface {
	tview.Primitive
	GetID() string
	GetNavBar() []widgets.NavBarElem
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL