optionsui

package
v0.0.28 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Rendered for js/wasm

Overview

Package optionsui defines the behavior underlying the user interface for the extension's options.

Index

Constants

View Source
const (
	// LoadButton indicates that the button loads the key into the agent.
	LoadButton buttonKind = iota
	// UnloadButton indicates that the button unloads the key from the
	// agent.
	UnloadButton
	// RemoveButton indicates that the button removes the key.
	RemoveButton
)

Variables

This section is empty.

Functions

This section is empty.

Types

type UI

type UI struct {
	// contains filtered or unexported fields
}

UI implements the behavior underlying the user interface for the extension's options.

func New

func New(mgr keys.Manager, domObj *dom.Doc) *UI

New returns a new UI instance that manages keys using the supplied manager. domObj is the DOM instance corresponding to the document in which the Options UI is displayed.

func (*UI) EndToEndTest added in v0.0.12

func (u *UI) EndToEndTest(ctx jsutil.AsyncContext) []error

EndToEndTest runs a set of tests via the UI. Failures are returned as a list of errors.

No attempt is made to clean up from any intermediate state should the test fail.

func (*UI) Release added in v0.0.23

func (u *UI) Release()

Release cleans up any resources when UI is no longer used.

Jump to

Keyboard shortcuts

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