ui

package
v0.23.0 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2024 License: MPL-2.0 Imports: 42 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(w fyne.Window) fyne.CanvasObject

func NewPasswordGenerator added in v0.11.0

func NewPasswordGenerator(key *paw.Key, ps paw.PasswordConfig) *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 FyneItem added in v0.15.0

type FyneItem interface {
	// Icon returns a fyne resource associated to the imte
	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, paw.Item)
	// Item returns the paw Item
	Item() paw.Item
}

FyneItem wraps all methods allow to handle an Item as Fyne canvas object

func NewFyneItem added in v0.15.0

func NewFyneItem(item paw.Item, config *paw.Config) FyneItem

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

type Login struct {
	*paw.Login
	Config *paw.Config
}

func (*Login) Edit added in v0.15.0

func (login *Login) Edit(ctx context.Context, key *paw.Key, w fyne.Window) (fyne.CanvasObject, paw.Item)

func (*Login) Icon added in v0.15.0

func (login *Login) Icon() fyne.Resource

func (*Login) Item added in v0.15.0

func (login *Login) Item() paw.Item

func (*Login) Show added in v0.15.0

func (login *Login) Show(ctx context.Context, w fyne.Window) fyne.CanvasObject

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

type Note struct {
	*paw.Note
}

func (*Note) Edit added in v0.15.0

func (n *Note) Edit(ctx context.Context, key *paw.Key, w fyne.Window) (fyne.CanvasObject, paw.Item)

func (*Note) Icon added in v0.15.0

func (n *Note) Icon() fyne.Resource

func (*Note) Item added in v0.15.0

func (n *Note) Item() paw.Item

func (*Note) Show added in v0.15.0

func (n *Note) Show(ctx context.Context, w fyne.Window) fyne.CanvasObject

type PassphrasePasswordOptions added in v0.11.0

type PassphrasePasswordOptions struct {
	DefaultLength int
	MinLength     int
	MaxLength     int
}

type Password added in v0.15.0

type Password struct {
	*paw.Password
	Config *paw.Config
}

func (*Password) Edit added in v0.15.0

func (p *Password) Edit(ctx context.Context, key *paw.Key, w fyne.Window) (fyne.CanvasObject, paw.Item)

func (*Password) Icon added in v0.15.0

func (p *Password) Icon() fyne.Resource

func (*Password) Item added in v0.15.0

func (p *Password) Item() paw.Item

func (*Password) Show added in v0.15.0

func (p *Password) Show(ctx context.Context, w fyne.Window) fyne.CanvasObject

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 SSHKey added in v0.17.0

type SSHKey struct {
	*paw.Config
	*paw.SSHKey
}

func (*SSHKey) Edit added in v0.17.0

func (sh *SSHKey) Edit(ctx context.Context, key *paw.Key, w fyne.Window) (fyne.CanvasObject, paw.Item)

func (*SSHKey) Icon added in v0.17.0

func (sh *SSHKey) Icon() fyne.Resource

func (*SSHKey) Item added in v0.17.0

func (sh *SSHKey) Item() paw.Item

func (*SSHKey) Show added in v0.17.0

func (sh *SSHKey) Show(ctx context.Context, w fyne.Window) fyne.CanvasObject

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