Documentation
¶
Index ¶
- Constants
- func DetachConsole()
- func HealthService(lockFile string) (net.Listener, error)
- func HealthServiceCheck(lockFile string) bool
- func MakeApp(s paw.Storage, w fyne.Window) fyne.CanvasObject
- func NewPasswordGenerator(key *paw.Key, ps paw.PasswordPreferences) *pwgenDialog
- func NewUnlockerVaultWidget(vaultName string, a *app) *unlockerVaultWidget
- func ShowMetadata(m *paw.Metadata) fyne.CanvasObject
- type Activity
- type FyneItemWidget
- func NewFyneItemWidget(item paw.Item, preferences *paw.Preferences) FyneItemWidget
- func NewLoginWidget(item *paw.Login, preferences *paw.Preferences) FyneItemWidget
- func NewNoteWidget(item *paw.Note) FyneItemWidget
- func NewPasswordWidget(item *paw.Password, preferences *paw.Preferences) FyneItemWidget
- func NewSSHWidget(item *paw.SSHKey, preferences *paw.Preferences) FyneItemWidget
- type FynePasswordGenerator
- type Metadata
- type PassphrasePasswordOptions
- type PinPasswordOptions
- type RandomPasswordOptions
- type TOTP
Constants ¶
const ( // AppID represents the application ID AppID = "dev.lucor.paw" // AppTitle represents the application title AppTitle = "Paw" )
Variables ¶
This section is empty.
Functions ¶
func DetachConsole ¶ added in v0.22.0
func DetachConsole()
DetachConsole detaches the console from the current process.
func HealthService ¶ added in v0.21.0
HealthService starts a health service that listens on a random port. In the current implementation is used only to avoid starting multiple instances of the app.
func HealthServiceCheck ¶ added in v0.21.0
HealthServiceCheck checks if the health service is running.
func NewPasswordGenerator ¶ added in v0.11.0
func NewPasswordGenerator(key *paw.Key, ps paw.PasswordPreferences) *pwgenDialog
func NewUnlockerVaultWidget ¶ added in v0.23.0
func NewUnlockerVaultWidget(vaultName string, a *app) *unlockerVaultWidget
NewUnlockerVaultWidget creates a new unlockerVaultWidget
func ShowMetadata ¶ added in v0.15.0
Types ¶
type Activity ¶ added in v0.23.0
type Activity struct { widget.BaseWidget // contains filtered or unexported fields }
Activity is used to indicate that something is happening that should be waited for, or is in the background (depending on usage).
Since: 2.5
func NewActivity ¶ added in v0.23.0
func NewActivity() *Activity
NewActivity returns a widget for indicating activity
Since: 2.5
func (*Activity) CreateRenderer ¶ added in v0.23.0
func (a *Activity) CreateRenderer() fyne.WidgetRenderer
type FyneItemWidget ¶ added in v0.24.0
type FyneItemWidget interface { // Icon returns a fyne resource associated to the item Icon() fyne.Resource // Show returns a fyne CanvasObject used to view the item Show(ctx context.Context, w fyne.Window) fyne.CanvasObject // Edit returns a fyne CanvasObject used to edit the item Edit(ctx context.Context, key *paw.Key, w fyne.Window) fyne.CanvasObject // Item returns a deep copy of the embedded paw item // It will panic if the copy fails Item() paw.Item // OnSubmit performs the necessary actions to update the item with the latest data // and returns a deep copy of the embedded paw item OnSubmit() (paw.Item, error) }
FyneItemWidget wraps all methods allow to handle a paw.Item as Fyne Widget
func NewFyneItemWidget ¶ added in v0.24.0
func NewFyneItemWidget(item paw.Item, preferences *paw.Preferences) FyneItemWidget
func NewLoginWidget ¶ added in v0.24.0
func NewLoginWidget(item *paw.Login, preferences *paw.Preferences) FyneItemWidget
func NewNoteWidget ¶ added in v0.24.0
func NewNoteWidget(item *paw.Note) FyneItemWidget
func NewPasswordWidget ¶ added in v0.24.0
func NewPasswordWidget(item *paw.Password, preferences *paw.Preferences) FyneItemWidget
func NewSSHWidget ¶ added in v0.24.0
func NewSSHWidget(item *paw.SSHKey, preferences *paw.Preferences) FyneItemWidget
type FynePasswordGenerator ¶ added in v0.15.0
type FynePasswordGenerator interface {
ShowPasswordGenerator(bind binding.String, password *paw.Password, w fyne.Window)
}
FynePasswordGenerator wraps all methods to show a Fyne dialog to generate passwords
type PassphrasePasswordOptions ¶ added in v0.11.0
type PinPasswordOptions ¶ added in v0.11.0
type RandomPasswordOptions ¶ added in v0.11.0
Source Files
¶
- action_add_item.go
- action_audit.go
- action_edit_item.go
- action_export.go
- action_import.go
- action_view_item.go
- activity.go
- app.go
- console.go
- health.go
- item_edit_widget.go
- item_fyne.go
- item_login.go
- item_metadata.go
- item_note.go
- item_password.go
- item_sshkey.go
- item_totp.go
- item_view_widget.go
- items.go
- menu.go
- password_generator.go
- preferences.go
- vault.go
- vault_widget.go