ui

package
v0.24.0 Latest Latest
Warning

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

Go to latest
Published: May 3, 2024 License: MPL-2.0 Imports: 40 Imported by: 0

Documentation

Index

Constants

View Source
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

func HealthService(lockFile string) (net.Listener, error)

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

func HealthServiceCheck(lockFile string) bool

HealthServiceCheck checks if the health service is running.

func MakeApp added in v0.18.0

func MakeApp(s paw.Storage, w fyne.Window) fyne.CanvasObject

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

func ShowMetadata(m *paw.Metadata) fyne.CanvasObject

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

func (*Activity) MinSize added in v0.23.0

func (a *Activity) MinSize() fyne.Size

func (*Activity) Start added in v0.23.0

func (a *Activity) Start()

Start the activity indicator animation

func (*Activity) Stop added in v0.23.0

func (a *Activity) Stop()

Stop the activity indicator animation

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 Metadata added in v0.15.0

type Metadata struct {
	*paw.Metadata
}

Item represents the basic paw identity

func (*Metadata) Icon added in v0.15.0

func (m *Metadata) Icon() fyne.Resource

func (*Metadata) Item added in v0.15.0

func (m *Metadata) Item() paw.Item

type PassphrasePasswordOptions added in v0.11.0

type PassphrasePasswordOptions struct {
	DefaultLength int
	MinLength     int
	MaxLength     int
}

type PinPasswordOptions added in v0.11.0

type PinPasswordOptions struct {
	DefaultLength int
	MinLength     int
	MaxLength     int
}

type RandomPasswordOptions added in v0.11.0

type RandomPasswordOptions struct {
	DefaultFormat paw.Format
	DefaultMode   paw.PasswordMode
	DefaultLength int
	MinLength     int
	MaxLength     int
}

type TOTP added in v0.15.0

type TOTP struct {
	*paw.TOTP
}

func (*TOTP) Edit added in v0.15.0

func (t *TOTP) Edit(ctx context.Context, w fyne.Window) (fyne.CanvasObject, *paw.TOTP)

func (*TOTP) Show added in v0.15.0

func (t *TOTP) Show(ctx context.Context, w fyne.Window) []fyne.CanvasObject

Jump to

Keyboard shortcuts

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